Payments in the YOM system are records that document transactions between customers and the company. This page details the essential fields for recording and managing these payments accurately.
GET /api/payment
FILE <fecha>_<hora>_payment.csv
The payment entity.
| Field | Type | Requirement | Description | Examples |
|---|---|---|---|---|
paymentId |
π Text | π’ Required | Unique identifier of the Payment. | "PAY001" |
internalPaymentId |
πΒ ObjectId | βͺ Optional | Unique identifier of the Payment. | |
| *\*Generated by YOM | ||||
*Sent in the event **payment.created* |
"YOM-PAY001" |
|||
commerceId |
π Text | π’ Required | Unique identifier of the Commerce. | "CLI001" |
voucherId |
π Text | βͺ Optional | Unique identifier of the voucher issued as evidence of the Payment. | |
| *\Can be related to more than one Payment. | "VOU001" |
|||
date |
π Text | π’ Required | Payment creation date in ISO 8601 format. | "2024-07-01T10:30:00.000Z" |
status |
π Text | π’ Required | Current status of the Payment. | |
"pending" β payment pending processing |
||||
"processed" β payment processed |
||||
"accepted" β payment accepted |
||||
"rejected" β payment rejected |
"pending" |
|||
"processed" |
||||
"accepted" |
||||
"rejected" |
||||
amount |
π’ Number | π’ Required | Total amount of the Payment. | 500.00 |
currencyCode |
π Text | π’ Required | Currency code in ISO 4217 format. | |
"CLP" |
||||
"USD" |
||||
"COL" |
||||
"PEN" |
||||
"MXN" |
"CLP" |
|||
"USD" |
||||
"COL" |
||||
"PEN" |
||||
"MXN" |
||||
source |
π Object β PaymentSource | π’ Required | Information about the origin of the Payment record. | |
paymentDocuments |
π‘ List of Objects β PaymentDocument | π’ Required | List detailing the Financial Documents the Payment is made against. | |
paymentDetails |
π‘ List of Objects β PaymentDetail | π’ Required | List containing the details of each payment method used to make the Payment. | |
observation |
π Text | βͺ Optional | Notes about the Payment. | "pagado en local 221" |
The paymentDocuments structure lets you detail the tax documents the Payment is made against, with the Payment amounts assigned to the Document.
| --- | --- | --- | --- | --- |
The paymentDetails structure lets you detail each payment method used for the Payment.
| --- | --- | --- | --- | --- |
The paymentSource structure contains information about the origin of the Payment record.
| --- | --- | --- | --- | --- |
Efficient Payments management in YOM ensures transparency and proper tracking of all financial transactions carried out with customers.
These fields allow proper documentation and tracking of the payments made in the system, ensuring the integrity and accuracy of YOM financial information.