create_subscription_contract_atomic
Create a Shopify subscription contract atomically with customer, line items, billing, and delivery schedules in a single operation.
Instructions
Create a complete subscription contract in a single operation
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customerId": "<customerId>",
"currencyCode": "<currencyCode>",
"nextBillingDate": "<nextBillingDate>",
"lineItems": "<lineItems>",
"billingInterval": "<billingInterval>",
"billingIntervalCount": "<billingIntervalCount>",
"deliveryInterval": "<deliveryInterval>",
"deliveryIntervalCount": "<deliveryIntervalCount>"
},
"name": "create_subscription_contract_atomic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineItems | Yes | Line items for the subscription | |
| customerId | Yes | Customer ID to associate with the subscription | |
| currencyCode | Yes | Currency code (e.g., 'USD') | |
| deliveryPrice | No | Delivery price | |
| billingInterval | Yes | Billing interval | |
| nextBillingDate | Yes | Next billing date (ISO 8601 format) | |
| deliveryInterval | Yes | Delivery interval | |
| billingIntervalCount | Yes | Number of intervals between billings | |
| deliveryIntervalCount | Yes | Number of intervals between deliveries |