Introduction

Authentication

Test cards

Establishments

Users

Customers

Cards

Payment links

Error codes

Payment Split

Products

Discount Coupons

Sales

Signatures

Webhooks

Financial

Introduction

To start the integration process with the Primefy API, the first step is to perform the authentication procedure. This is the step that enables you to connect with the services offered by Primefy.

On this section

POST - Authentication

To go through this step, you first need to request the authorization token. To do this, the API uses the user's credentials, such as username and password. The information is sent in the request body, and after being processed by the server, it will return a status and a JSON object as a response.

The response varies depending on the HTTP status code. If the request is successful, you will receive a response with a status code of 200. Additionally, the returned object will provide the username, the token that will be used in subsequent API requests, and an expiration date for that token.

Always valuing security, we recommend that you whitelist or allowlist the domains. api.premepay.com and premeapi-staging.premepay.com in your servers.

<aside> 🚧 The Authentication Token expires after 60 minutes. After this period, it is necessary to authenticate again.

</aside>

Related Content

<aside> <img src="/icons/command-line_red.svg" alt="/icons/command-line_red.svg" width="40px" /> Introduction

</aside>

<aside> <img src="/icons/credit-card_red.svg" alt="/icons/credit-card_red.svg" width="40px" /> Test cards

</aside>