Accounting entry mode. If null, uses company default setting
Default:""
Enum:"GROUPED""DETAILED"
Example:"DETAILED"
POST
curl -i -X POST \
https://api.prana.software/api/v1/collection \
-H 'Content-Type: application/json' \
-d '{
"currency": 1,
"periodId": 1,
"account": 470000,
"concept": 100,
"collectionDate": "2024-08-07",
"country": "Spain",
"accountCode": "572000003",
"observations": "Advance payment by bank transfer.",
"amount": 1500.75,
"accounted": false,
"bankName": "Bank of Spain",
"documentNumber": "RCPT-20240001",
"iban": "ES9121000418450200051332",
"bicSwift": "CAIXESBBXXX",
"accountingDate": "2024-03-16",
"change": 1.05,
"companyCurrency": 2,
"companyAmount": 1575.79,
"invoiceReference": 10001,
"orderNumber": 1001,
"extension": "EXT-001",
"bank": 1,
"invoice": 100,
"collectedAmountTotal": 1500,
"accountingEntryMode": "GROUPED",
"lines": [
{
"id": "",
"header": 1,
"receipt": 100,
"ignorePending": false,
"collectionAmount": 500
}
],
"customer": 0,
"deliveryNote": 0,
"quote": 0,
"order": 0,
"counted": true,
"paymentType": "CASH"
}'OK
Accounting entry mode
Default:""
Enum:"GROUPED""DETAILED"
Example:"DETAILED"
Response
{ "id": "", "account": { "id": "", "code": "1000", "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": "100", "parentDescription": "Assets" }, "concept": { "id": "", "code": "CON001", "description": "Sales revenue" }, "orderNumber": 0, "collectionDate": "2019-08-24", "accounted": true, "observations": "string", "extension": "string", "collectedAmountTotal": 0, "collectedAmountTotalCompanyCurrency": 0, "pendingAmountTotal": 0, "pendingAmountTotalCompanyCurrency": 0, "receiptAmountTotal": 0, "receiptAmountTotalCompanyCurrency": 0, "receiptsNumber": 0, "currency": null, "bank": null, "amountReconciliation": 0, "amountReconciliationCompanyCurrency": 0, "accountingEntryMode": "GROUPED", "lines": [ { … } ], "customer": { "id": "", "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "isActive": true, "inactiveDate": "2024-08-07", "currencyIdDelegationZero": 1 }, "quoteNumber": 0, "quoteId": 0, "ordersNumber": 0, "orderId": 0, "deliveryNoteNumber": 0, "deliveryNoteId": 0, "paymentType": "CASH" }