Get Orders
Retrieving information of all orders.
It's done by KidaPay payment page. ONLY use this if you want to build an in-house payment without redirecting.
Definition
GET
When integrating KidaPay’s Create Order API, there are two environments you can use: Test URL | Live URL
🧪 Test Mode vs. Live Mode URLs
Test / Sandbox Environment: For developers to test order creation, payments, and webhooks without using real money.
Live / Production Environment: For processing real orders and payments once your system is production-ready.
- Test
- Live
https://api-sandbox.kidapay.com/v1/orders
https://api.kidapay.com/v1/orders
Query Params
Param | Type | Required | Description |
---|---|---|---|
status | Status Type | E.g. PAID. Default all statuses. | |
limit | integer | numbers of orders per page. Max: 50. Default: 10. | |
offset | integer | starting item. Default: 0. |
Example
curl -X GET \
'https://api.kidapay.com/v1/orders?limit=20&offset=10' \
-H 'x-api-key: API_KEY_FROM_MERCHANT_PORTAL'
Result Format
200 OK
{
"status": 200,
"orders": [
{
"order_id": "xxx-b17d-4805-b311-b95cd2d66ad0",
"user_id": 14109,
"merchant_order_id": "Order #5630",
"title": "Order 5630",
"description": "Membership $0.15",
"callback_url": "https://ecards.com/api/success",
"amount": 0.15,
"currency": "USD",
"receive_currency": "",
"status": "NEW",
"created_at": "2019-01-24T16:52:50.021Z",
"updated_at": "2019-01-24T16:52:50.021Z",
"deleted": 0
},
{
"order_id": "xxx-7b0d-4b03-816f-e88a3c6bfa5c",
"user_id": 14109,
"merchant_order_id": "Order #5619",
"title": "Order 5619",
"description": "Membership $0.15",
"callback_url": "https://ecards.com/api/success",
"cancel_url": "https://ecards.com/ecardstatus?status=cancel",
"success_url": "https://ecards.com/ecardstatus?status=success",
"apiKey": "Exdasdfasdf",
"amount": 0.15,
"currency": "USD",
"receive_currency": "",
"status": "PAID",
"created_at": "2019-01-24T16:40:36.264Z",
"updated_at": "2019-01-24T16:41:01.000Z",
"deleted": 0
}
]
}