UPDATE Invoice Tax Information

POST {{base_url}}/api/dynamicapi

Request Body:
Submit tax details for each invoice line. Use the identifiers (BillingInvoiceID2 and InvoiceLineID2) provided in the retrieval step.

Field Details:

FieldTypeDescriptionExample Value
entity_codeintegerIdentifies the entity where taxation is applied.119
api_codeintegerThe code for the API operation (e.g., tax update).1008
idstringThe unique identifier of the invoice."68156"
itemsarrayContains the invoice line details and tax breakdown.See example above.
id (in items)stringThe unique identifier of the invoice line."838671"
tax_codestringThe tax code associated with the invoice line."050118"
taxesarrayArray of tax lines, each with a description and amount.See example above.
descriptionstringThe name of the tax being applied."STATE SALES TAX"
amountnumberThe tax amount for the specific line.8.11149

Request Body

{"entity_code"=>119, "api_code"=>1008, "id"=>"68156", "items"=>[{"id"=>"838671", "tax_code"=>"050118", "taxes"=>[{"description"=>"STATE SALES TAX", "amount"=>8.11149}, {"description"=>"COUNTY SALES TAX", "amount"=>9.12542}, {"description"=>"METRO COMMUTER TRANS. DISTRICT", "amount"=>0.76046}, {"description"=>"NY MTA SURCHG ON EXCISE TAX", "amount"=>1.2066}, {"description"=>"NY STATE EXCISE TAX", "amount"=>5.06968}, {"description"=>"LOCAL GROSS RECEIPTS TAX", "amount"=>4.7655}, {"description"=>"FEDERAL COST RECOVERY FEE", "amount"=>3.04751}]}]}

HEADERS

KeyDatatypeRequiredDescription
AppKeystring
UserNamestring
AccessTokenstring
Content-Typestring