Create Tax Rate

POST {{baseUrl}}/accounting/tax-rates?raw=false

Create Tax Rate

Request Params

KeyDatatypeRequiredDescription
rawbooleanInclude raw response. Mostly used for debugging purposes

Request Body

{"id"=>"1234", "name"=>"GST on PurchasesNB - {{$timestamp}}", "code"=>"BTA", "description"=>"Reduced rate GST Purchases", "effective_tax_rate"=>10, "total_tax_rate"=>10, "tax_payable_account_id"=>"{{primaryTaxPayableAccountId}}", "tax_remitted_account_id"=>"{{primaryTaxRemittedAccountId}}", "components"=>[{"name"=>"RST", "rate"=>6, "compound"=>false}, {"name"=>"GST", "rate"=>4, "compound"=>false}], "type"=>"{{primaryTaxType}}", "original_tax_rate_id"=>"12345", "status"=>"active", "subsidiaries"=>[{"id"=>"laboris ven"}, {"id"=>"commodo dolor deserunt pariatur ullamco"}], "custom_fields"=>[{"id"=>"2389328923893298", "name"=>"employee_level", "description"=>"Employee Level", "value"=>"Uses Salesforce and Marketo"}, {"id"=>"2389328923893298", "name"=>"employee_level", "description"=>"Employee Level", "value"=>"Uses Salesforce and Marketo"}]}

HEADERS

KeyDatatypeRequiredDescription
x-apideck-consumer-idstring(Required) ID of the consumer which you want to get or push data from
x-apideck-app-idstring(Required) The ID of your Unify application
x-apideck-service-idstringProvide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"status_code":200,"status":"OK","service":"xero","resource":"tax-rates","operation":"add","data":{"id":"12345"}}