Add a tax rule with its source and the date it was checked
post/shop/tax-rules
Before you call
- Credential
Authorization: Bearer $KEY- Scope
shop:admin- Sdk
shop.taxRule.create- Cli
shop tax rule create
Request bodyapplication/json, required
- namestringrequiredAt most 120 characters.
- countrystringrequiredPattern: ^[A-Z]{2}$.
- regionstringDefault: . At most 10 characters.
- taxClassstringDefault: standard. Pattern: ^[a-z][a-z0-9_]{0,29}$.
- rateBpintegerrequiredAt least 0. At most 10000.
- inclusivebooleanDefault: true.
- validFromstring or null
- validTostring or null
- sourceUrlstring (uri)requiredAt most 500 characters.
- verifiedOnstringrequiredPattern: ^\d{4}-\d{2}-\d{2}$.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring