Update tax by id
PATCH/v2/taxes/:id
Update tax by id
Request
Path Parameters
Tax id
- application/json
Body
required
Update tax input
Shop identifier for the tax to apply to... If not provided the default will be inferred from the channel
Possible values: [H
, L
, N
]
Tax code
Possible values: <= 2 characters
Tax zone
Default value: 0
Tax percentage
Possible values: <= 10 characters
Tax export code
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Tax updated
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 36 characters
and <= 36 characters
Tax primary identifier
Shop identifier for the tax to apply to
Possible values: [H
, L
, N
]
Tax code
Possible values: <= 2 characters
Tax zone
Default value: 0
Tax percentage
Possible values: <= 10 characters
Tax export code
Default value: CURRENT_TIMESTAMP
Tax initial creation timestamp
Reference to the user that created the tax initially
Default value: CURRENT_TIMESTAMP
Tax last update timestamp
Reference to the user that last modified the tax
{
"id": "8bcacf9d-36a2-48d5-b713-eedb4eb8c28b",
"shopId": 1,
"code": "H",
"zone": "NL",
"percentage": 21.5,
"exportCode": "NL_H",
"createdAt": "2314-03-14T03:14:15.926Z",
"createdBy": 1234,
"lastModifiedAt": "2314-03-14T03:14:15.926Z",
"lastModifiedBy": 1234
}
Bad request
Unauthorized
- application/json
- Schema
- invalid_client_id
- invalid_client_cred
Schema
any
{
"ErrorCode": "invalid_client",
"Error": "ClientId is Invalid"
}
{
"ErrorCode": "invalid_client",
"Error": "Client credentials are invalid"
}
Forbidden.
Tax not found
Update tax error