FCHubFCHub.co

List orders

Retrieve a paginated list of orders with optional filtering and searching.

GET
/orders

Authorization

applicationPassword
AuthorizationBasic <token>

WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).

In: header

Query Parameters

page?integer

Page number

Default1
per_page?integer

Number of results per page

Default10
search?string

Search orders by keyword

order_by?string

Field to sort by

Default"id"
order_type?string

Sort direction

Default"DESC"
Value in"ASC" | "DESC"

Response Body

application/json

application/json

curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/orders"
{
  "orders": {
    "current_page": 0,
    "data": [
      {
        "id": 0,
        "hash": "string",
        "customer_id": 0,
        "status": "string",
        "payment_status": "string",
        "total": 0,
        "currency": "string",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z",
        "customer": {},
        "items_count": 0
      }
    ],
    "first_page_url": "string",
    "from": 0,
    "last_page": 0,
    "last_page_url": "string",
    "links": [
      {
        "url": "string",
        "label": "string",
        "active": true
      }
    ],
    "next_page_url": "string",
    "path": "string",
    "per_page": 0,
    "prev_page_url": "string",
    "to": 0,
    "total": 0
  }
}