v1

latestOpenAPI 3.1.02026-07-24571564.5 KB
Subscriptions

Update subscription contract lines

Update subscription contract lines.

Discount codes: It's an array type, but we only accept one discount code currently. Important note: If no discount code is provided, any existing discount codes will be removed from the subscription.

Editing lines associated with a build a box: When editing lines associated with a build-a-box make sure to pass in, and update when needed, the custom attributes. If you don't provide the correct custom attributes you are at risk of breaking the box functionality. When unsure, pass along the same exact custom attributes as were previously on the line. When adding a new line to a box, make sure to provide the same custom attributes that exist on each other line in the box. All lines in a Dynamic Build-a-box will contain the same custom attributes as each other.

post/customers/{customerId}/subscriptions/{subscriptionId}/lines

Path parameters

customerIdstring required

Customer Id

subscriptionIdstring required

Subscription Id

Request body

sellingPlanstring

Selling plan id

discountCodesstring[]

Discount codes (only one supported at the moment, if not provided the current discounts will be removed)

Response

Lines updated

subscriptionContractIdstring