Documentation Index Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
GET https://services.leadconnectorhq.com/payments/orders
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion .
Version
string
default: "2021-07-28"
required
Version 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.
{
"data" : [
{
"_id" : "653f5e0cde5a1314e62a837c" ,
"altId" : "3SwdhCu3svxI8AKsPJt6" ,
"altType" : "account" ,
"contactId" : "XPLSw2SVagl12LMDeTmQ" ,
"contactName" : "James Bond" ,
"contactEmail" : "james.bond@leadwaycrm.com" ,
"currency" : "USD" ,
"amount" : "100" ,
"subtotal" : "100" ,
"discount" : "10" ,
"status" : "completed" ,
"liveMode" : "false" ,
"totalProducts" : "5" ,
"sourceType" : "funnel" ,
"sourceName" : "onestep" ,
"sourceId" : "kDj7BHej9Zyyq3QakJmz" ,
"sourceMeta" : "{ domain: \" app.leadwaycrm.com \" , pageId: \" rBVhyYhMsbxbO8ZqOcei \" , pageUrl: \" /v2/preview/rBVhyYhMsbxbO8ZqOcei \" , stepId: \" 5a772f62-3fbc-418b-af1b-be8929dd64c2 \" }" ,
"couponCode" : "100PER" ,
"createdAt" : "2023-11-20T10:23:36.515Z" ,
"updatedAt" : "2024-01-23T09:57:04.846Z" ,
"sourceSubType" : "one_step_order_form" ,
"fulfillmentStatus" : "unfulfilled" ,
"onetimeProducts" : "1" ,
"recurringProducts" : "1" ,
"createdBy" : "user123"
}
],
"totalCount" : 0
}
422 - Unprocessable Entity
Ejemplo
curl -X GET 'https://services.leadconnectorhq.com/payments/orders' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28'