YOM Docs

Tax Documents

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.

Endpoint

GET /api/tax-documents

FILE <fecha>_<hora>_tax-document.csv

Fields

TaxDocument

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

Pricing

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.

Response

Proper management of Tax Documents ensures effective control over the debts and financial obligations of YOM customers.

Response Example

These fields allow clear, accurate documentation of every outstanding document, making accounts payable management and transparency in YOM financial transactions easier.