YOM Docs

Payments

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.

Events

POST payment.created

POST payment.updated

Fields

Payment

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"

PaymentDocument

The paymentDocuments structure lets you detail the tax documents the Payment is made against, with the Payment amounts assigned to the Document.

| --- | --- | --- | --- | --- |

PaymentDetail

The paymentDetails structure lets you detail each payment method used for the Payment.

| --- | --- | --- | --- | --- |

PaymentSource

The paymentSource structure contains information about the origin of the Payment record.

| --- | --- | --- | --- | --- |

Example