Skip to content

Order Cancellation Notification
Webhook

Request

This webhook serves to notify the developer's system when an order's status changes to 'Cancelled' on the Keeta platform.

Event ID: 1004

Bodyapplication/jsonrequired
orderViewIdinteger, (int64)

Unique identifier for orders on Keeta platform

Example:756823555555859
shopIdinteger, (int64)

Unique identifier of the Keeta store

Example:466663
statusinteger

Order status code, always 50 for this event

Example:50
opTimeinteger, (int64)

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

Example:1751448108144
cancelReasonstring

Text description of cancellation reason

Example:"Customer cancel the order"
opTypeinteger

Code representing who initiated the cancellation:

Enum ValueDescription
0

System-automated cancellation

10

Customer-initiated cancellation

20

Merchant-initiated cancellation

30

Customer service-initiated cancellation

Example:10
Payload
{ "orderViewId": 756823555555859, "shopId": 466663, "status": 50, "opTime": 1751448108144, "cancelReason": "Customer cancel the order", "opType": 10 }

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" }