curl --request POST \
--url https://app.supercycle.com/api/v1/products/{productId}/subscription_method/options \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"name": "<string>",
"recurringPriceCents": 123,
"checkoutPriceCents": 123,
"billingInterval": "<string>",
"minimumTerm": "<string>",
"depositVariantShopifyId": 123,
"variantApplicationType": "<string>",
"marketApplicationType": "<string>",
"conditionApplicationType": "<string>",
"variantApplicationShopifyIds": [
123
],
"marketApplicationShopifyIds": [
123
],
"conditionApplicationIds": [
123
],
"_destroy": true
}
'{
"id": 123,
"name": "<string>",
"recurringPriceCents": 123,
"checkoutPriceCents": 123,
"billingInterval": "<string>",
"minimumTerm": "<string>",
"depositVariantShopifyId": 123,
"variantApplicationType": "<string>",
"marketApplicationType": "<string>",
"conditionApplicationType": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Creates an option for a product’s subscription method. If the method does not exist, it is created first.
curl --request POST \
--url https://app.supercycle.com/api/v1/products/{productId}/subscription_method/options \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"name": "<string>",
"recurringPriceCents": 123,
"checkoutPriceCents": 123,
"billingInterval": "<string>",
"minimumTerm": "<string>",
"depositVariantShopifyId": 123,
"variantApplicationType": "<string>",
"marketApplicationType": "<string>",
"conditionApplicationType": "<string>",
"variantApplicationShopifyIds": [
123
],
"marketApplicationShopifyIds": [
123
],
"conditionApplicationIds": [
123
],
"_destroy": true
}
'{
"id": 123,
"name": "<string>",
"recurringPriceCents": 123,
"checkoutPriceCents": 123,
"billingInterval": "<string>",
"minimumTerm": "<string>",
"depositVariantShopifyId": 123,
"variantApplicationType": "<string>",
"marketApplicationType": "<string>",
"conditionApplicationType": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Shopify product ID
The created subscription method option
Was this page helpful?