6. Authorization Notification
Descrption
- This interface should be implemented by merchant. The function is that when the authorization has been completed or revoked, Platform will call this interface to notify the merchant of the authorization details.
URL
Request Method
| Parameter name | Required | Type of data | Description |
| Content-Type | Y | string | application/json |
Request Body
| Parameter Name | Required | Type | Description |
| param | Yes | string | param |
| sign | Yes | string | signature |
param
| Parameter name | Required | Type of data | Description |
| eventName | Yes | string | Event name( token.create.success,token.create.failed,token.cancel.success ) |
| userId | Yes | string | Merchant internal user id |
| requestId | Yes | string | Merchant request ID, alphanumeric, max length 32 |
| channelCode | Yes | string | Channel Code |
| paytoken | No | string | token |
| tokenStatus | No | string | token status (ACTIVED, INACTIVED) |
| expiresTime | No | string | token expiration time |
| inactiveTime | No | string | token inactive time |
| inactiveType | No | string | token inactive type (MCH_CANCEL, USER_CANCEL, EXPIRED) |
Request Example
Request Body
How to construct request body for Platform
Response Parameters
| Parameter Name | Type | Description |
| code | integer | Response code, fixed as 10000 |
| message | string | Response message, fixed as Success |
Response Example