# 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.
# HTTP request info
# URL
Provided by merchant.
# Method
POST
# Content-Type
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 |
countryCode | 是 | string | Country code (PH , ID , MY , TH ) |
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
{
"param": "{\"channelCode\":\"PH_GCASH_DIRECT_DEBIT\",\"countryCode\":\"PH\",\"eventName\":\"token.create.success\",\"expiresTime\":\"2034-09-18 18:10:35\",\"paytoken\":\"TK1U2ODY9EPKRSOSU9\",\"requestId\":\"Joeyi2qzl5pv1a4wpxxxv100\",\"tokenStatus\":\"ACTIVED\",\"userId\":\"u00012\"}",
"sign": "fLD2tgNP/gqBPxS0KRrqCPOcrGSZxZaUGZ70B5FX1+014ki8S1RjIBj9JPB393miZOWL5rlQbiRbJVt6DojtAP9rV3wWbjUAmH/7xWnnxaccEB/z3RmUE5SoKtdtWb6Y3nRx54/heZTo1peX8nrC/EPwcFmLWo0/XLFmEynp+0g+kdtUxUV+Xl0QBJ5YwEMEEIDdruQKsgSr7HndvEz9n9PVdFA6bRPcoFBbZX2Flh5GvSwv8Y96R1zMitoU72xsZvTOf2ceACyMddC9/mVnIW5nqHGqw1WxfoOkHFwD+zZhsWAEMQ4sI+/z9rssWHLcQh81I7kFKI0bKJ6L+FXtNw=="
}
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
{
"code": 10000,
"message": "Success"
}