This API provides comprehensive order management capabilities for Keeta platform integration, including order operations, refund management, and real-time notifications.
Keeta Order Management API (v.1.0.0)
https://open.mykeeta.com/api/open/
https://open.mykeeta.com/api/open/order/get
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/get \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663
}'
Successful returns order details.
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
Text description corresponding to the status code, explaining the operation result or error cause to users.
{ "code": 0, "message": "Success", "data": { "orderInfo": { … } } }
Request
This endpoint allows the third party to inform the Keeta ordering application that an order has been accepted and food preparation will begin shortly.
Notes:
- Timing Requirements
- Developers must call this endpoint immediately upon receiving new order notifications from Keeta.
- The Keeta platform will automatically cancel any order that remains unconfirmed after 5 minutes.
- State Management
- The endpoint rejects requests under these conditions:
- The order was already accepted through a Keeta POS terminal - The order status has already progressed beyond the initial state
Unique identifier for orders on Keeta platform
https://open.mykeeta.com/api/open/order/confirm
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/confirm \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
Request
This endpoint allows merchants to request order cancellation through the Keeta platform when they are unable to fulfill a customer's order.
Notes:
- The developers should only invoke this API when the merchant is unable to fulfill the order.
- Upon successful cancellation, the order status will be updated to "CANCELLED" in Keeta's system and Keeta will automatically initiate a full refund to the customer.
- This API does not support duplicate calls. If the order is already in a "CANCELLED" state, the system will return an error response.
- Merchants should confirm the necessity of cancellation before proceeding to avoid unnecessary losses.
Unique identifier for orders on Keeta platform
This field represents the code value for the reason an order was canceled. Please send the corresponding cancellation reason code for the merchant's order cancellation in this field.
Enum Value | Description |
---|---|
500000 | indicates other unspecified reasons (requires cancelReason) |
500001 | indicates insufficient ingredients |
500002 | indicates store temporary closure |
500003 | indicates staff shortage |
https://open.mykeeta.com/api/open/order/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/cancel \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663,
"cancelCode": 500000,
"cancelReason": "too expensive"
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
Request
This endpoint allows merchants to programmatically approve customer refund requests that were initiated through the Keeta platform.
Notes:
- When a customer submits a refund request on the Keeta platform, the system will send a webhook notification to the third-party system.
- If the third-party system supports refund management, merchants can review and approve refund requests directly within their system.
- Once approved, the third-party system must call this API to confirm the refund with Keeta.
- This API does not support duplicate calls. If the refund has already been approved or rejected (e.g., via Keeta POS), subsequent calls will return an error.
Unique identifier for orders on Keeta platform
https://open.mykeeta.com/api/open/order/agree
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/agree \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
Request
This endpoint enables merchant to formally reject customer refund requests initiated through the Keeta platform.
Notes:
- When a customer submits a refund request on the Keeta platform, the system will send a webhook notification to the third-party system.
- If the third-party system has implemented refund processing capabilities, merchants can review and evaluate customer refund requests directly within their own system endpoint.
- When merchants decide to reject a refund request after careful consideration, the third-party system must explicitly call this rejection API endpoint to formally communicate the decision to Keeta's platform.
- This API does not support duplicate calls. If the refund has already been approved or rejected (e.g., via Keeta POS), subsequent calls will return an error.
Unique identifier for orders on Keeta platform
Reason code for refund rejection:
100000: indicates other unspecified reasons
100001: indicates meal preparation already completed
100002: indicates delivery process already initiated
The rejectReason field contains the merchant's textual explanation for refusing a refund request. This provides transparency to customers about the rejection decision.
When Using Custom Rejection Code (100000), The rejectReason field becomes mandatory.
For rejectCode = 100001 (meal already prepared) or 100002 (delivery already started), The rejectReason field is optional.
https://open.mykeeta.com/api/open/order/reject
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/reject \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663,
"rejectCode": 100000,
"rejectReason": "Your Reason"
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
Request
This endpoint allows merchant to notify the Keeta platform that an order has been fully prepared and is ready for rider pickup.
Notes:
- Keeta strongly recommends that developers integrate this API to significantly enhance delivery efficiency.
- Calling this endpoint automatically updates the order status to 'Order Ready' in Keeta's system.
- This API does not support duplicate calls.
- It is crucial to call this API only after meal preparation is fully completed to avoid disrupting the delivery workflow. Premature or mistaken invocations could lead to delivery inefficiencies and negatively affect the overall customer experience.
Unique identifier for orders on Keeta platform
https://open.mykeeta.com/api/open/order/prepare
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/prepare \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
https://open.mykeeta.com/api/open/order/refund/part/products/preview
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/refund/part/products/preview \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663,
"products": [
{
"orderProductId": 1234534224,
"refundCount": 1
}
]
}'
Successful returns partial refundable item details.
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
Text description corresponding to the status code, explaining the operation result or error cause to users.
{ "code": 0, "message": "Success", "data": { "products": [ … ], "promotionInfoList": [ … ], "refundPrice": { … }, "valuationRule": "Refund formula: [Item price / (Subtotal + Top-up to minimum)] × [Actual payment amount - Tips - Platform fee - Delivery fee]" } }
Request
This API allows merchants to submit requests for partial refunds on specific products within an order. It is designed to adjust billing and chargeback processes when certain items in an order will not incur costs due to various reasons, such as promotions, errors, or customer satisfaction measures.
Unique identifier for orders on Keeta platform
A List of products designated for refund
This field represents the code value for the reason for initiating a "partial product refund" request within an order. Please send the appropriate code value that corresponds to the reason for initiating the "partial product refund" request in this field. The specific meanings of the codes are as follows:
Enum Value | Description |
---|---|
200000 | indicates other unspecified reasons (requires partRefundReason) |
200001 | indicates slow meal preparation |
200002 | indicates insufficient ingredients |
200003 | indicates missing or incomplete delivery |
200004 | indicates wrong item prepared |
This field is intended to provide a detailed textual explanation for initiating a partial refund request on specific items within an order.
For partRefundType = 200000 (Other Reasons), the partRefundReason field is mandatory and must be filled in.
For partRefundType = 200001, 200002, 200003, or 200004 (Standard Reasons), the partRefundReason field is optional and may be omitted or left empty.
https://open.mykeeta.com/api/open/order/refund/part/apply
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/refund/part/apply \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663,
"products": [
{
"orderProductId": 1234534224,
"refundCount": 1
}
],
"partRefundType": 200000,
"partRefundReason": "Do not like"
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }
Request
This API is designed to notify the Keeta platform that a customer has personally collected their order. It ensures that the system accurately reflects the order's completion through customer self-pickup.
Notes: This API should be invoked in situations where the customer opts for self-service pickup, collecting their order directly from the merchant premises. It updates Keeta's system with the order's completed status.
Unique identifier for orders on Keeta platform
https://open.mykeeta.com/api/open/order/collect
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/collect \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 756823555555859,
"shopId": 466663
}'
Request executed successfully
A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
Enum Value | Description |
---|---|
0 | The request was executed successfully. |
Non-zero value | The request execution failed. Specific error details can be viewed in the message field. |
{ "code": 0, "message": "Success" }