const url = 'https://api.oletapp.com/your-store/v1/taxes?limit=50&order=asc&include_deleted=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.oletapp.com/your-store/v1/taxes?limit=50&order=asc&include_deleted=false' \ --header 'Authorization: Bearer <token>'Readable by any valid credential: it is reference data needed to interpret product prices and sale totals, which are scoped to other permissions.
400 VALIDATION_FAILED:include_deleted=truecombined withorder=desc.
Requires scope: any
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Opaque. Pass back the exact next_cursor value from a previous response; never construct one. A cursor that fails to decode is 400 VALIDATION_FAILED, in every order mode.
Opaque. Pass back the exact next_cursor value from a previous response; never construct one. A cursor that fails to decode is 400 VALIDATION_FAILED, in every order mode.
Responses
Section titled “Responses”List taxes
object
object
The tax rate. Integer basis points (1/100 of a percent).
Opaque delta-sync version. Increases with every change; use it to detect updates.
Opaque pagination cursor. Pass back as ?cursor= to fetch the next page.
Examplegenerated
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "rate": 1, "version": "example" } ], "has_more": true, "next_cursor": "example"}default
Section titled “default”An error response.
object
object
A machine-readable error code, e.g. VALIDATION_FAILED.
object
A plain-English sentence describing what went wrong.
Example
{ "error": { "code": "UNAUTHORIZED" }}