Invoice Tax Settings
POST /api/v1/InvoiceSetting/InvoiceTaxSettings
Description
This endpoint is used to create invoice tax settings for invoices. It allows users to set up specific tax rates for different types of invoices.
Headers:
- Content-Type: application/json
ApiKey:
- No API key required
Path Parameters:
- version: string, required
Request Body:
- CreateInvoiceTaxSettings object containing the tax settings
URL:
- POST:
{{baseUrl API url}}/api/v1/InvoiceSetting/InvoiceTaxSettings
Response:
- 200: Success, indicates that the tax settings have been successfully created.
Error Codes:
-
400: Bad Request, the request body is not valid or missing required fields.
-
404: Resource not found, the specified version or setting does not exist.
-
500: Internal server error, something went wrong while processing the request.
Example Request URL:
POST /api/v1/InvoiceSetting/InvoiceTaxSettings
Content-Type: application/json
{
"taxSettings": {
"defaultTaxRate": 0.05,
"taxExempt": false,
"stateTax": 0.03,
"countyTax": 0.02,
"cityTax": 0.01
}
}
Example Response:
HTTP/1.1 200 OK
Method: POST
/api/v1/InvoiceSetting/InvoiceTaxSettings
Headers
| Content-Type | Value |
|---|---|
Content-Type | application/json |
Body (raw)
{
"name": "<string>",
"taxPercentage": "<integer>",
"isDefault": "<boolean>"
}
Response: 200
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/v1/InvoiceSetting/InvoiceTaxSettings \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!