Finance
Payment
A collection or a payment recorded in treasury.
Schemas: PaymentDto
Example
Generated from the schema
A collection or a payment recorded in a treasury account, with its direction (in or out), amount, currency, date and type. A payment can be tied to several documents, which linkedDocuments lists. List the payments of one invoice with GET /api. Payments are created and corrected from outside, and the treasury accounts they go through are not.
Attributes
Payment identifier.
in when money comes in (a collection) and out when it goes out (a payment).
Payment amount as a decimal string, in the indicated currency.
Limits: pattern ^-?\d+\.\d{2}$
Payment currency, as an ISO 4217 code.
Payment date in ISO 8601 UTC.
normal, or deposit when it is an advance payment.
Treasury account the payment goes through.
Customer or supplier of the payment; null if not declared.
External reference of the payment; null if it has none.
Documents the payment is assigned to; empty if it is not linked to any.
Show child attributesHide child attributes
Kind of the linked document.
Available options: invoice, creditNote, supplierInvoice, quote, proforma, salesReceipt, simpleCreditNote, purchaseOrder
Identifier of the linked document.
Amount of this payment assigned to the document, as a decimal string.
Limits: pattern ^-?\d+\.\d{2}$
Creation date in ISO 8601 UTC.
Last modification date in ISO 8601 UTC.
Returned by
GET /api/v1/invoices/{invoiceId}/payments— List the payments of an invoiceGET /api/v1/treasury/payments— List treasury paymentsGET /api/v1/treasury/payments/{paymentId}— Get a payment
Modified by
POST /api/v1/treasury/payments— Record an incoming or outgoing paymentPATCH /api/v1/treasury/payments/{paymentId}— Update a paymentPOST /api/v1/treasury/payments/{paymentId}/links— Link a payment to a document
Was this page helpful?