Update Prepaid Subscription
Changes a prepaid subscription’s orders_remaining, orders_per_billing or renewal_behavior at any point in its lifecycle.
The Application API Scope can change all three. The Storefront API Scope can change only renewal_behavior; sending orders_per_billing or orders_remaining returns 403.
After the update, if prepaid_orders_remaining is 0, a renewal_behavior of cancel cancels the subscription (live becomes false) and removes it from open orders, and downgrade converts it to a pay-as-you-go subscription.
Authentication
x-api-keystring
Application API Scope — server-to-server, sent in the x-api-key header. See Authentication.
OR
Path parameters
subscription_id
Unique subscription ID
Request
This endpoint expects an object.
orders_per_billing
A number greater than 1
orders_remaining
A number greater than or equal to 0
renewal_behavior
Allowed values:
Response
200
customer
merchant
product
payment
shipping_address
offer
subscription_type
raw_subscription_type
components
extra_data
public_id
quantity
price
frequency_days
reminder_days
every
every_period
start_date
cancelled
cancel_reason
iteration
sequence
session_id
merchant_order_id
created
updated
live
external_id
product_attribute
cancel_reason_code
customer_rep
club
queued_actions
prepaid_subscription_context
Errors
400
Bad Request Error