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 Subscriptions” API allows to retrieve a paginated list of subscriptions. Customize your results by filtering subscriptions based on name, alt type, subscription status, payment mode, date range, type of source, contact, subscription id, entity id, contact or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve subscription information.
GET https://services.leadconnectorhq.com/payments/subscriptions
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion .
Version
string
default: "2021-07-28"
required
Version de la API.
Query parameters
altId
string
default: "3SwdhCu3svxI8AKsPJt6"
required
AltId is the unique identifier e.g: account id.
altType
string
default: "account"
required
AltType is the type of identifier.
entityId
string
default: "61dd0fe9c077f73e67f78803"
Entity id for filtering of subscriptions.
startAt
string
default: "2024-02-01"
Starting interval of subscriptions.
endAt
string
default: "2024-02-13"
Closing interval of subscriptions.
Source of the subscriptions.
search
string
default: "Awesome subscription"
The name of the subscription for searching.
contactId
string
default: "AmuzcoPBpgKeccNsFlib"
Contact ID for the subscription
id
string
default: "64bf78af39118e4011926cba"
Subscription id for filtering of subscriptions.
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.
getPaymentsCollectedCount
Get the total payments collected for the subscription.
Respuestas
200 - Successful response
An array of subscriptions _id
string
default: "64bf78af39118e4011926cba"
required
The unique identifier for the subscription.
altId
string
default: "3SwdhCu3svxI8AKsPJt6"
required
AltId is the unique identifier eg: account id.
altType
string
default: "account"
required
AltType is the type of identifier. Posibles valores: ‘account’
contactId
string
default: "XPLSw2SVagl12LMDeTmQ"
Contact id corresponding to the subscription.
contactName
string
default: "James Bond"
Contact name corresponding to the subscription.
contactEmail
string
default: "james.bond@leadwaycrm.com"
Contact email corresponding to the subscription.
Currency in which subscription occurred.
status
object
default: "active"
required
The status of the subscription (e.g., succeeded).
Subscription is in live / test mode.
Entity type of subscription (eg: order).
entityId
string
default: "62f4db0f3059ecee61379012"
Entity id for the subscription. e.g: order id
entitySourceType
string
default: "funnel"
required
Entity source type of subscription (eg: funnel).
entitySourceName
string
default: "Attribution Funnel"
Entity source name for the subscription.
entitySourceId
string
default: "bevrkPbLaDNXFaqfLKMm"
Entity source id for the subscription.
Meta content for the entity source of subscription.
subscriptionId
string
default: "I-0UE609H8E43P"
Subscription id for subscription.
Snapshot of subscription.
Payment provider for subscription.
paymentProviderConnectedAccount
Payment provider connected account id for subscription.
ipAddress
string
default: "103.100.16.82"
Ip address from where subscription was initiated.
createdAt
string
default: "2023-11-20T10:23:36.515Z"
required
The creation timestamp of the subscription.
updatedAt
string
default: "2023-11-20T10:23:36.515Z"
required
The update timestamp of the subscription.
User ID who created the subscription.
total subscriptions count
{
"data" : [
{
"_id" : "64bf78af39118e4011926cba" ,
"altId" : "3SwdhCu3svxI8AKsPJt6" ,
"altType" : "account" ,
"contactId" : "XPLSw2SVagl12LMDeTmQ" ,
"contactName" : "James Bond" ,
"contactEmail" : "james.bond@leadwaycrm.com" ,
"currency" : "USD" ,
"amount" : "100" ,
"status" : "active" ,
"liveMode" : "false" ,
"entityType" : "order" ,
"entityId" : "62f4db0f3059ecee61379012" ,
"entitySourceType" : "funnel" ,
"entitySourceName" : "Attribution Funnel" ,
"entitySourceId" : "bevrkPbLaDNXFaqfLKMm" ,
"entitySourceMeta" : "{ domain: \" app.leadwaycrm.com \" , pageId: \" sxC4lNhFIavEnLZh5KhC \" , pageUrl: \" /v2/preview/sxC4lNhFIavEnLZh5KhC \" , stepId: \" 7d303d1f-cb85-403d-b548-bf01de5c7bb0 \" }" ,
"subscriptionId" : "I-0UE609H8E43P" ,
"subscriptionSnapshot" : "{ status: \" ACTIVE \" , status_update_time: \" 2022-08-16T11:06:53Z \" , id: \" I-0UE609H8E43P \" , plan_id: \" P-82K11750F0313430KMLRGE6Y \" , start_time: \" 2022-08-16T11:05:31Z \" , quantity: 1 }" ,
"paymentProviderType" : "stripe" ,
"paymentProviderConnectedAccount" : "ATn0CqrzrWS5ak185Bsb1xCpyzBDOZ8WdRxyFotppLYePTDhiuQ49H5QXO_L-4HKk1GBn7f9_QhbNK2s" ,
"ipAddress" : "103.100.16.82" ,
"createdAt" : "2023-11-20T10:23:36.515Z" ,
"updatedAt" : "2023-11-20T10:23:36.515Z" ,
"createdBy" : "user123"
}
],
"totalCount" : 0
}
422 - Unprocessable Entity
Ejemplo
curl -X GET 'https://services.leadconnectorhq.com/payments/subscriptions' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28'