PUT
/
v1
/
tax_rates
/
{id}
cURL
curl --request PUT \
  --url https://api.paycashless.com/v1/tax_rates/{id} \
  --header 'Content-Type: application/json' \
  --header 'Request-Signature: <request-signature>' \
  --header 'Request-Timestamp: <request-timestamp>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "taxType": "vat",
  "active": true,
  "metadata": {}
}'
{
  "id": "<string>",
  "name": "<string>",
  "active": true,
  "inclusive": true,
  "description": "<string>",
  "percentage": 123,
  "taxType": "vat",
  "rateType": "fixed_amount",
  "fixedAmount": 123,
  "metadata": {},
  "liveMode": true,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Headers

Request-Signature
string
required

SHA-512 HMAC signature of the request payload using the API secret

Minimum length: 1
Example:

"5e73d044c44d733fcf819ad3409aaaddca840d421b69cb0b04e2c750fc62ece7526d36296237663ad1f06f62a730c0466516507196b3ce6567493cc52a7cf63d"

Request-Timestamp
string
required

UNIX timestamp when the request was created (in seconds)

Example:

"1712336881"

Path Parameters

id
string
required

Tax rate id

Example:

"txr_123"

Body

application/json

Response

200 - application/json

Tax rate updated

The response is of type object.