Product: Price Points
Promote Product Price Point to Default
Sets a product price point as the default for the product.
Note: Custom product price points cannot be set as the default for a product.
Authorization
BasicAuth AuthorizationBasic <token>
The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
product_id*integer
The Advanced Billing id of the product to which the price point belongs
price_point_id*integer
The Advanced Billing id of the product price point
Response Body
application/json
curl -X PATCH "https://example.com/products/0/price_points/0/default.json"{ "product": { "id": 29778, "name": "Educational", "handle": "educational", "description": null, "accounting_code": null, "request_credit_card": true, "expiration_interval": 12, "expiration_interval_unit": "month", "created_at": "2023-12-01T06:56:12-05:00", "updated_at": "2023-12-01T06:56:26-05:00", "price_in_cents": 100, "interval": 2, "interval_unit": "month", "initial_charge_in_cents": 120000, "trial_price_in_cents": 4900, "trial_interval": 1, "trial_interval_unit": "month", "archived_at": null, "require_credit_card": true, "return_params": null, "taxable": false, "update_return_url": null, "tax_code": null, "initial_charge_after_trial": false, "version_number": 1, "update_return_params": null, "default_product_price_point_id": 32395, "request_billing_address": false, "require_billing_address": false, "require_shipping_address": false, "use_site_exchange_rate": true, "item_category": null, "product_price_point_id": 32395, "product_price_point_name": "Default", "product_price_point_handle": "uuid:8c878f50-726e-013c-c71b-0286551bb34f", "product_family": { "id": 933860, "name": "Acme Projects", "description": "Amazing project management tool", "handle": "acme-projects", "accounting_code": null, "created_at": "2023-12-01T06:56:12-05:00", "updated_at": "2023-12-01T06:56:12-05:00" } }}