Orders API Reference

Complete API reference for managing orders programmatically.

Base URL
https://wapify.me/api/orders
Authentication

All requests require Bearer token authentication. Include the token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN
Available Endpoints
Quick Navigation
GET List Orders
https://wapify.me/api/orders

Retrieve a paginated list of orders.

Query Parameters
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
Example Request
curl -X GET "https://wapify.me/api/orders?payment_status=paid&delivery_status=delivered" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "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"
  }
}
GET Get Order
https://wapify.me/api/orders/{id}

Retrieve a single order by ID.

Example Request
curl -X GET "https://wapify.me/api/orders/1" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"