Products

Archive Product

DELETE
/products/{product_id}.json

Archives the product. All current subscribers will be unaffected; their subscription/purchase will continue to be charged monthly.

This will restrict the option to chose the product for purchase via the Billing Portal, as well as disable Public Signup Pages for the 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

Response Body

application/json

application/json

curl -X DELETE "https://example.com/products/0.json"
{  "product": {    "id": 4535638,    "name": "Business Monthly",    "handle": null,    "description": "Business Monthly",    "accounting_code": "",    "request_credit_card": true,    "expiration_interval": null,    "expiration_interval_unit": "never",    "created_at": "2017-08-25T10:25:31-05:00",    "updated_at": "2018-01-16T13:02:44-06:00",    "price_in_cents": 4900,    "interval": 1,    "interval_unit": "month",    "initial_charge_in_cents": null,    "trial_price_in_cents": 0,    "trial_interval": 1,    "trial_interval_unit": "day",    "archived_at": "2018-01-16T13:02:44-06:00",    "require_credit_card": false,    "return_params": "",    "taxable": false,    "update_return_url": "",    "tax_code": "",    "initial_charge_after_trial": false,    "version_number": 1,    "update_return_params": "",    "product_family": {      "id": 1025627,      "name": "Acme Products",      "description": "",      "handle": "acme-products",      "accounting_code": null    },    "product_price_point_name": "Default"  }}