v1
latestOpenAPI 3.1.02026-07-24920300.7 KBUpdate Prepaid Subscription
This endpoint will allow you to modify the number of orders remaining, the number of orders per billing, and the renewal behavior for a prepaid subscription at any time during the lifecycle of the prepaid subscription
patch/subscriptions/{subscription_id}/update_prepaid_context/
Path parameters
subscription_idstring required
Unique subscription ID
Request body
Response
200
Example response
{
"customer": "{customer_id}",
"merchant": "{merchant_id",
"product": "{product_id}",
"payment": "{payment_id}",
"shipping_address": "{shipping_address_id}",
"offer": "{offer_id}",
"subscription_type": "replenishment",
"raw_subscription_type": "replenishment",
"extra_data": {
"shopify_contract_id": "gid://shopify/SubscriptionContract/{shopify_contract_id}"
},
"public_id": "{public_id}",
"quantity": 1,
"frequency_days": 30,
"reminder_days": 4,
"every": 1,
"every_period": 3,
"start_date": "2023-05-30",
"session_id": "{session_id}",
"merchant_order_id": "#1144",
"created": "2023-05-30 13:20:41",
"updated": "2023-10-03 10:22:11",
"live": true,
"external_id": "{external_id",
"prepaid_subscription_context": {
"prepaid_orders_remaining": 4,
"prepaid_orders_per_billing": 6,
"renewal_behavior": "autorenew"
}
}