Prices
Retrieve a price
GET
/prices/{price_id}Returns the current version, or the version you ask for.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Path parameters
price_idstringRequiredThe price's ID (prc_).
Query parameters
versionintegerA version number. Defaults to the current version.
Returns
The 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
401The API key is missing or wrong.
403The key's permissions don't allow this route.
404No such object in this workspace and environment.
Was this page helpful?