Subscription Components

Bulk Update Subscription Components' Price Points

POST
/subscriptions/{subscription_id}/price_points.json

Updates the price points on one or more of a subscription's components.

The price_point key can take either a:

  1. Price point id (integer)
  2. Price point handle (string)
  3. "_default" string, which will reset the price point to the component's current default price point.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

subscription_id*integer

The Chargify id of the subscription.

Request Body

application/json

components?array<>

Response Body

application/json

application/json

curl -X POST "https://example.com/subscriptions/0/price_points.json" \  -H "Content-Type: application/json" \  -d '{    "components": [      {        "component_id": 997,        "price_point": 1022      },      {        "component_id": 998,        "price_point": "wholesale-handle"      },      {        "component_id": 999,        "price_point": "_default"      }    ]  }'
{  "components": [    {      "component_id": 123,      "price_point": 456    },    {      "component_id": 789,      "price_point": 987    }  ]}