Topremit
OPEN APITopremit
OPEN APITopremit
  1. Open API
  • Open API
    • Virtual Account
      • Create Virtual Account
      • Inquiry Status Virtual Account
      • Virtual Account Callback
      • Cancel Virtual Account
      • Simulate Virtual Account Payment (Test Mode Only)
    • QRIS
      • Create QRIS
      • Inquiry QRIS
      • QRIS Callback
      • Simulate QRIS Payment (Test Mode Only)
    • Fetch Access Token
      POST
  1. Open API

Fetch Access Token

Developing
POST
/pg/snap/v1/access-token/b2b
Last modified:2025-05-15 05:31:21
To verify an authenticated API call, the third-party application needs to request an Access Token. This Access Token must be carried in every API request to gain access to the API.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://staging-uno.topremit.com/pg/snap/v1/access-token/b2b' \
--header 'X-CLIENT-KEY;' \
--header 'X-SIGNATURE;' \
--header 'X-TIMESTAMP;'
Response Response Example
{
    "responseCode": "string",
    "responseMessage": "string",
    "accessToken": "string",
    "tokenType": "string",
    "expiresIn": "string",
    "additionalInfo": {}
}

Request

Header Params
Content-Type
string 
required
Only accept application/json
X-CLIENT-KEY
string 
required
After successfully registering for an account, you will receive the client_id from our support team.
X-SIGNATURE
string 
required
Signed client_id and timestamp by using secret received by partner.
Format: client_id|timestamp
X-TIMESTAMP
string 
required
Client's current local time.
Format: yyyy-MM- ddTHH:mm:ssTZD (e.g 2025-04-12T14:30:15+07:00)
Body Params multipart/form-data
object {0}

Responses

🟢200Success
application/json
Body
responseCode
string 
required
2007300
responseMessage
string 
required
accessToken
string 
required
tokenType
string 
required
expiresIn
string 
required
additionalInfo
object 
required
Previous
Simulate QRIS Payment (Test Mode Only)
Built with