Upgrade Subscription To Prepaid

View as Markdown

This endpoint will allow you to upgrade a pay-as-you-go subscription to a prepaid subscription

Authentication

x-api-keystring
API Key authentication via header

Path parameters

subscription_idstringRequired
Unique subscription ID

Request

This endpoint expects an object.
orders_per_billingintegerRequired
An integer greater than 2
renewal_behaviorenumOptionalDefaults to autorenew
Allowed values:
offerstringOptionalDefaults to live

An optional field that if populated will switch which offer the subscription is associated with after upgrade. You can provide the public-id of the offer that you would like to swap the subscription to, or the string “live” which will re-associate the subscription with your currently live offer

Response

200
customerstringOptional
merchantstringOptional
productstringOptional
paymentstringOptional
shipping_addressstringOptional
offerstringOptional
subscription_typestringOptional
raw_subscription_typestringOptional
componentslist of objectsOptional
extra_dataobjectOptional
public_idstringOptional
quantityintegerOptionalDefaults to 0
pricestring or nullOptional
frequency_daysintegerOptionalDefaults to 0
reminder_daysintegerOptionalDefaults to 0
everyintegerOptionalDefaults to 0
every_periodintegerOptionalDefaults to 0
start_datestringOptional
cancelledstring or nullOptional
cancel_reasonstring or nullOptional
iterationanyOptional
sequenceanyOptional
session_idstringOptional
merchant_order_idstringOptional
createdstringOptional
updatedstringOptional
livebooleanOptionalDefaults to true
external_idstringOptional
product_attributeanyOptional
cancel_reason_codeinteger or nullOptional
customer_repinteger or nullOptional
clubanyOptional
queued_actionslist of objectsOptional
prepaid_subscription_contextobjectOptional

Errors

400
Bad Request Error