Account receivables
Creates account receivables for automated collection
Creates new account receivables that are automatically managed by the Treasury system. These represent amounts owed to the customer by their debtors. The system will track and manage the collection process according to predefined organizational rules. If purge_before_load is true in the header options, existing account receivables will be purged before creating new ones.
post/account_receivables
Request body
Example request
{
"document": {
"header": {
"message_id": "550e8400-e29b-41d4-a716-446655440000",
"creation_date": "2024-01-01T00:00:00Z",
"sender": {
"fin_id_schema": "SHINKANSEN",
"fin_id": "MONSTER_INC_CL"
},
"receiver": {
"fin_id_schema": "SHINKANSEN",
"fin_id": "SHINKANSEN_TREASURY"
},
"options": {
"purge_before_load": false
}
},
"account_receivables": [
{
"payee_id": "12345678",
"payee_id_schema": "CLID",
"payee_name": "Test Payee",
"amount": "1000.00",
"currency": "CLP",
"description": "Test account receivable",
"lowerbound_due_date": "2024-12-31",
"upperbound_due_date": "2025-01-31",
"tags": [
"urgent",
"priority"
],
"custom_fields": {
"invoice_number": "INV-001",
"department": "sales"
}
}
]
}
}Response
Account receivables successfully created. The response includes the created account receivables with their assigned IDs and current status.