Complete API reference for managing orders programmatically.
https://wapify.me/api/orders
All requests require Bearer token authentication. Include the token in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN
https://wapify.me/api/orders
Retrieve a paginated list of orders.
| Parameter | Tipo | Descripción |
|---|---|---|
page |
integer | Page number (default: 1) |
per_page |
integer | Items per page (default: 20) |
payment_status |
string | Filter by payment status: paid, pending, failed, refunded, cancelled |
delivery_status |
string | Filter by delivery status: delivered, dispatched, out_for_delivery, cancelled, processing |
contact_id |
integer | Filter by contact ID |
curl -X GET "https://wapify.me/api/orders?payment_status=paid&delivery_status=delivered" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
{
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"order_number": "ORD-001",
"contact": {
"id": 1,
"name": "John Doe",
"email": "john@example.com"
},
"total_amount": 199.99,
"currency": {
"id": 840,
"code": "USD"
},
"payment_status": "paid",
"delivery_status": "delivered",
"created_at": "2024-01-15T10:30:00Z"
}
],
"per_page": 20,
"total": 50,
"last_page": 3
},
"team": {
"id": 1,
"name": "My Team"
},
"user": {
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"role": "admin"
}
}
https://wapify.me/api/orders/{id}
Retrieve a single order by ID.
curl -X GET "https://wapify.me/api/orders/1" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
API requests are rate limited. The current limit is 60 requests per minute per token.