Create tax document

Creates a new tax document with issuer, receiver, items and totals information

Path parameters

merchantIdstringRequired
Merchant ID
organizationIdstringRequired
Organization ID

Headers

AuthorizationstringRequired

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

Request

This endpoint expects an object.
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
contactIdstringRequired

ID of the contact (receiver) associated with this 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.

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
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

Response

Tax document was successfully created and returns the created document details including issuer, receiver, items, totals and associated electronic documents
documentIdstring
headerobject
detailslist of objects
totalsmap from strings to any
electronicDocumentobject

Errors