Invoices

Methods for creating, listing, and updating invoices in B2BINPAY DeFi API

Get list

get

Get list of entities

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
deploymentIdstring · uuidRequired

Deployment unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Query parameters
idstringOptional

Filter by invoice ID (text includes)

Example: 1234567890
createdFromstringOptional

Filter invoices created from this date (ISO string)

Example: 2024-01-01T00:00:00Z
createdTostringOptional

Filter invoices created to this date (ISO string)

Example: 2024-12-31T23:59:59Z
updatedFromstringOptional

Filter invoices updated from this date (ISO string)

Example: 2024-01-01T00:00:00Z
updatedTostringOptional

Filter invoices updated to this date (ISO string)

Example: 2024-12-31T23:59:59Z
currencyIdsone ofOptional

Filter by currency IDs

Example: ["1-0xdac17f958d2ee523a2206206994597c13d831ec7","1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]
string · min: 1Optional
or
string[]Optional
statusesone ofOptional

Filter by invoice statuses (multiselect)

Example: ["CREATED","PAID"]
string · enumOptionalPossible values:
or
trackingIdstringOptional

Filter by tracking ID (text includes)

Example: TRACK_123456
sortBystring · enumOptional

Field to sort by

Default: createdAtExample: idPossible values:
sortOrderstring · enumOptional

Sort order (ascending or descending)

Default: descExample: descPossible values:
pagenumberOptional

Page number (starts from 1)

Default: 1Example: 1
pageSizenumber · max: 100Optional

Number of items per page (max 100)

Default: 10Example: 10
Responses
chevron-right
200

Entity retrieved successfully

application/json
totalnumberRequired

Total number of items across all pages

pagenumberRequired

Current page number (starts from 1)

pageSizenumberRequired

Number of items per page

get
/api/v1/deployments/{deploymentId}/invoices

Create

post

Create new entity

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
deploymentIdstring · uuidRequired

Deployment unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Body
requestedAmountstring · min: 1 · nullableRequiredPattern: ^\d+(\.\d+)?$
trackingIdstring · min: 1 · max: 128 · nullableRequiredPattern: ^[A-Za-z0-9\-]+$
callbackUrlstring · uri · nullableRequired
paymentPageButtonUrlstring · uri · nullableRequired
paymentPageButtonTextstring · min: 1 · max: 26 · nullableRequired
currencyIdsstring[]OptionalDefault: []
Responses
post
/api/v1/deployments/{deploymentId}/invoices

Get by ID

get

Get entity by ID

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
deploymentIdstring · uuidRequired

Deployment unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
invoiceIdstringRequired

Entity ID

Example: 1234567890123456789
Responses
chevron-right
200

Entity retrieved successfully

application/json
get
/api/v1/deployments/{deploymentId}/invoices/{invoiceId}

Update

put

Update entity

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
deploymentIdstring · uuidRequired

Deployment unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
invoiceIdstringRequired

Entity ID

Example: 1234567890123456789
Body
requestedAmountstring · min: 1 · nullableRequiredPattern: ^\d+(\.\d+)?$
trackingIdstring · min: 1 · max: 128 · nullableRequiredPattern: ^[A-Za-z0-9\-]+$
callbackUrlstring · uri · nullableRequired
paymentPageButtonUrlstring · uri · nullableRequired
paymentPageButtonTextstring · min: 1 · max: 26 · nullableRequired
currencyIdsstring[]Optional
statusstring · enumOptionalPossible values:
Responses
chevron-right
200

Entity retrieved successfully

application/json
idstringRequired

Entity unique identifier

Example: 1234567890123456789
publicIdstringRequired

Invoice public identifier (Snowflake ID)

Example: 1234567890123456789
invoiceAddressstringRequired

Invoice payment address

Example: 0x1234567890123456789012345678901234567890
requestedAmountstring · nullableRequired

Requested payment amount

Example: 1500.75
paidAmountstring · nullableRequired

Paid amount in crypto; null for multi-currency invoices (see paidAmountBaseCurrency)

Example: 0.00
paidAmountBaseCurrencystring · nullableRequired

Paid amount converted to user base currency (2 decimals) for multi-currency invoices; null otherwise

statusstring · enumRequired

Invoice status

Example: CREATEDPossible values:
trackingIdstring · nullableRequired

Tracking identifier

Example: INV-2024-0001
callbackUrlstring · nullableRequired

Callback URL for notifications

Example: https://example.com/webhook/invoice
paymentPageButtonUrlstring · nullableRequired

Custom payment page button URL

Example: https://example.com/invoice/pay
paymentPageButtonTextstring · nullableRequired

Custom payment page button text

Example: Pay Invoice
paymentPageUrlstringRequired

Payment page URL for the invoice

Example: https://frontend.example.com/pay/1234567890123456789
createdAtstringRequired

Creation timestamp

Example: 2024-01-01T00:00:00.000Z
updatedAtstringRequired

Last update timestamp

Example: 2024-01-01T00:00:00.000Z
isTronbooleanRequired

Whether the entity relates to Tron (TVM)

Example: false
put
/api/v1/deployments/{deploymentId}/invoices/{invoiceId}

Get public invoice details

get

Get public invoice information without authentication

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
publicIdstringRequired

Invoice public identifier (Snowflake ID)

Example: 1234567890123456789
Responses
chevron-right
200

Public invoice details

application/json
publicIdstringRequired

Invoice public identifier (Snowflake ID)

Example: 1234567890123456789
invoiceAddressstringRequired

Invoice payment address

Example: 0x1234567890123456789012345678901234567890
chainIdstringRequired

Blockchain network chain ID

Example: 1
requestedAmountstring · nullableRequired

Requested payment amount

Example: 1500.75
paymentPageButtonUrlstring · nullableRequired

Custom payment page button URL

Example: https://example.com/invoice/pay
paymentPageButtonTextstring · nullableRequired

Custom payment page button text

Example: Pay Invoice
paymentPageUrlstringRequired

Payment page URL for the invoice

Example: https://frontend.example.com/pay/1234567890123456789
statusstring · enumRequired

Invoice status

Example: CREATEDPossible values:
createdAtstringRequired

Creation timestamp

Example: 2024-01-01T00:00:00.000Z
isTronbooleanRequired

Whether the entity relates to Tron (TVM)

Example: false
get
/api/v1/public/invoices/{publicId}

Get public invoice transactions

get

Get list of transactions for a public invoice without authentication

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
publicIdstringRequired

Invoice public identifier (Snowflake ID)

Example: 1234567890123456789
Query parameters
txHashstringOptional

Filter by transaction hash

Example: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
currencyIdsone ofOptional

Filter by currency IDs

Example: ["1-0xdac17f958d2ee523a2206206994597c13d831ec7","1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]
string · min: 1Optional
or
string[]Optional
statusesone ofOptional

Filter by transaction statuses

Example: ["EXECUTED"]
string · enumOptionalPossible values:
or
operationTypesone ofOptional

Filter by operation types

Example: ["invoice","claim"]
string · enumOptionalPossible values:
or
createdFromstringOptional

Filter transactions created after this date (ISO 8601)

Example: 2024-01-01T00:00:00.000Z
createdTostringOptional

Filter transactions created before this date (ISO 8601)

Example: 2024-12-31T23:59:59.999Z
pagenumberOptional

Page number (starts from 1)

Default: 1Example: 1
pageSizenumber · max: 100Optional

Number of items per page (max 100)

Default: 10Example: 10
idstringOptional
updatedFromstringOptional
updatedTostringOptional
operationIdstringOptional
isClaimedone ofOptional
booleanOptional
or
anyOptional
Responses
chevron-right
200

Paginated list

application/json
totalnumberRequired

Total number of items

Example: 100
pagenumberRequired

Current page number

Example: 1
pageSizenumberRequired

Number of items per page

Example: 10
get
/api/v1/public/invoices/{publicId}/transactions

Last updated

Was this helpful?