Get customer orders
Retrieve a paginated list of orders for the authenticated customer.
Authorization
cookieAuth wordpress_logged_in<token>
WordPress cookie authentication for same-origin requests. Requires a valid nonce passed via X-WP-Nonce header.
In: cookie
Query Parameters
page?integer
Default
1per_page?integer
Default
10Response Body
application/json
application/json
curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/customer-profile/orders"{
"orders": {
"current_page": 0,
"data": [
{
"created_at": "2019-08-24T14:15:22Z",
"invoice_no": "string",
"total_amount": 0,
"uuid": "string",
"type": "string",
"status": "string",
"renewals_count": "string",
"order_items": [
{
"id": 0,
"post_title": "string",
"title": "string",
"quantity": "string",
"payment_type": "string",
"line_meta": {}
}
]
}
],
"first_page_url": "http://example.com",
"from": 0,
"last_page": 0,
"last_page_url": "http://example.com",
"links": [
{
"url": "http://example.com",
"label": "string",
"active": true
}
],
"next_page_url": "http://example.com",
"path": "http://example.com",
"per_page": 0,
"prev_page_url": "http://example.com",
"to": 0,
"total": 0
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}