Skip to main content

Get authorization URL

GET
URLhttps://open-api.tingee.vn/v1/direct-link/get-authorization-url

Get the account authorization URL (BIDV only)

Header Request​

HeaderRequiredDescription
Content-Type✓application/json
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Query Parameters​

FieldTypeRequiredDescription
bankBinstring✓Bank BIN.
Pass 970418, the BIN of BIDV, by default
rolestring✓Role of the account to authorize
- Maker: Account that creates disbursement payment orders
- Checker: Account that approves disbursement payment orders
returnUrlstring✓URL the user is redirected back to after signing in and authorizing successfully on BIDV (TINGEE redirects to exactly this URL, without adding any parameters).

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/direct-link/get-authorization-url?bankBin=970418&role=Maker&returnUrl=https%3A%2F%2Fyourdomain.com%2Fcallback' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE'

Sample Response​

{
"code": "00",
"message": "Success",
"data": "https://www.bidv.net/bidvdirectuat/auth/realms/ibank/protocol/openid-connect/auth?client_id=a2910ceecf2841ac9797aff5312e5530&redirect_uri=https%3A%2F%2Fuat-open-api.tingee.vn%2Fv1%2Fdirect-link%2Fcallback&response_type=code&scope=openid&code_challenge=pqnBhc_OSs0P-GrSa26mNI5dE7kVfACuOgyfngO4JsM&code_challenge_method=S256&app_code=25607354&device_id=f7a3b2c1-9d4e-4f8b-a6c5-3e2d1b0a9f8e&ui_locales=vi-vn&state=4c951682-2285-473c-98e3-0f1a7901c04c"
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
datastringURL to redirect the user to the BIDV authentication page.
The authentication session tied to this URL is only valid for about 5 minutes; after that, call the API again to get a new URL.

Common error codes​

CodeDescriptionHow to handle
1021The bank does not support authorizationCheck bankBin; currently only BIDV (970418) requires authorization through this API.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.