Tax Documents in the YOM system are the records of invoices, receipts, credit notes and debit notes tied to Orders completed by Commerces. They include the details of their related Products.
GET /api/tax-documents
FILE <fecha>_<hora>_tax-document.csv
| Field | Type | Requirement | Description | Examples |
|---|---|---|---|---|
documentId |
π Text | π’ Required | Unique identifier of the Document defined by the customer. | βCRED001β |
governmentDocumentId |
π Text | π’ Required | Unique identifier of the Document issued by the government entity. | "123456789" |
parentDocumentId |
π Text | βͺ Optional | Parent document identifier. | |
*\*Applies to *credit_note and debit_note |
||||
"INV001" |
||||
type |
π Text | π’ Required | Document type. | |
credit note β Credit note |
||||
invoice β Invoice |
||||
debit note β Debit note |
||||
bill β Receipt |
||||
credit note |
||||
invoice |
||||
debit note |
||||
bill |
||||
wallet |
||||
commerceId |
π Text | π’ Required | Unique identifier of the Commerce. | "COM001" |
dueDate |
π Text | π’ Required | Document due date in ISO 8601 format. | "2024-07-15T00:00:00.000Z" |
date |
π Text | π’ Required | Document creation date in ISO 8601 format. | "2024-07-01T00:00:00.000Z" |
pricing |
π’ Object β Pricing | π’ Required | Total amount of the Document. | 1000.00 |
sellerId |
π Text | βͺ Optional | Unique identifier of the seller associated with the Document. | "SELLER001" |
collectionStatus |
π Text | βͺ Optional | Document status. | |
in_collection β The Document is currently in the collections process. |
||||
collected β The Document was successfully collected in a collections process. |
||||
not_in_collection βThe Document is not in an active collections process. |
in_collection |
|||
collected |
||||
not_in_collection |
The pricing object contains the details of the costs associated with the Document to which price calculations are applied**.** It includes the subtotal, discounts, taxes and the total amount.
| Field | Type | Requirement | Description | Examples |
|---|---|---|---|---|
subtotalAmount |
π’ Number | π’ Required | Amount before discounts and taxes are applied. | 1000 |
discountAmount |
π’ Number | βͺ Optional | Total amount of the discounts applied. | 100 |
shippingAmount |
π’ Number | βͺ Optional | Total amount of the shipping costs applied. | 50 |
taxAmount |
π’ Number | βͺ Optional | Total amount of the taxes applied. | 190 |
totalAmount |
π’ Number | π’ Required | Total amount after discounts, taxes and shipping costs are applied. | 1140 |
currentAmount |
π’ Number | βͺ Optional | Remaining amount to pay | 500 |
taxes |
π‘ List of Objects β Tax | βͺ Optional | Details of the taxes applied to the total. | [{"code": "IVACL", "name": "IVA", "rate": 0.19}] |
discounts |
π‘ List of Objects β Discount | βͺ Optional | Details of the discounts applied to the total. |
Proper management of Tax Documents ensures effective control over the debts and financial obligations of YOM customers.
These fields allow clear, accurate documentation of every outstanding document, making accounts payable management and transparency in YOM financial transactions easier.