Reference · Taxes
Create a tax group
/v1/sites/{siteId}/tax-groupsAdds a tax group to a site. The response is the tax group, with the code to use from then on.
Path
siteIdrequiredThe site, from GET /v1/sites.
string
Headers
AuthorizationrequiredAn API key from Automation > Access in the Dnero portal, sent as
Authorization: Bearer <key>.string
Idempotency-KeyA value you choose, unique to what this request creates: a UUID, or your own id for it. Sending it again with the same body returns the first response and creates nothing more. Required.
string · at most 255 characters
Body
namerequiredThe tax group's name.
string · 1–200 characters
taxCodesrequiredThe taxes in it, by code.
array of string
activeFalse to create it retired. Defaults to true.
boolean
Responses
- bad_requestinvalid_cursoridempotency_key_required
- missing_keyinvalid_keykey_expired+1 more
- key_revokedassistant_keykey_without_access+7 more
- site_not_foundnot_found
- idempotency_key_reusedrequest_in_progress
- invalid_requestnot_a_modifier_group
- rate_limited
- server_error
- upstream_unavailable
201 Created
activerequiredFalse for a retired tax group.
boolean
coderequiredThe tax group's code.
string
namerequiredThe tax group's name.
string
taxCodesrequiredThe taxes in the group, by code.
array of string
updatedAtWhen the tax group last changed.
string · date-time