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:
Field | Type | Description | Example Value |
---|---|---|---|
entity_code | integer | Identifies the entity where taxation is applied. | 119 |
api_code | integer | The code for the API operation (e.g., tax update). | 1008 |
id | string | The unique identifier of the invoice. | "68156" |
items | array | Contains the invoice line details and tax breakdown. | See example above. |
id (in items) | string | The unique identifier of the invoice line. | "838671" |
tax_code | string | The tax code associated with the invoice line. | "050118" |
taxes | array | Array of tax lines, each with a description and amount. | See example above. |
description | string | The name of the tax being applied. | "STATE SALES TAX" |
amount | number | The 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
Key | Datatype | Required | Description |
---|---|---|---|
AppKey | string | ||
UserName | string | ||
AccessToken | string | ||
Content-Type | string |