After a customer pays an invoice, the funds do not automatically move into your merchant balance — you need to collect them. Collection is the process of sweeping paid invoice funds from their on-chain addresses into your IteraPay balance. This guide walks you through each step of the collection flow, including how to preview fees before committing.Documentation Index
Fetch the complete documentation index at: https://docs.iterapay.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- At least one invoice with a
paidstatus - Your
merchantID - A valid API key or JWT bearer token
Collection flow
List invoices eligible for collection
Fetch the invoices that are ready to be collected. You can filter this list to narrow down which invoices you want to collect.Expected response:Note the invoice IDs you want to collect. You’ll pass them as query parameters in the next steps.
Preview fees before collecting
Before initializing collection, check the gross amount, net amount, and applicable fees. Pass one or more invoice IDs as a comma-separated list.Expected response:
The
net amount is what will be credited to your merchant balance after fees are deducted. Review this carefully before proceeding.Initialize collection
Once you’re satisfied with the fee preview, initialize the collection. Use the same Expected response:Save the collection
invoiceIDs query parameter.id and transactionIDs. You’ll use them to monitor progress.Monitor collection status
Poll the collection state endpoint to track the progress of your collection. This is especially important for large collections that may involve multiple on-chain transactions.Expected response:Continue polling until
status returns completed. Once complete, the net amount will be available in your merchant balance.Understanding collection fees
Fees are calculated as a percentage of the gross amount collected. The exact rate depends on your account plan and the payment methods involved.| Field | Description |
|---|---|
gross | Total amount paid across all selected invoices |
fee | IteraPay collection fee deducted from the gross |
net | Amount credited to your balance after fees |
/collect/info endpoint as often as you need — it’s a read-only preview that doesn’t trigger any transactions.