Purchase receipt
Get purchase receipt
GET /selling/api/loans/receipt/{purchaseId}
Retrieve the purchase receipt (invoice) for a completed purchase batch by its purchase batch ID. Returns after a purchase is completed.
Path parameters
Parameter | Type | Required | Description |
|---|---|---|---|
purchaseId | UUID | Yes | The purchase batch ID returned from the purchase API |
Response
200 OK - Returns Receipt object containing:
- Purchase batch details
- List of loans purchased in this batch
- Total amounts (loans + interest + fees)
- Timestamp of purchase
- Account information
Example request
GET /selling/api/loans/receipt/3fa85f64-5717-4562-b3fc-2c963f66afa6
Use cases
- Post-purchase confirmation: Verify all loans in a batch were purchased successfully
- Accounting reconciliation: Match receipt totals to bank transfers
- Record keeping: Archive purchase receipts for audit purposes
Failed loan tracking: Identify any loans that failed to purchase in the batch