Loa Heo Vàng - Đối tác thanh toán
  1. Partner
Loa Heo Vàng - Đối tác thanh toán
  • Partner
    • Get access token for partner client
      POST
    • Refresh token
      POST
    • Send verification code to speaker device
      POST
    • Register a speaker device for a partner
      POST
    • Unregister a speaker device
      POST
    • Webhook callback endpoint for payment processor to notify transaction status
      POST
    • Update status of multiple speaker devices
      PATCH
    • Create a dynamic QR code for payment
      POST
    • Get speaker device detail
      GET
  • Partner Store
    • Update store information
      PUT
  1. Partner

Get access token for partner client

Develop Env
https://api-test.loaheovang.com
Develop Env
https://api-test.loaheovang.com
POST
/api/v1/partner/auth/token
Last modified:2025-08-01 02:37:10
Maintainer:Not configured
Authenticates a partner client using their credentials and returns an access token. The access token is required for all subsequent API calls and should be included in the Authorization header. The token has a limited validity period and will need to be refreshed when expired.

Request

Body Params application/jsonRequired

Example
{
    "clientId": "partner-client-id",
    "clientSecret": "partner-client-secret"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-test.loaheovang.com/api/v1/partner/auth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "clientId": "partner-client-id",
    "clientSecret": "partner-client-secret"
}'

Responses

🟢200OK
application/json
Successfully authenticated and returned token
Body

Example
{
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlBhcnRuZXIgQXBwIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
    "tokenType": "Bearer",
    "expiresIn": 3600,
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlBhcnRuZXIgQXBwIiwiaWF0IjoxNTE2MjM5MDIyLCJ0eXBlIjoicmVmcmVzaCJ9.EcMbJkMw7zR3TNpzLUf2SsGR5U4G5JEfYCI-Ah_0LfQ"
}
🟠400Bad Request
🟠401Unauthorized
Modified at 2025-08-01 02:37:10
Previous
Partner
Next
Refresh token
Built with