Skip to main content
POST
/
products
/
{productId}
/
calendar_method
/
options
Create calendar method option
curl --request POST \
  --url https://app.supercycle.com/api/v1/products/{productId}/calendar_method/options \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "name": "<string>",
  "durationCount": 123,
  "priceCents": 123,
  "depositVariantShopifyId": 123,
  "variantApplicationType": "<string>",
  "marketApplicationType": "<string>",
  "conditionApplicationType": "<string>",
  "variantApplicationShopifyIds": [
    123
  ],
  "marketApplicationShopifyIds": [
    123
  ],
  "conditionApplicationIds": [
    123
  ],
  "_destroy": true
}
'
{
  "id": 123,
  "name": "<string>",
  "durationCount": 123,
  "priceCents": 123,
  "depositVariantShopifyId": 123,
  "variantApplicationType": "<string>",
  "marketApplicationType": "<string>",
  "conditionApplicationType": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

productId
integer<int64>
required

The Shopify product ID

Body

application/json
id
integer<int64>
name
string
durationCount
integer
priceCents
integer
depositVariantShopifyId
integer<int64> | null
variantApplicationType
string
marketApplicationType
string
conditionApplicationType
string
variantApplicationShopifyIds
integer<int64>[]
marketApplicationShopifyIds
integer<int64>[]
conditionApplicationIds
integer<int64>[]
_destroy
boolean

Response

The created calendar method option

id
integer<int64>
required
name
string
required
durationCount
integer
required
priceCents
integer
required
depositVariantShopifyId
integer<int64> | null
variantApplicationType
string
marketApplicationType
string
conditionApplicationType
string
createdAt
string<date-time>
updatedAt
string<date-time>