v1

latestOpenAPI 3.0.0Apache 2.02026-07-142008071.1 MB
Subscriptions

UpdateSubscription

Updates a subscription. You can set, modify, and clear the subscription field values.

put/v2/subscriptions/{subscription_id}

Path parameters

subscription_idstring required

The ID for the subscription to update.

Request body

Example request

{
  "request_body": {
    "subscription": {
      "price_override_money": {
        "amount": 2000,
        "currency": "USD"
      },
      "tax_percentage": null,
      "version": 1594155459464
    }
  }
}

Response

Success

Example response

{
  "subscription": {
    "created_at": "2020-08-03T21:53:10Z",
    "customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
    "id": "9ba40961-995a-4a3d-8c53-048c40cafc13",
    "location_id": "S8GWD5R9QB376",
    "plan_id": "6JHXF3B2CW3YKHDV4XEM674H",
    "price_override_money": {
      "amount": 2000,
      "currency": "USD"
    },
    "status": "ACTIVE",
    "timezone": "America/Los_Angeles",
    "version": 1594311617331
  }
}