RexPay
  1. Authentication
RexPay
  • Authentication
    • Intro
    • Get Access Token
      POST
  • PIX Payments
    • Intro
    • Payin
      • Create PIX Payin
      • Get PIX Payin by ID
      • Get PIX Payin by external ID
    • Payout
      • Create PIX Payout
      • Get PIX Payout by ID
      • Get PIX Payout by external ID
  • Balance
    • Get balance
      GET
  • Webhooks
    • Intro
    • Webhook app portal link
      POST
  • Schemas
    • Attributes
      • Payin status
      • taxID
      • Payout status
      • Amount
      • Pix type
      • Pix key
    • gen_base_64
    • Payer or Receiver
    • Metadata
    • Payin created
    • Payin
    • Payout
    • Error response
  1. Authentication

Intro

Authencation#

💡
We provide x-api-key, username/client_id and password/client_secret.
To access any API you need to pass the request headers x-api-key and the bearer token to the authorization or to the x-access-token (backward compatible).
To get the bearer token you need to request /auth/access-token with x-api-key in header and {"client_id": "test", "client_secret": "testsecret"} in body.
And to call others endpoints you need to pass in request header:
x-api-key: API_KEY
authorization: Bearer ACCESS_TOKEN or x-access-token: Bearer ACCESS_TOKEN

Errors#

HTTP CodeDescription
401Expired.
401Invalid signature.
401Decoded error.
401Invalid token.
401Invalid key.
Next
Get Access Token