PUT
/
taxes
/
rates
/
{id}
Update a tax rate
curl --request PUT \
  --url https://api.cloud.flexprice.io/v1/taxes/rates/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "code": "<string>",
  "description": "<string>",
  "metadata": {},
  "name": "<string>",
  "tax_rate_status": "ACTIVE"
}'
{
  "code": "<string>",
  "created_at": "<string>",
  "created_by": "<string>",
  "description": "<string>",
  "environment_id": "<string>",
  "fixed_value": 123,
  "id": "<string>",
  "metadata": {},
  "name": "<string>",
  "percentage_value": 123,
  "scope": "INTERNAL",
  "status": "published",
  "tax_rate_status": "ACTIVE",
  "tax_rate_type": "percentage",
  "tenant_id": "<string>",
  "updated_at": "<string>",
  "updated_by": "<string>"
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Tax rate ID

Body

application/json

Tax rate to update

code
string

code is the updated unique alphanumeric identifier for the tax rate

description
string

description is the updated text description for the tax rate

metadata
object

metadata contains updated key-value pairs that will replace existing metadata

name
string

name is the updated human-readable name for the tax rate

tax_rate_status
enum<string>
Available options:
ACTIVE,
INACTIVE

Response

OK

code
string
created_at
string
created_by
string
description
string
environment_id
string
fixed_value
number
id
string
metadata
object
name
string
percentage_value
number
scope
enum<string>
Available options:
INTERNAL,
EXTERNAL,
ONETIME
status
enum<string>
Available options:
published,
deleted,
archived
tax_rate_status
enum<string>
Available options:
ACTIVE,
INACTIVE
tax_rate_type
enum<string>
Available options:
percentage,
fixed
tenant_id
string
updated_at
string
updated_by
string