RASPay GATEWAY DOCS
  • Welcome
  • AUTHENTICATION
    • Credentials
    • Token
  • PAYMENT
    • PIX
      • Create PIX
  • WITHDRAW
    • PIX
      • Create Withdraw (CPF)
  • REPORT PAYMENT
    • PIX
      • List PIX Payment
      • Get PIX Payment
      • Get Pix Payment By E2E ID
  • REPORT WITHDRAW
    • PIX
      • List PIX Withdraw
      • Get PIX Withdraw
  • NOTIFICATION
    • Webhook
Powered by GitBook
On this page
  1. AUTHENTICATION

Token

Token

POST https://gateway-pix.raspay.com.br/production/v3/auth/authenticate

Basic Auth is the authentication method used to get a token. The username and password are combined with a single colon (:) and encoded using a Base64 algorithmn. For example, if "user" as the username and "123456" as the password, the Base64 encoding of user:123456 is "dXNlcjoxMjM0NTY="

Headers

Name
Type
Description

Authorization*

string

Credentials following Basic Auth rules

{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJuYW1lIjoiSm9obiBkb2UiLCJ1c2VybmFtZSI6ImpvaG5kb2UiLCJjb2RlIjoiMDAwMCIsImtleSI6ImpvaG5kb2VAcmFzLmJ1c2luZXNzIiwic3RhdHVzIjoidHJ1ZSIsImlhdCI6MTYxNzkwMjc2MiwiZXhwIjoxNjE3OTA2MzYyfQ.KS1gA6eNgdU6w6nCwoRE1zPLHnelGtE57uWohLlkS8o"
}
{
    "name": "TOKEN_ERROR",
    "message": "Not Authorized",
    "route": "/v3/auth/authenticate",
    "date": "2022-08-20T17:47:34.057Z"
}
PreviousCredentialsNextPIX

Last updated 2 years ago