create-subscription
Create recurring subscriptions for products on Terminal.shop by specifying product variant, quantity, address, payment card, and delivery schedule.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addressID | Yes | ||
cardID | Yes | ||
productVariantID | Yes | ||
quantity | Yes | ||
schedule | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"addressID": {
"type": "string"
},
"cardID": {
"type": "string"
},
"productVariantID": {
"type": "string"
},
"quantity": {
"exclusiveMinimum": 0,
"type": "integer"
},
"schedule": {
"additionalProperties": false,
"properties": {
"interval": {
"exclusiveMinimum": 0,
"type": "integer"
},
"type": {
"enum": [
"fixed",
"weekly"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"productVariantID",
"quantity",
"addressID",
"cardID",
"schedule"
],
"type": "object"
}