Tax

Tax

amount
number [ 0 .. 4000000000 )
Deprecated
created_at
string <date-time>
id
string <int64>
object
name
string
rate
number [ 0 .. 4000000000 )
updated_at
string <date-time>
{}

List taxes

get/taxes
SecuritybasicAuth
Request
query Parameters
order
string
Deprecated
Enum: "asc" "desc"
page
integer
per_page
integer [ 1 .. 100 ]
q[]
Array of strings

Filter result by one or more fields.

See Filtering Results

Available filters:

Value Format
created_at date-time
id int64
updated_at date-time
sort
Array of strings

Comma separated search fields. See: Ordering

Example: sort=created_at:desc
Responses
200

successful operation

Request samples
Response samples
application/json
{}

Create tax

post/taxes
SecuritybasicAuth
Request
Request Body schema: application/json
amount
number [ 0 .. 4000000000 )
name
string
rate
number [ 0 .. 4000000000 )
Responses
201

Resource was created

422

Resource could not be saved due to validation errors

Request samples
application/json
{
  • "amount": 0,
  • "name": "string",
  • "rate": 0
}
Response samples
application/json
{}

Get tax

get/taxes/{id}
SecuritybasicAuth
Request
path Parameters
id
required
string <int64>
Responses
200

Successful operation

Request samples
Response samples
application/json
{}

Update tax

patch/taxes/{id}
SecuritybasicAuth
Request
path Parameters
id
required
string <int64>
Request Body schema: application/json
amount
number [ 0 .. 4000000000 )
name
string
rate
number [ 0 .. 4000000000 )
Responses
200

Resource was updated

422

Resource could not be saved due to validation errors

Request samples
application/json
{
  • "amount": 0,
  • "name": "string",
  • "rate": 0
}
Response samples
application/json
{}

Delete tax

delete/taxes/{id}
SecuritybasicAuth
Request
path Parameters
id
required
string <int64>
Responses
204

Resource was deleted successfully

Request samples