Introduction

Authentication

Test cards

Establishments

Users

Customers

Cards

Payment links

Error codes

Payment Split

Products

Discount Coupons

Sales

Signatures

Webhooks

Financial


On this section:


POST Add User

https://api.premepay.com/v1/authentication

List of basic parameters

Parameter Description
username * Username
password * Password

Request example

This is an example of how your authentication request should look like.

Response

This is the response for cases where your request is successful.

Bad Request is the generic response returned when attempting authentication that was unsuccessful either because the user was not found in our database or because an invalid username or password was provided. We do not return specific messages indicating that only the username is invalid or that the password is incorrect for that user for security reasons.

Other messages related to authorization on different endpoints may be displayed, such as returning details of a sale, for example, where the user does not have access to this functionality.

This is the response for cases where the request was unsuccessful because valid authentication credentials for the target resource were not provided.

The Forbidden message may be displayed in more specific scenarios, such as when a business attempts to register a customer in a store that is not under its domain. In this case, the returned message is 403 - Forbidden


Conteúdo Relacionado

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" width="40px" /> POST - Add user

</aside>

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3aeb85f-a7e2-40f4-b805-7e883e3d72e2/DELETE.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e3aeb85f-a7e2-40f4-b805-7e883e3d72e2/DELETE.png" width="40px" /> DELETE - Delete user

</aside>