Get Token

To obtain a bearer token for accessing the API to create a VietQR payment code.

POST

https://<vietqr-host>/<basepath>/api/token_generate

Headers

NameValue

Content-Type

application/json

Authorization

Basic Authentication: Base64[username:password]

Body

NameTypeDescription

access_token

String

Bearer Token provided by VietQR to access the VietQR payment code API.

token_type

String

Token type "Bearer".

expires_in

String

Token expiration time. Default is 300 seconds.

Response

{
    "access_token": "partner_bearer_token",
    "token_type": "Bearer",
    "expires_in": 300
}

Last updated