Receipts Guide
Document Type: Receipt
Document Type ID: 6 (verify with /document-type)
Overviewβ
Receipts are documents that:
- π° Prove payment received
- β DO NOT affect stock
- π³ Register payment method
- π§Ύ Linked to invoices (optional)
- π Integrate with treasury
When to Useβ
- β Customer makes payment
- β Prove receipt of funds
- β Register in treasury
- β Settle invoices
Receipt Characteristicsβ
| Characteristic | Value | Description |
|---|---|---|
| Affects Stock | β No | Payment only |
| Requires Payment | β Yes | Registers payment |
| Can be Closed | β Yes | Mandatory finalization |
| Fiscal Validation | β Yes | Fiscal document |
| Allows Editing | β οΈ Limited | Only before closing |
| Cancellation | β οΈ Complex | Requires reversal |
Create Receiptβ
Simple Receiptβ
POST /api/v1/invoices
Content-Type: application/json
Authorization: Bearer {token}
{
"serieId": 4,
"documentTypeId": 6,
"entityKeyId": "CLI001",
"entityDescription": "Example Client, Ltd",
"obs": "Payment for invoice INV A/123",
"docReference": "INV A/123",
"paymentModeId": 1, // Cash
"documentBodies": [
{
"itemKeyId": "PYMT001", // Payment item
"itemDescription": "Payment",
"quantity": 1.0,
"retailPrice": 1000.00, // Amount paid
"taxId": 2, // Exempt rate
"paymentType": 1, // Cash
"stockFlow": 0, // Does not affect stock
"stockBehavior": 0,
"secondTaxId": 0
}
]
}
Receipt with Multiple Payment Methodsβ
{
"serieId": 4,
"documentTypeId": 6,
"entityKeyId": "CLI001",
"obs": "Mixed payment - cash and bank transfer",
"docReference": "INV A/123",
"documentBodies": [
{
"itemKeyId": "PYMT001",
"itemDescription": "Payment - Cash",
"quantity": 1.0,
"retailPrice": 500.00, // Cash portion
"taxId": 2,
"paymentType": 1, // Cash
"stockFlow": 0,
"stockBehavior": 0,
"secondTaxId": 0
},
{
"itemKeyId": "PYMT001",
"itemDescription": "Payment - Bank Transfer",
"quantity": 1.0,
"retailPrice": 500.00, // Transfer portion
"taxId": 2,
"paymentType": 3, // Bank Transfer
"stockFlow": 0,
"stockBehavior": 0,
"secondTaxId": 0
}
]
}
Payment Typesβ
| Code | Type | Description |
|---|---|---|
1 | Cash | Currency |
2 | Check | Bank check |
3 | Bank Transfer | Wire transfer |
4 | ATM | ATM reference |
5 | Card | Debit/Credit |
6 | MB Way | MB Way |
Check API
Use endpoint /payment-types for complete list.
Invoice Linkingβ
Receipt for Specific Invoiceβ
{
"serieId": 4,
"documentTypeId": 6,
"entityKeyId": "CLI001",
"obs": "Full settlement of invoice INV A/123",
"docReference": "INV A/123", // Reference to invoice
"paymentModeId": 1,
"documentBodies": [
{
"itemKeyId": "PYMT001",
"itemDescription": "Settlement INV A/123",
"quantity": 1.0,
"retailPrice": 1230.00, // Total invoice value
"taxId": 2,
"paymentType": 1,
"stockFlow": 0,
"stockBehavior": 0,
"secondTaxId": 0
}
]
}
Receipt for Multiple Invoicesβ
{
"serieId": 4,
"documentTypeId": 6,
"entityKeyId": "CLI001",
"obs": "Payment for multiple invoices",
"docReference": "INV A/123, INV A/124, INV A/125",
"documentBodies": [
{
"itemKeyId": "PYMT001",
"itemDescription": "Settlement multiple invoices",
"quantity": 1.0,
"retailPrice": 5000.00, // Total of 3 invoices
"taxId": 2,
"paymentType": 3, // Bank Transfer
"stockFlow": 0,
"stockBehavior": 0,
"secondTaxId": 0
}
]
}
Treasury Integrationβ
Complete Flowβ
graph LR
A[Invoice Created] --> B[Customer Pays]
B --> C[Create Receipt]
C --> D[Register in Treasury]
D --> E[Invoice Settled]
- Invoice issued - Receivable created
- Customer makes payment
- Create receipt - Prove receipt
- Register in treasury - Update cash/bank
- Mark invoice as paid - (accounting system)
Best Practicesβ
β Recommendedβ
- Always reference invoice in
docReference - Validate receipt amount vs invoice amount
- Record correct payment method
- Close receipt immediately after creation
- Include bank details (if transfer)
- Issue receipt on the same day as payment
β Avoidβ
- Creating receipt without linked invoice
- Receipt amount different from actual payment
- Leaving receipts open
- Issuing receipt before confirming payment
- Forgetting to report payment method
Common Use Casesβ
Cash Paymentβ
Customer pays invoice at time of purchase.
Credit Invoice Paymentβ
Customer pays invoice 30/60 days after issuance.
Partial Paymentβ
Customer pays part of invoice (create multiple receipts).
Advance Paymentβ
Customer pays before invoice (receipt without docReference).
Differences vs Invoicesβ
| Aspect | Invoice | Receipt |
|---|---|---|
| Purpose | Sale | Payment |
| Stock | Affects | Does not affect |
| Value | Sale | Payment |
| Timing | At sale | At payment |
| VAT | Includes | Exempt |
Receipt Cancellationβ
Attention
Canceling a receipt is complex and may require accounting reversal.
Scenario: Receipt Issued by Mistakeβ
- Create Credit Note (if invoice adjustment needed)
- Record reversal in treasury
- Create new correct receipt
Next Stepsβ
- Invoices Guide - Create invoices to receive
- Credit Notes Guide - Returns
- Usage Guide - General API information
Last Updated: December 2, 2025