Payable

Create one

Creates a new payable. This endpoint skips user authentication (it can be used by unauthenticated flows). The company is identified by the company_id field in the request body; send the same company UUID in the required company-id header.

post/v1/erp/payouts/payables

Parameters

#/paths/~1v1~1erp~1payouts~1rules/get/parameters/0 — unresolved $ref

Request body

amountinteger
company_idstring uuid
currency'clp'
document_typestring

An integer representing the type of document. Refer to the document_types mapping for possible values and their corresponding document types.

counterpart_company_idstring uuid
descriptionstring
business_partner_idstring uuid

The id of an existing business partner to associate with this payable.

imprest_fund_idstring uuid

The id of the imprest fund this payable is charged against, if any.

payment_datestring date-time

The scheduled/expected payment date for this payable.

Response

Body of the created payable.

idstring uuid required
source_typestring
source_idstring
amountinteger required
status'uninitiated' | 'in_review' | 'approved' required
due_datestring date-time

The date in which the payable is due.

payment_status'paid' | 'partially_paid' | 'non_paid'
company_idstring uuid required
issue_datestring date-time

The date in which the payable was issued.

currencystring required
document_typeinteger required

An integer representing the type of document. Refer to the document_types mapping for possible values and their corresponding document types.

sender_idstring uuid
recipient_idstring uuid
counterpart_company_idstring uuid required

The id of the counterpart company. This is the company that will receive the payment.

descriptionstring
discardedboolean

Whether the payable has been discarded or not. A discarded payable will not be obtained in the index.

partially_paid_amountinteger
paid_amountinteger

The amount that has been paid for this payable. This amount is calculated using the partially_paid_amount param, the amount of the bank transactions related to the payable and the amount of the credit notes related.

created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this endpoint across all 1 revision of this API.