Skip to main content
POST
/
v1
/
taxes
Create tax
curl --request POST \
  --url https://app.blinksale.test/api/v1/taxes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Sales Tax",
  "percent": 8.5
}
'
{
  "success": true,
  "message": "Tax created successfully",
  "data": {
    "id": "01jtbf0c9zaraqx3swthf88n5y",
    "organization_id": "01jtbf0c9zaraqx3swthf88n5y",
    "name": "Sales Tax",
    "percent": 8.5,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Access token obtained from the /v1/auth/login endpoint

Body

application/json
name
string
required
Example:

"Sales Tax"

percent
number<float>
required
Example:

8.5

Response

Tax created successfully

success
boolean
Example:

true

message
string
Example:

"Tax created successfully"

data
object