Update tax document

Updates an existing tax document with new information

Path parameters

merchantIdstringRequired
Merchant ID
documentIdstringRequired
Document ID
organizationIdstringRequired
Organization ID

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Updated document data
documentTypeIdstringRequired

Document type identifier (Provider specific or internal mapping)

countryenumRequired
Country where the document is issued
currencystringRequired

Currency code (e.g., USD, CLP)

itemslist of objectsRequired
List of items in the document
paymentConditionstringRequired

Payment condition description. 0 = cash, 30 = 30 days, 0,30 = 50% cash, 50% in 30 days, 0,30,60 = 33% cash, 33% in 30 days, 34% in 60 days.

contactIdstringOptional

ID of the contact (receiver) associated with this document. Optional for non-nominative documents

referencestringOptional
Reference information
notesstringOptional
General notes
exchangeRatedoubleOptional

Exchange rate value (if currency is foreign)

serviceTypestringOptional
Service type information
paymentDueDatestringOptional

Payment due date (YYYY-MM-DD)

issueDatestringOptional

Issue date (YYYY-MM-DD), defaults to today if omitted

paymentStateenumOptional
Payment state
Allowed values:
additionalobjectOptional

Additional country-specific data

referenceslist of objectsOptional

References to credit notes reasons or non-tax documents

saleModalitydoubleOptional

Only for export documents: optional. Valid values: 1 = Sale agreed 2 = Under condition 3 = Free consignment 4 = Consignment with minimum sale 9 = No payment

saleClausedoubleOptional

Only for export documents: optional. Valid values: 1 = CIF (Cost, Insurance and Freight) 2 = CFR (Cost and Freight) 3 = EXW (Ex Works) 4 = FAS (Free Alongside Ship) 5 = FOB (Free on Board) 6 = S/CL 9 = DDP (Delivered Duty Paid) 10 = FCA (Free Carrier) 11 = CPT (Carriage Paid To) 12 = CIP (Carriage and Insurance Paid to) 17 = DAT (Delivered at Terminal) 18 = DAP (Delivered at Place) 8 = Other

guideTypedoubleOptional
Guide type for the document
transferTypedoubleOptional
Transfer type for the document
netAmountdoubleOptional
Net amount before taxes
taxesAmountdoubleOptional
Total tax amount
totalAmountdoubleOptional
Total amount including taxes

Response

Document successfully updated
documentIdstring
headerobject
detailslist of objects
totalsobject
electronicDocumentobject
referenceslist of objects or null

Errors