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/
Request
This endpoint allows merchants to notify the Keeta platform that a courier has picked up the order and the delivery is in progress for merchant self-delivery orders.
Notes:
- This API is exclusively for merchant self-delivery orders where the merchant manages their own delivery service.
- Calling this endpoint updates the order status to indicate that the courier has collected the order and delivery is underway.
- The courier information provided helps customers track their delivery and contact the delivery person if needed.
- This API can only be called after the order has been accepted by the merchant. It cannot be used to update orders that have been completed or cancelled.
https://open.mykeeta.com/api/open/order/dispatched
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/dispatched \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 123456789,
"shopId": 987654321,
"courierInfo": {
"courierId": 123456,
"courierName": "Ø£ØÙ…د Ù…ØÙ…د",
"courierPhone": "501234567",
"courierVehicle": 3,
"courierPhoneInterCode": "+966",
"vehiclePlateNumber": "DXB-A-12345",
"courierLastName": "Ù…ØÙ…د",
"courierFirstName": "Ø£ØÙ…د"
}
}'
Courier pickup notification successful
Response Codes for Order Dispatched:
- 0: Success - Courier diapatched notification successful
- 109000000: Request parameter error (specific details in message field)
- "merchantOrderViewId is null"
- "shopId is null"
- 209000101: Order does not exist
- 2090006003: This order is not a merchant self-delivery order
- 309000000: System error
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 notify the Keeta platform that an order has been successfully delivered to the customer for merchant self-delivery orders.
Notes:
- This API is exclusively for merchant self-delivery orders where the merchant manages their own delivery service.
- Calling this endpoint marks the order as completed.
- Courier information can be updated if needed.
- This API does not support duplicate calls for the same order.
https://open.mykeeta.com/api/open/order/delivered
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/delivered \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 123456789,
"shopId": 987654321,
"courierInfo": {
"courierId": 123456,
"courierName": "Ø£ØÙ…د Ù…ØÙ…د",
"courierPhone": "501234567",
"courierVehicle": 3,
"courierPhoneInterCode": "+966",
"vehiclePlateNumber": "DXB-A-12345",
"courierLastName": "Ù…ØÙ…د",
"courierFirstName": "Ø£ØÙ…د"
}
}'
Order delivery confirmation successful
Response Codes for Order Delivered:
- 0: Success - Order delivery delivered successful
- 109000000: Request parameter error (specific details in message field)
- "orderViewId is null"
- "shopId is null"
- 209000101: Order does not exist
- 2090006003: This order is not a merchant self-delivery order
- 309000000: System error
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 update courier information for merchant self-delivery orders, including courier name, phone number, vehicle information, and other delivery-related details.
Notes:
- This API is exclusively for merchant self-delivery orders where the merchant manages their own delivery service.
- Updated courier information helps customers track their delivery and contact the delivery person.
- This API can be called multiple times to update different courier details as needed.
- At least one courier information field must be provided in the request.
- This API can only be called after the order has been accepted by the merchant. It cannot be used to update orders that have been completed or cancelled,
Comprehensive courier information for self-delivery orders, including personal details, contact information, and vehicle specifications.
Unique identifier for the courier, generated by the vendor system
Full name of the courier responsible for delivery
Type of vehicle used by the courier for delivery:
Enum Value | Description |
---|---|
1 | Walking - Courier delivers on foot |
2 | Bicycle - Courier uses bicycle for delivery |
3 | Motorcycle - Courier uses motorcycle for delivery |
4 | Private Car - Courier uses private vehicle for delivery |
International dialing code for the courier phone number (e.g., "+966" for Saudi Arabia)
License plate number of the delivery vehicle
https://open.mykeeta.com/api/open/order/updateCourierInfo
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/order/updateCourierInfo \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 123456789,
"shopId": 987654321,
"courierInfo": {
"courierId": 123456,
"courierName": "Ø£ØÙ…د Ù…ØÙ…د",
"courierPhone": "501234567",
"courierVehicle": 3,
"courierPhoneInterCode": "+966",
"vehiclePlateNumber": "DXB-A-12345",
"courierLastName": "Ù…ØÙ…د",
"courierFirstName": "Ø£ØÙ…د"
}
}'
Courier information update successful
Response Codes for Update Courier Info:
- 0: Success - Courier information update successful
- 109000000: Request parameter error (specific details in message field)
- "orderVieId is null"
- "shopId is null"
- 209000101: Order does not exist
- 2090006003: This order is not a self-delivery order
- 2090006004: Order status does not support synchronizing delivery information
- 309000000: System error
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 provide real-time delivery tracking updates for merchant self-delivery orders, including ETA(estimated time of arrival) and courier location coordinates.
Notes:
- This API is exclusively for merchant self-delivery orders where the merchant manages their own delivery service.
- Regular updates help improve customer experience by providing accurate delivery estimates and tracking.
- Coordinate information should use GPS coordinates with precision of 6 decimal places for accuracy.
- At least one tracking parameter (besides orderViewId) must be provided in each request.
- Time Range Requirements:
estimatedTimeStampLeft
andestimatedTimeStampRight
must both have values or both be omitted. You cannot provide only one of these fields. - Coordinate Requirements:
courierCoordinateLng
andcourierCoordinateLat
must both have values or both be omitted. You cannot provide only one coordinate.
Unique identifier for orders on Keeta platform
Left boundary of estimated delivery time range in Unix timestamp milliseconds. Must be provided together with estimatedTimeStampRight or both omitted.
Right boundary of estimated delivery time range in Unix timestamp milliseconds. Must be provided together with estimatedTimeStampLeft or both omitted.
Estimated delivery time in Unix timestamp milliseconds
Courier longitude coordinate (GPS), precision recommended to 6 decimal places. Must be provided together with courierCoordinateLat or both omitted.
https://open.mykeeta.com/api/open/delivery/merchant/self/delivery/callback
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://open.mykeeta.com/api/open/delivery/merchant/self/delivery/callback \
-H 'Content-Type: application/json' \
-d '{
"orderViewId": 1186341416633223,
"estimatedTimeStampLeft": 1754432190391,
"estimatedTimeStampRight": 1754432190391,
"estimatedTimeStamp": 1754432190391,
"courierCoordinateLng": 103.819998,
"courierCoordinateLat": 51.296999
}'
Delivery tracking information update successful
Response Codes for Update Delivery Tracking:
- 0: Success - Delivery tracking information update successful
- 111120000: Internal error, please try again later
- 111120001: Order ID cannot be empty / Order ID must be numeric
- 111120001: At least one valid field must be provided besides order ID and region
- 111120001: Estimated delivery time boundaries must both exist or both be absent
- 111120001: Left boundary of estimated delivery time cannot be greater than right boundary
- 111120001: Longitude and latitude coordinates must both exist or both be absent
- 111120001: Invalid longitude or latitude coordinates
- 111120001: Order does not exist
- 111120001: Order status cannot be updated with delivery information / Order is not merchant self delivery
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" }