Subscriptions

Update Subscription

Update Subscription items and handle proration behavior. Can modify prices, quantities, and add/remove items. The items array is the desired end state of the Subscription: items are paired to existing lines by offerId, missing ones are removed, and new ones are added (up to 20 total). All resulting items must share the same currency and billing period (recurring interval + interval count); otherwise the request is rejected with a 400.

Authorization

Public key Secret key
x-fngs-public-key<token>

In: header

x-fngs-secret-key<token>

In: header

Path Parameters

subscriptionIdOrNumber*string

Subscription ID or order number

Match^#?([0-9A-Za-z]{12,32}|[0-9]+)(-[0-9]+)?$

Request Body

application/json

PATCH /v0/subscriptions/:subscriptionIdOrNumber/update Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

PATCH
/v0/subscriptions/{subscriptionIdOrNumber}/update
curl -X PATCH "https://example.com/v0/subscriptions/string/update" \  -H "Content-Type: application/json" \  -d '{    "items": [      {}    ]  }'
{  "status": "success",  "data": {    "success": true  }}