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.
Autorización
Bearer token generado desde el portal Leadway. Ver Autenticación .
Version string
default: "2021-07-28"
required
Versión de la API.
Query parameters
locationId string
default: "3SwdhCu3svxI8AKsPJt6"
LocationId is the id of the account.
altId string
default: "3SwdhCu3svxI8AKsPJt6"
required
AltId is the unique identifier e.g: account id.
status string
default: "completed"
Order status.
Payment Status of the Order
startAt string
default: "2024-02-01"
Starting interval of orders.
endAt string
default: "2024-02-13"
Closing interval of orders.
search string
default: "Awesome order"
The name of the order for searching.
contactId string
default: "XPLSw2SVagl12LMDeTmQ"
Contact id for filtering of orders.
Funnel product ids separated by comma.
sourceId string
default: "61dd0c7dc077f712a5f787ff"
Source id
The maximum number of items to be included in a single page of results
The starting index of the page, indicating the position from which the results should be retrieved.
Respuestas
200 - Successful response
An array of orders _id string
default: "653f5e0cde5a1314e62a837c"
required
The unique identifier for the order.
altId string
default: "3SwdhCu3svxI8AKsPJt6"
required
AltId is the unique identifier eg: account id.
altType string
default: "account"
required
AltType is the type of identifier.
contactId string
default: "XPLSw2SVagl12LMDeTmQ"
Contact id corresponding to the order.
contactName string
default: "James Bond"
Contact name corresponding to the order.
contactEmail string
default: "james.bond@leadwaycrm.com"
Contact email corresponding to the order.
Currency in which order was created.
status string
default: "completed"
required
The status of the order (e.g., completed).
Order is in live / test mode.
Total products in an order.
sourceType string
default: "funnel"
required
Source type of order (eg: funnel).
Source name for the order.
sourceId string
default: "kDj7BHej9Zyyq3QakJmz"
Source id for the order.
Meta content for the source of order.
Coupon code for the order.
createdAt string
default: "2023-11-20T10:23:36.515Z"
required
The creation timestamp of the order.
updatedAt string
default: "2024-01-23T09:57:04.846Z"
required
The last update timestamp of the order.
sourceSubType string
default: "one_step_order_form"
Source sub-type for the order.
fulfillmentStatus string
default: "unfulfilled"
Fulfillment status of the order.
Total one time products in an order.
Total recurring time products in an order.
User ID who created the order.
422 - Unprocessable Entity
Ejemplo