Price Preferences API Routes
A price preference is used to specify whether tax-inclusiveness is enabled for a context, such as a region or currency code.
These API routes allow admin users to manage whether a region or currency is tax inclusive.
GET /admin/price-preferences#
List Price Preferences
Retrieve a list of price preferences. The price preferences can be filtered by fields such as id. The price preferences can also be sorted or paginated.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.offsetnumberOptionallimitnumberOptionalorderstringOptional-.idstring | string[]Optionalattributestring | string[]Optionalvaluestring | string[]OptionalqstringOptional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberprice_preferencesobject[]The list of price preferences.
price_preferencesobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/price-preferences#
Create Price Preference
Create a price preference.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request body (application/json)
attributestringcurrency_codevaluestringusdis_tax_inclusivebooleanOptionalRequest examples
Responses
200 OK
price_preferenceobjectThe price preference's details.
price_preferenceobject400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/price-preferences/{id}#
Get a Price Preference
Retrieve a price preference by its ID. You can expand the price preference's relations or select the fields that should be returned.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
price_preferenceobjectThe price preference's details.
price_preferenceobject400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/price-preferences/{id}#
Update a Price Preference
Update a price preference's details.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request body (application/json)
attributestringOptionalregion_idvaluestringOptionalreg_123is_tax_inclusivebooleanOptionalRequest examples
Responses
200 OK
price_preferenceobjectThe price preference's details.
price_preferenceobject400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/price-preferences/{id}#
Delete a Price Preference
Delete a price preference.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringRequest examples
Responses
200 OK
idstringobjectstringDefault: "price_preference"
deletedboolean400, 401, 404, 409, 422, 500: an error response is returned.