Get subscription
Get the subscription with the given ID.
Path parameters
ID of the subscription to get.
Response
Subscription information.
Example response
{
"data": {
"id": "sub_XXXXXXXXXXXXXXXXXXXXXXXXX",
"productVariantID": "var_XXXXXXXXXXXXXXXXXXXXXXXXX",
"price": 2200,
"quantity": 1,
"addressID": "shp_XXXXXXXXXXXXXXXXXXXXXXXXX",
"cardID": "crd_XXXXXXXXXXXXXXXXXXXXXXXXX",
"schedule": {
"type": "weekly",
"interval": 3
},
"next": "2025-02-01T19:36:19.000Z",
"created": "2024-06-29T19:36:19.000Z"
}
}Changes
Changed in 4 of the 41 revisions of this API.427
- ○
added the required property
data/allOf[Subscription]/priceto the response with the200statusresponse-required-property-added
- ○
- ○
added the required property
data/allOf[Subscription]/createdto the response with the200statusresponse-required-property-added
- ○
- ▲
the response's body type/format changed from
/toobject/for status401response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status404response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status429response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status500response-body-type-changed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status401response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status404response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status429response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status500response-body-all-of-removed
- ○
added the optional property
detailsto the response with the401statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the404statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the429statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the500statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the401statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the404statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the429statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the500statusresponse-optional-property-added
- ○
added the required property
codeto the response with the401statusresponse-required-property-added
- ○
added the required property
codeto the response with the404statusresponse-required-property-added
- ○
added the required property
codeto the response with the429statusresponse-required-property-added
- ○
added the required property
codeto the response with the500statusresponse-required-property-added
- ○
added the required property
messageto the response with the401statusresponse-required-property-added
- ○
added the required property
messageto the response with the404statusresponse-required-property-added
- ○
added the required property
messageto the response with the429statusresponse-required-property-added
- ○
added the required property
messageto the response with the500statusresponse-required-property-added
- ○
added the required property
typeto the response with the401statusresponse-required-property-added
- ○
added the required property
typeto the response with the404statusresponse-required-property-added
- ○
added the required property
typeto the response with the429statusresponse-required-property-added
- ○
added the required property
typeto the response with the500statusresponse-required-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○