POST Tax
Developing
POST
{{url}}api/v1/admin/taxes
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://ecompulse.test/api/v1/admin/taxes' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "Vat new",
"name": "Vat new",
"rate": 18,
"price_type_id": 2
}'
Response Response Example
{
"status": "success",
"message": "Tax created successfully",
"data": {
"id": 6,
"code": "Vat new",
"name": "Vat new",
"rate": "18.00",
"price_type": {
"id": 2,
"name": "Percent (%)"
},
"status": 1
}
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
Responses
Modified at 2024-05-27 08:00:36