FCHubFCHub.co

Get customer orders (paginated)

Retrieve paginated orders for a specific customer with filtering support.

GET
/customers/{customerId}/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

Path Parameters

customerId*integer

Customer ID

Query Parameters

page?integer

Page number

per_page?integer

Number of results per page

search?string

Search keyword

order_by?string

Field to sort by

order_type?string

Sort direction

Value in"ASC" | "DESC"

Response Body

application/json

application/json

curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/customers/0/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
      }
    ],
    "total": 0
  }
}