1. Partner Auth
Loa Heo Vàng - Đối tác dùng loa
  • Guideline
  • Partner Auth
    • Get access token for partner client
      POST
    • Refresh token
      POST
  • Partner Customer
    • Health check
      GET
    • Notification webhook callback (demo)
      POST
    • Get list store
      GET
    • Create a dynamic QR code for payment
      POST
  • Schemas
    • Schemas
      • ErrorResponsePayloadDto
      • StorePayloadListDto
      • CreateStoreQRParamDto
      • CreateStoreQRResponseDto
      • PartnerAuthTokenRequestDto
      • PartnerAuthTokenResponseDto
      • PartnerAuthRefreshRequestDto
      • PartnerPaymentNotificationRequestDto
      • PartnerCustomerNotificationResponseDto
      • StorePayloadDto
  1. Partner Auth

Get access token for partner client

Testing Env
https://api-test.loaheovang.com
Testing Env
https://api-test.loaheovang.com
POST
/api/v1/partner/auth/token
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/json

Examples

Responses

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

🟠400Bad Request
🟠401Unauthorized
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"
}'
Response Response Example
200 - Example 1
{
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlBhcnRuZXIgQXBwIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
    "tokenType": "Bearer",
    "expiresIn": 3600,
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlBhcnRuZXIgQXBwIiwiaWF0IjoxNTE2MjM5MDIyLCJ0eXBlIjoicmVmcmVzaCJ9.EcMbJkMw7zR3TNpzLUf2SsGR5U4G5JEfYCI-Ah_0LfQ"
}
Modified at 2025-06-30 17:11:25
Previous
Guideline
Next
Refresh token
Built with