Skip to main content

Authentication

POST 

/oauth2/token

Use this address to generate the authorization token that must be sent in the header of other requests. It is necessary to use the CLIENT_ID and CLIENT_SECRET defined in the credential provided by PicPay. Each authorization token generated will be valid for 5 (five) minutes, requiring a new token request. This flow must be included in your application.

For more details, see our page about the authentication process.

Request​

Body

required

    grant_type stringrequired

    Possible values: [client_credentials]

    Defines the oauth flow of the token request.

    In the case of the PicPay Acquiring API, it is always client_credentials.

    client_id stringrequired

    Possible values: Value must match regular expression ^[\w\-]+$

    client_secret stringrequired

    Possible values: Value must match regular expression ^[\w]+$

Responses​

Success response in authentication and update flow token.

Schema

    access_token stringrequired

    Possible values: Value must match regular expression ^([\w=]+)\.([\w=]+)\.([\w\-\+\/=]*)

    expires_in int32required
    refresh_expires_in int32
    token_type stringrequired

    Possible values: Value must match regular expression ^[\w]+$

    not-before-policy int32
    scope stringrequired

    Possible values: Value must match regular expression ^[\w\.\- ]+$

    A string with all scopes of the credential separated by a blank space

    core-seller-id string

    Possible values: Value must match regular expression ^[\d]+$

    merchant-document string

    Possible values: Value must match regular expression ^[\d]+$

    seller-acquirer-id string

    Possible values: Value must match regular expression ^[\d]+$

    authorization_details

    TokenResponseAuthorizationDetail[]

  • Array [

  • type string

    Possible values: Value must match regular expression ^[\w]+$

    account_id string

    Possible values: Value must match regular expression ^[\w\-]+$

    fingerprint string

    Possible values: Value must match regular expression ^[\w\-]+$

    display_name string

    Possible values: Value must match regular expression ^[\w\- ]+$

  • ]

Loading...