Subscribe
Create a subscription for the current user.
Request body
Example request
{
"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"
}Response
Subscription was created successfully.
Changes
Changed in 10 of the 41 revisions of this API.7134
- ▲
added the new required request property
allOf[Subscription]/pricenew-required-request-property
- ▲
- ▲
added the new required request property
allOf[Subscription]/creatednew-required-request-property
- ▲
- ▲
the response's body type/format changed from
/toobject/for status400response-body-type-changed
- ▲
the response's body type/format changed from
/toobject/for status401response-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 status400response-body-all-of-removed
- ○
removed
ErrorResponsefrom the response bodyallOflist for the response status401response-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 the400statusresponse-optional-property-added
- ○
added the optional property
detailsto the response with the401statusresponse-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 the400statusresponse-optional-property-added
- ○
added the optional property
paramto the response with the401statusresponse-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 the400statusresponse-required-property-added
- ○
added the required property
codeto the response with the401statusresponse-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 the400statusresponse-required-property-added
- ○
added the required property
messageto the response with the401statusresponse-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 the400statusresponse-required-property-added
- ○
added the required property
typeto the response with the401statusresponse-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
- ▲
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
- ●
removed the request property
allOf[Subscription]/frequencyrequest-property-removed
- ●
- ▲
removed
subschema #1subschema #2from theallOf[Subscription]/schedulerequest propertyoneOflistrequest-property-one-of-removed
- ○
added
subschema #1: fixedsubschema #2: weeklyto theallOf[Subscription]/schedulerequest propertyoneOflistrequest-property-one-of-added
- ▲
- ○
added the new optional request property
allOf[Subscription]/schedulenew-optional-request-property
- ○
- ○
added the new optional request property
allOf[Subscription]/nextnew-optional-request-property
- ○
- ○
the
dataresponse property const valueokwas added for the status200response-property-const-added
- ○
removed the
okenum value from thedataresponse property for the response status200response-property-enum-value-removed
- ○
- ○
endpoint added
endpoint-added
- ○