The “Get Subscription by ID” API allows to retrieve information for a specific subscription using its unique identifier. Use this endpoint to fetch details for a single subscription based on the provided subscription ID.
API Version
2021-07-28 ID of the subscription that needs to be returned
"6322e9c9e39fc14ab3ed7042"
AltId is the unique identifier e.g: location id.
"3SwdhCu3svxI8AKsPJt6"
AltType is the type of identifier.
location "location"
Successful response
The unique identifier for the subscription.
"64bf78af39118e4011926cba"
AltType is the type of identifier.
"location"
AltId is the unique identifier eg: location id.
"3SwdhCu3svxI8AKsPJt6"
The creation timestamp of the subscription.
"2023-11-20T10:23:36.515Z"
The last update timestamp of the subscription.
"2024-01-23T09:57:04.846Z"
Contact id corresponding to the subscription.
"XPLSw2SVagl12LMDeTmQ"
Contact details of the subscriber.
"{ last_name: \"Mcclain\", type: \"lead\", first_name_lower_case: \"rogan\", email: \"anish+11@hoopai.com\", last_name_lower_case: \"mcclain\", location_id: \"o6241QsiRwUIJHyjuhos\", company_name: \"Jordan and Cox Trading\"}"
Coupon details of the subscription.
"{ _id: \"6374c6926d119a393fe1e556\", usageCount: 5260, altId: \"jVFIxsMY19D94nOSIOEO\", altType: \"location\", name: \"FREE-100%\", code: \"FREE100\", discountType: \"percentage\", discountValue: 100 }"
Currency in which subscription was made.
"USD"
Subscription value.
"100"
Subscription status.
"active"
Subscription is in live / test mode.
"false"
Entity type of subscription (eg: order).
"order"
Entity id for the subscription. e.g: order id
"62f4db0f3059ecee61379012"
"{ type: \"funnel\", id: \"lx6ROqruHGVQD2PZwFxK\", subType: \"upsell\", name: \"test funnel\" }"
Subscription id for subscription.
"I-0UE609H8E43P"
Snapshot of subscription.
"{ 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 }"
Payment provider details for the subscription.
"{ type: \"paypal\", connectedAccount: { _id: \"64410debdc8f3b0503523abb\", merchantClientId: \"AeXtjrxdgsJiCPwQt5jML5pH-0mwmLs-tH7ub4Uo3IrDKvRl34FvJy8niI6E1wmS_pryIRdNllyVl58b\" } }"
Ip address from where subscription was initiated.
"103.100.16.82"
Meta details of the subscription.
"{ collection: \"transactionsv2\", id: \"6320652f0f664b6632006920\" }"
Is test subscription.
"false"
"{ collection: \"transactionsv2\", id: \"6320652f0f664b6632006920\" }"
Auto payment details of the subscription.
"{ customerId: \"908879612\", paymentMethodId: \"908646635\" }"
Recurring product details of the subscription.
"{ locationId: \"Z4Bxl8J4SaPEPLq9IQ8g\", funnel: \"bQHJWKcyjiKjk4BHv91g\", step: \"2281a993-8a75-4b48-9912-571f29c99a74\", name: \"Sofa Set\" }"
Cancellation timestamp of the subscription.
"2023-11-20T10:23:36.515Z"
User id who cancelled the subscription.
"qUuXUiB2AiA2DIthEicP"
Trace id of the subscription.
"302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a"
User ID who created the subscription.
"user123"