Update a price
/prices/{price_id}A new unit_amount or tax_behavior adds a version, which applies to sessions created from then on. Open sessions, orders and invoices keep the version they have. Set active to false to archive the price. Prices are archived, never deleted.
Headers
AuthorizationstringRequiredPath parameters
price_idstringRequiredThe price's ID (prc_).
Parameters
unit_amountintegerAdds a version.
tax_behaviorstringexclusive adds tax to the amount, and inclusive includes it.
activebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
Returns
The updated price.
idstringresourcestringproductstringreferencestring or nulltypestringrecurring for a price with a schedule.
scheduleobject or nullShow 2 child attributesHide child attributes
Option 1objectHow often a recurring price bills.
Show 2 child attributesHide child attributes
intervalstringRequiredinterval_countintegerOption 2nullsubscription_optionsobject or nullShow 2 child attributesHide child attributes
enginestringconnectionstring or nullcurrencystringThree-letter ISO currency code, in lowercase.
Show 8 more attributesShow fewer attributes
unit_amountintegertax_behaviorstringexclusive adds tax to the amount, and inclusive includes it.
versionintegercurrent_versionintegerThe latest version. Differs from version when you ask for an earlier one.
activebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringtest_modebooleanErrors
400401403404