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.
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
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
422 - Unprocessable Entity
Ejemplo