Get a Subscription
Before you get started
You need to have your Access Token and a Subscription ID.
Get a Subscription
- Send a GET request to
https://api.tackle.io/v1/subscriptions/{tackle_subscription_id}
, where{tackle_subscription_id}
corresponds to the subscription that you want the information from.
curl -L -X GET 'https://api.tackle.io/v1/subscriptions/{tackle_subscription_id}' \
-H 'Authorization: Bearer your-jwt-here'
- If successful, you will receive a
200 OK
response similar to the following:
{
"data": {
"tackle_subscription_id": "52fZSV7JbMI",
"productid": "exampleproductid",
"product_link": "https://api.tackle.io/v1/products/exampleproductid",
"cloud": "gcp",
"customerid": "examplecustomerid",
"offerid": "exampleofferid2",
"created_at": "2021-11-12T12:00:00.000Z",
"registered_at": "2021-11-13T12:00:00.000Z",
"updated_at": "2021-11-13T12:00:00.000Z",
"cancelled_at": null,
"started_at": "2021-11-12T12:00:00.000Z",
"ended_at": "2022-11-12T12:00:00.000Z",
"registration_details": {
"Company": "Tackle",
"Email Address": "[email protected]",
"Full Name": "Jane Doe",
"Company Website": "https://tackle.io",
"Phone Number": "1234567890"
},
"entitlements": [
{
"dimension": "example_entitlement_dimension1",
"expiration": "2022-11-12T12:00:00.000Z",
"skuid": "exampleproductid_awsdimension_1",
"value": 1
},
{
"dimension": "example_entitlement_dimension2",
"expiration": "2022-11-12T12:00:00.000Z",
"value": 10,
"skuid": "exampleproductid_awsdimension_2"
}
]
},
"metadata": {
"link": "https://api.tackle.io/v1/subscriptions/52fZSV7JbMI"
}
More information on the product is available via the product_link
. For expanded details, see the Get a Product page.
Ready to see the code in action? Check out our Get a Subscription recipe!
π¦
Get a Subscription
Open Recipe
More example responses can be seen in the Get a Subscription API reference.
Updated almost 3 years ago
Whatβs Next