Invoices
Methods for creating, listing, and updating invoices in B2BINPAY DeFi API
Get list of entities
Provide API key in X-API-Key header
Deployment unique identifier
123e4567-e89b-12d3-a456-426614174000Filter by invoice ID (text includes)
1234567890Filter invoices created from this date (ISO string)
2024-01-01T00:00:00ZFilter invoices created to this date (ISO string)
2024-12-31T23:59:59ZFilter invoices updated from this date (ISO string)
2024-01-01T00:00:00ZFilter invoices updated to this date (ISO string)
2024-12-31T23:59:59ZFilter by currency IDs
["1-0xdac17f958d2ee523a2206206994597c13d831ec7","1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]Filter by invoice statuses (multiselect)
["CREATED","PAID"]Filter by tracking ID (text includes)
TRACK_123456Field to sort by
createdAtExample: idPossible values: Sort order (ascending or descending)
descExample: descPossible values: Page number (starts from 1)
1Example: 1Number of items per page (max 100)
10Example: 10Entity retrieved successfully
Total number of items across all pages
Current page number (starts from 1)
Number of items per page
Invalid or missing token
[ERR_404] Team not found or [ERR_403] You are not a member of this team
Create new entity
Provide API key in X-API-Key header
Deployment unique identifier
123e4567-e89b-12d3-a456-426614174000^\d+(\.\d+)?$^[A-Za-z0-9\-]+$[]Entity created successfully
Invalid input
Invalid or missing token
[ERR_404] Team not found or [ERR_403] You are not a member of this team
[ERR_409] Invoice with this tracking ID already exists or [ERR_409] Invoice with this address already exists
Get entity by ID
Provide API key in X-API-Key header
Deployment unique identifier
123e4567-e89b-12d3-a456-426614174000Entity ID
1234567890123456789Entity retrieved successfully
Invalid or missing token
[ERR_404] Invoice not found or [ERR_403] You are not a member of this team
Update entity
Provide API key in X-API-Key header
Deployment unique identifier
123e4567-e89b-12d3-a456-426614174000Entity ID
1234567890123456789^\d+(\.\d+)?$^[A-Za-z0-9\-]+$Entity retrieved successfully
Entity unique identifier
1234567890123456789Invoice public identifier (Snowflake ID)
1234567890123456789Invoice payment address
0x1234567890123456789012345678901234567890Requested payment amount
1500.75Paid amount in crypto; null for multi-currency invoices (see paidAmountBaseCurrency)
0.00Paid amount converted to user base currency (2 decimals) for multi-currency invoices; null otherwise
Invoice status
CREATEDPossible values: Tracking identifier
INV-2024-0001Callback URL for notifications
https://example.com/webhook/invoiceCustom payment page button URL
https://example.com/invoice/payCustom payment page button text
Pay InvoicePayment page URL for the invoice
https://frontend.example.com/pay/1234567890123456789Creation timestamp
2024-01-01T00:00:00.000ZLast update timestamp
2024-01-01T00:00:00.000ZWhether the entity relates to Tron (TVM)
falseInvalid input
Invalid or missing token
[ERR_404] Invoice not found or [ERR_403] You are not a member of this team
[ERR_409] Invoice with this tracking ID already exists
Get public invoice information without authentication
Provide API key in X-API-Key header
Invoice public identifier (Snowflake ID)
1234567890123456789Public invoice details
Invoice public identifier (Snowflake ID)
1234567890123456789Invoice payment address
0x1234567890123456789012345678901234567890Blockchain network chain ID
1Requested payment amount
1500.75Custom payment page button URL
https://example.com/invoice/payCustom payment page button text
Pay InvoicePayment page URL for the invoice
https://frontend.example.com/pay/1234567890123456789Invoice status
CREATEDPossible values: Creation timestamp
2024-01-01T00:00:00.000ZWhether the entity relates to Tron (TVM)
false[ERR_404] Invoice not found
Get list of transactions for a public invoice without authentication
Provide API key in X-API-Key header
Invoice public identifier (Snowflake ID)
1234567890123456789Filter by transaction hash
0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdefFilter by currency IDs
["1-0xdac17f958d2ee523a2206206994597c13d831ec7","1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]Filter by transaction statuses
["EXECUTED"]Filter by operation types
["invoice","claim"]Filter transactions created after this date (ISO 8601)
2024-01-01T00:00:00.000ZFilter transactions created before this date (ISO 8601)
2024-12-31T23:59:59.999ZPage number (starts from 1)
1Example: 1Number of items per page (max 100)
10Example: 10Paginated list
Total number of items
100Current page number
1Number of items per page
10[ERR_404] Invoice not found
Last updated
Was this helpful?

