Skip to content

Brand Authorization Removal Notification
Webhook

Request

This webhook is sent by Keeta to notify the vendor's system when a merchant fully revokes authorization for a brand. This event is triggered only when the entire brand authorization is removed, meaning all stores under the brand are deauthorized simultaneously. Upon receiving this notification, the developer's system should treat the associated access token as invalid.

Event ID: 1303

Bodyapplication/jsonrequired
appIdstringrequired

Unique application ID assigned by Keeta.

Example:"3762772727"
authIdstringrequired

Authorization record ID, which can be used for status queries.

Example:"auth_20240324_003"
createTimeinteger, (int64)required

Time when the event occurred, specified as milliseconds since Jan 1, 1970 (Unix epoch).

Example:1711268400000
brandIdinteger, (int64)required

Unique identifier of the brand whose authorization was removed.

Example:4323
brandNamestringrequired

Name of the brand, provided for identification purposes.

Example:"GUI JI"
shopIdsArray of integers, (int64)required

List of store IDs that were deauthorized under this brand. All stores under the brand are included.

Example:
[ 145541, 145542, 145543 ]
opTypeintegerrequired

Operation type. Always 2 for this event (brand authorization removed).

Example:2
Payload
{ "appId": "3762772727", "authId": "auth_20240324_003", "createTime": 1711268400000, "brandId": 4323, "brandName": "GUI JI", "shopIds": [ 145541, 145542, 145543 ], "opType": 2 }

Responses

Request executed successfully

Bodyapplication/json
codeintegerrequired

A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.

Enum ValueDescription
0

The request was executed successfully.

Non-zero value

The request execution failed. Specific error details can be viewed in the message field.

Example:0
messagestringrequired

Text description corresponding to the status code, explaining the operation result or error cause to users.

Example:"Success"
Response
{ "code": 0, "message": "Success" }