Component: Price Points

Clone Component Price Point

POST
/components/{component_id}/price_points/{price_point_id}/clone.json

Clones a component price point. Custom price points (tied to a specific subscription) cannot be cloned. The following attributes are copied from the source price point:

  • Pricing scheme
  • All price tiers (with starting/ending quantities and unit prices)
  • Tax included setting
  • Currency prices (if definitive pricing is set)
  • Overage pricing (for prepaid usage components)
  • Interval settings (if multi-frequency is enabled)
  • Event-based billing segments (if applicable)

Authorization

BasicAuth
AuthorizationBasic <token>

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

In: header

Path Parameters

component_id*|

The id or handle of the component. When using the handle, it must be prefixed with handle:. Example: 123 for an integer ID, or handle:example-product-handle for a string handle.

price_point_id*|

The id or handle of the price point. When using the handle, it must be prefixed with handle:. Example: 123 for an integer ID, or handle:example-price_point-handle for a string handle.

Request Body

application/json

price_point*

Response Body

application/json

application/json

curl -X POST "https://example.com/components/0/price_points/0/clone.json" \  -H "Content-Type: application/json" \  -d '{    "price_point": {      "name": "Pro Usage Tiered Clone"    }  }'
{  "price_point": {    "id": 9012,    "name": "Pro Usage Tiered Clone",    "type": "catalog",    "pricing_scheme": "tiered",    "component_id": 1234,    "handle": "pro-usage-tiered-clone",    "archived_at": null,    "created_at": "2024-05-01T12:34:56-04:00",    "updated_at": "2024-05-01T12:34:56-04:00",    "use_site_exchange_rate": false,    "currency_prices": [      {        "id": 3001,        "currency": "EUR",        "price": "9.99",        "formatted_price": "€9.99",        "price_id": 4001,        "price_point_id": 9012      }    ],    "currency_overage_prices": [      {        "id": 3002,        "currency": "EUR",        "price": "2.50",        "formatted_price": "€2.50",        "price_id": 4002,        "price_point_id": 9012      }    ],    "renew_prepaid_allocation": true,    "rollover_prepaid_remainder": false,    "expiration_interval": 1,    "expiration_interval_unit": "month",    "overage_pricing_scheme": "tiered",    "subscription_id": 4321,    "prices": [      {        "id": 4001,        "component_id": 1234,        "starting_quantity": 1,        "ending_quantity": 100,        "unit_price": "9.99",        "price_point_id": 9012,        "formatted_unit_price": "$9.99",        "segment_id": null      }    ],    "overage_prices": [      {        "id": 4002,        "component_id": 1234,        "starting_quantity": 101,        "ending_quantity": null,        "unit_price": "2.50",        "price_point_id": 9012,        "formatted_unit_price": "$2.50",        "segment_id": null      }    ],    "tax_included": false,    "interval": 1,    "interval_unit": "month"  }}