Orders

Manage orders. Ability to create, edit, view, and delete orders.

Available Endpoints

Method Path Description
GET /api/orders List orders
GET /api/orders/{id} View order details
POST /api/orders Create new order
PUT /api/orders/{id} Full update of an order
PATCH /api/orders/{id} Partial update of an order
DELETE /api/orders/{id} Delete an order

Example Request

curl -X GET "https://example.com/api/orders" \
  -H "Authorization: Bearer {token}"

Success Response (200)

{
  "records": [],
  "meta": {
    "total": 0,
    "current_page": 1,
    "per_page": 20
  }
}

Errors

Code Description
401 Invalid token
403 Access denied
404 Record not found
422 Validation error
Type to search...