Retrieve specific Subscription

API call used to retrieve a recurring Specific Stripe Subscription.

HTTP Request Retrieve specific Subscription

GET https://app.dedit.io/api/v2/subscription/:sessionId

Headers

Name
Value
Description

Content-Type

application/json

The content type of the request body

Authorization

Bearer $TOKEN

authentication token that is used to authorize access to an API

The above command returns a JSON structured like this:

{
"sessionId": "cs_live_a1BCDJVgOtwNYZDnzdQFbxn5pfiiUIejydIIIDRDcH3jkFiMSyOaO2TK0r",
"id": "sub_JS1abZ2yS3LClN",
"userId": 123,
"planId": "price_1IntOARgQaABmNJUlduYqXPM",
"planNickname": "Dedit Pro",
"status": "active",
"created": 1620551070,
"currentPeriodStart": 1620551070,
"currentPeriodEnd": 1652087070,
"canceledAt": 0,
"customer": "cus_Irn6ndQQ0K3lAJ",
"defaultPaymentMethod": "pm_1Ab2CdEfGhILmNOPq3aNqxX2",
"latestInvoice": "in_1Ip8YsG1Ab2CdEfGhILmaDRB"
}

Last updated