Orders
Retrieving Customer Order History
Get
Roles: Administrator, Sales
The GET method for the Orders endpoint under the Customers section is a specialized function designed to access the order history of individual customers. This endpoint allows for a detailed view of all orders placed by a specific customer, providing insights into their purchasing patterns, preferences, and transaction history. It's an invaluable tool for understanding customer behavior, tailoring services to meet individual needs, and enhancing customer relationship management
Authorizations
Path parameters
customerIdinteger · int32Required
customer_id is the ID of the customer.
Query parameters
selectstringOptional
filterstringOptional
sortstringOptional
takeinteger · int32Optional
skipinteger · int32Optional
Responses
200
Success
application/json
default
Error
application/json
get
/v1/customers/{customerId}/ordersGET /v1/customers/{customerId}/orders HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"code": 1,
"message": "text",
"orders": [
{
"id": 1,
"orderNumber": "text",
"status": "text",
"processedBy": "text",
"purchaseOrder": "text",
"total": 1,
"currency": "text",
"createdAt": "text",
"updatedAt": "text",
"invoiceNumber": "text",
"paymentType": "text",
"paymentNumber": "text",
"paymentStatus": "text",
"paymentDate": "text",
"description": "text",
"customerId": 1,
"resellerId": 1,
"createdById": "text"
}
],
"totalOrdersCount": 1
}Last updated