Use case
The entrepreneur has a basement shop. No other locations ie. dimensions is not used. Daily cash sales are imported for accounting as voucher. In sample some custom-specified accounts are used alongside Procountor’s default accounts. No cash report attached.
Used endpoints
POST /ledgerreceipts endpoint creates a new voucher (ledgerReceipt in API). Status of new ledger receipt is always “UNFINISHED”. It is possible to approve ledger receipts via Procountor API using PUT
/ledgerreceipts/{receiptId}/approve endpoint.
Posting a ledger receipt of daily cash sales by different accounts receivables. Debit transactions as positive, credit transactions as negative. Total of receipts should be zero, some rounding / reconciliations may occur. As transaction type used ‘ENTRY’
Sample code:
{
"type": "JOURNAL",
"status": "UNFINISHED",
"name": "Cash sales (daily) ",
"receiptDate": "2020-06-30",
"vatType": "SALES",
"vatStatus": 1,
"accountantsNotes": "Daily cash sales based on data from cash software",
"transactions": [
{
"transactionType": "ENTRY",
"account": "1700",
"accountingValue": 195.42,
"vatPercent": 0.0000,
"vatType": "SALES",
"vatStatus": 12,
"description": "1700 / Accounts receivable",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "1701",
"accountingValue": 2666.62,
"vatPercent": 0.0000,
"vatType": "SALES",
"vatStatus": 12,
"description": "1701 / Bank card receivable",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "1702",
"accountingValue": 706.18,
"vatPercent": 0.0000,
"vatType": "SALES",
"vatStatus": 12,
"description": "1702 / Credit card receivable",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "3001",
"accountingValue": -121.30,
"vatPercent": 24.0000,
"vatType": "SALES",
"vatStatus": 1,
"description": "3001 / Stuff sales",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "3005",
"accountingValue": -2350.45,
"vatPercent": 14.0000,
"vatType": "SALES",
"vatStatus": 1,
"description": "3005 / Food sales",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "3010",
"accountingValue": -507.50,
"vatPercent": 24.0000,
"vatType": "SALES",
"vatStatus": 1,
"description": "3010 / Alcoholic beverages",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "3015",
"accountingValue": -34.00,
"vatPercent": 0.0000,
"vatType": "SALES",
"vatStatus": 12,
"description": "3015 / Stamp sales",
"vatDeductionPercent": 100.0000
},
{
"transactionType": "ENTRY",
"account": "3020",
"accountingValue": -75.00,
"vatPercent": 0.0000,
"vatType": "SALES",
"vatStatus": 12,
"description": "3020 / Lottery sales",
"vatDeductionPercent": 100.0000
}
]
}
The id of saved ledger receipt is useful to be stored. By using the id of ledger receipt, you can search, update or invalidate it later via API if needed.
Successfully completed ledger receipt in the interface looks like this:
Other information
Chart of accounts is available via Procountor API
- GET /coa
Used VAT status codes are available via Procountor API
- GET /vats/default