curl --request GET \
--url https://services.leadconnectorhq.com/payments/orders \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"data": [
{
"_id": "653f5e0cde5a1314e62a837c",
"altId": "3SwdhCu3svxI8AKsPJt6",
"altType": "location",
"status": "completed",
"sourceType": "funnel",
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2024-01-23T09:57:04.846Z",
"contactId": "XPLSw2SVagl12LMDeTmQ",
"contactName": "James Bond",
"contactEmail": "james.bond@gohighlevel.com",
"currency": "USD",
"amount": "100",
"subtotal": "100",
"discount": "10",
"liveMode": "false",
"totalProducts": "5",
"sourceName": "onestep",
"sourceId": "kDj7BHej9Zyyq3QakJmz",
"sourceMeta": "{ domain: \"app.gohighlevel.com\", pageId: \"rBVhyYhMsbxbO8ZqOcei\", pageUrl: \"/v2/preview/rBVhyYhMsbxbO8ZqOcei\", stepId: \"5a772f62-3fbc-418b-af1b-be8929dd64c2\"}",
"couponCode": "100PER",
"sourceSubType": "one_step_order_form",
"fulfillmentStatus": "unfulfilled",
"onetimeProducts": "1",
"recurringProducts": "1",
"createdBy": "user123"
}
],
"totalCount": 123
}The “List Orders” API allows to retrieve a paginated list of orders. Customize your results by filtering orders based on name, alt type, order status, payment mode, date range, type of source, contact, funnel products or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve order information.
curl --request GET \
--url https://services.leadconnectorhq.com/payments/orders \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"data": [
{
"_id": "653f5e0cde5a1314e62a837c",
"altId": "3SwdhCu3svxI8AKsPJt6",
"altType": "location",
"status": "completed",
"sourceType": "funnel",
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2024-01-23T09:57:04.846Z",
"contactId": "XPLSw2SVagl12LMDeTmQ",
"contactName": "James Bond",
"contactEmail": "james.bond@gohighlevel.com",
"currency": "USD",
"amount": "100",
"subtotal": "100",
"discount": "10",
"liveMode": "false",
"totalProducts": "5",
"sourceName": "onestep",
"sourceId": "kDj7BHej9Zyyq3QakJmz",
"sourceMeta": "{ domain: \"app.gohighlevel.com\", pageId: \"rBVhyYhMsbxbO8ZqOcei\", pageUrl: \"/v2/preview/rBVhyYhMsbxbO8ZqOcei\", stepId: \"5a772f62-3fbc-418b-af1b-be8929dd64c2\"}",
"couponCode": "100PER",
"sourceSubType": "one_step_order_form",
"fulfillmentStatus": "unfulfilled",
"onetimeProducts": "1",
"recurringProducts": "1",
"createdBy": "user123"
}
],
"totalCount": 123
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 LocationId is the id of the sub-account.
"3SwdhCu3svxI8AKsPJt6"
AltId is the unique identifier e.g: location id.
"3SwdhCu3svxI8AKsPJt6"
Order status.
"completed"
Payment Status of the Order
paid, unpaid, refunded, partially_paid "unpaid"
Mode of payment.
"live"
Starting interval of orders.
"2024-02-01"
Closing interval of orders.
"2024-02-13"
The name of the order for searching.
"Awesome order"
Contact id for filtering of orders.
"XPLSw2SVagl12LMDeTmQ"
Funnel product ids separated by comma.
"61dd0c7dc077f712a5f787ff,61d6afc9d39ac5e35965c017"
Source id
"61dd0c7dc077f712a5f787ff"
The maximum number of items to be included in a single page of results
20
The starting index of the page, indicating the position from which the results should be retrieved.
0
Was this page helpful?