Invoicing
Create Invoice
Create a crypto payment invoice priced in fiat or in a specific crypto asset, with optional payer details, notification URL, and payer redirect URLs.
POST
MCP scope:
dac.write
Finrock’s invoicing feature lets you generate on-chain payment requests that your customers can settle in cryptocurrency. When you create an invoice you specify either a fiat price or a crypto asset and amount, a descriptive memo, optional payer details, and URLs for payment notifications and payer redirects. Finrock returns the invoice with a deposit address, a hosted payment page URL, an expiry time, and the payment status.
Body Parameters
Method:POST URL: https://api.finrock.io/dac/v1/invoice
Every invoice needs
crypto.asset_id, the asset the payer pays in. Set the price in one of two ways: with fiat, which Finrock converts into the crypto amount, or with crypto.amount. A request with fiat but no crypto.asset_id returns HTTP 400 with {"code": 1002, "error": "ASSET_REQUIRED"}.Fiat price of the invoice. Finrock uses it only to calculate the crypto amount due. Use it instead of
crypto.amount when you price in fiat. You still need crypto.asset_id.Crypto asset and amount the payer settles the invoice in. Always required, because it sets the asset the payer pays with.
A descriptive note for this payment. Use it to identify the invoice in your records, and to filter with List Invoices.
Response
A successful request returns HTTP200 with the created invoice object.
Unique invoice identifier. Use it with the
id filter on List Invoices.Invoices are time-limited. Ensure your payer sends the payment before
expiry_ts. Payments received after expiry may require manual reconciliation.
