Get user TOKEN
POST/user/token
Get an access token for the user using the code received from the Hipay Wallet app. The Hipay Wallet app will send a GET request with a code (authorization code) to the merchant's website.
Request
- application/json
Body
required
client_id stringrequired
Merchant ID (client_id)
client_secret passwordrequired
Merchant client_secret
code stringrequired
Authorization code received from Parameters
grant_type stringrequired
Specifies that an access token is being obtained using the authorization code. The value must be 'authorization_code'.
Responses
- 200
Request Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
code stringrequired
Possible values: [0
, 1
]
Request status
description stringrequired
Possible values: [SUCCESS
, UNSUCCESS
, USER_PAYMENT_VERIFICATION_FAILED
, RISK_REJECT
, REGULATION_RESTRICTION
, PROCESS_FAIL
]
Status information
access_token stringrequired
User's access token
expires stringrequired
Access token expiration time
message string
Алдааны мэдээлэл
[
{
"code": 1,
"description": "SUCCESS, PROCESS_FAIL,UNSUCCESS etc.",
"access_token": "26d07423573344b2ebb099f5bb5",
"expires": "123456",
"message": "invalid or missing entityId parameter"
}
]
Loading...