curl --request GET \
--url http://{defaultHost}/api/v2/platform/tax_rates/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "17",
"type": "tax_rate",
"attributes": {
"amount": "0.1",
"included_in_price": false,
"created_at": "2022-11-08T19:35:44.874Z",
"updated_at": "2022-11-08T19:35:44.874Z",
"name": "TaxRate - 83823",
"show_rate_in_label": true,
"deleted_at": null,
"public_metadata": {},
"private_metadata": {}
},
"relationships": {
"zone": {
"data": {
"id": "103",
"type": "zone"
}
},
"tax_category": {
"data": {
"id": "168",
"type": "tax_category"
}
}
}
}
}Returns a Tax Rate
curl --request GET \
--url http://{defaultHost}/api/v2/platform/tax_rates/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "17",
"type": "tax_rate",
"attributes": {
"amount": "0.1",
"included_in_price": false,
"created_at": "2022-11-08T19:35:44.874Z",
"updated_at": "2022-11-08T19:35:44.874Z",
"name": "TaxRate - 83823",
"show_rate_in_label": true,
"deleted_at": null,
"public_metadata": {},
"private_metadata": {}
},
"relationships": {
"zone": {
"data": {
"id": "103",
"type": "zone"
}
},
"tax_category": {
"data": {
"id": "168",
"type": "tax_category"
}
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Select which associated resources you would like to fetch, see: https://jsonapi.org/format/#fetching-includes
Was this page helpful?