Payouts

Methods for creating, listing, and managing payouts in B2BINPAY DeFi API

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
deploymentIdstring · uuidRequired
currencyIdstring · min: 1Required
amountstring · min: 1RequiredPattern: ^\d+(\.\d+)?$
toAddressone ofRequired
stringOptional
or
string · min: 1Optional
trackingIdstring · min: 1 · max: 128OptionalPattern: ^[A-Za-z0-9\-]+$
callbackUrlstring · uriOptional
nonceintegerOptional
Responses
post
/api/v1/deployments/{deploymentId}/payouts

Update

patch

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
payoutIdstringRequired

Entity ID

Example: 1234567890123456789
Body
trackingIdstring · min: 1 · max: 128 · nullableRequiredPattern: ^[A-Za-z0-9\-]+$
callbackUrlstring · uri · nullableRequired
Responses
chevron-right
200

Entity retrieved successfully

application/json
idstringRequired

Entity unique identifier

Example: 1234567890123456789
currencyIdstringRequired

The unique ID of the currency, ("{chainId}-{contractAddress}")

Example: 1-0xdac17f958d2ee523a2206206994597c13d831ec7
amountstringRequired

Amount to be paid out

Example: 100.50
toAddressstringRequired

Wallet address (Ethereum 0x... or Tron TVM T...)

Example: 0x1234567890123456789012345678901234567890
isTronbooleanRequired

Whether the entity relates to Tron (TVM)

Example: false
deploymentIdstringRequired

Deployment unique identifier

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

Tracking identifier

Example: INV-2024-0001
callbackUrlstringRequired

Callback URL for notifications

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

Queue operation ID associated with this payout

Example: 187654321987654321
noncestringRequired

Nonce for transaction ordering

Example: 42
statusstring · enumRequired

Current status of the payout

Example: CREATEDPossible values:
createdBystringRequired

Wallet address (Ethereum 0x... or Tron TVM T...)

Example: 0x1234567890123456789012345678901234567890
createdAtstringRequired

Creation timestamp

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

Last update timestamp

Example: 2024-01-01T00:00:00.000Z
patch
/api/v1/deployments/{deploymentId}/payouts/{payoutId}

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 payout ID (text includes)

Example: 123e4567
createdFromstringOptional

Filter payouts created from this date (ISO string)

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

Filter payouts created to this date (ISO string)

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

Filter payouts updated from this date (ISO string)

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

Filter payouts updated to this date (ISO string)

Example: 2024-12-31T23:59:59Z
currencyIdsstring[]Optional

Filter by currency IDs

Example: ["1-0xdac17f958d2ee523a2206206994597c13d831ec7","1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]
trackingIdstringOptional

Filter by tracking ID (text includes)

Example: TRACK_123456
createdBystringOptional

Filter by creator (text includes)

Example: 0x742d35cc6635c0532925a3b8d0a7f79ec35bdc52
toAddressstringOptional

Filter by receiver address (text includes)

Example: 0x742d35cc6635c0532925a3b8d0a7f79ec35bdc52
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)

Example: 1
pageSizenumberOptional

Number of items per page (max 100)

Example: 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}/payouts

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
payoutIdstringRequired

Entity ID

Example: 1234567890123456789
Responses
chevron-right
200

Entity retrieved successfully

application/json
idstringRequired

Entity unique identifier

Example: 1234567890123456789
currencyIdstringRequired

The unique ID of the currency, ("{chainId}-{contractAddress}")

Example: 1-0xdac17f958d2ee523a2206206994597c13d831ec7
amountstringRequired

Amount to be paid out

Example: 100.50
toAddressstringRequired

Wallet address (Ethereum 0x... or Tron TVM T...)

Example: 0x1234567890123456789012345678901234567890
isTronbooleanRequired

Whether the entity relates to Tron (TVM)

Example: false
deploymentIdstringRequired

Deployment unique identifier

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

Tracking identifier

Example: INV-2024-0001
callbackUrlstringRequired

Callback URL for notifications

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

Queue operation ID associated with this payout

Example: 187654321987654321
noncestringRequired

Nonce for transaction ordering

Example: 42
statusstring · enumRequired

Current status of the payout

Example: CREATEDPossible values:
createdBystringRequired

Wallet address (Ethereum 0x... or Tron TVM T...)

Example: 0x1234567890123456789012345678901234567890
createdAtstringRequired

Creation timestamp

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

Last update timestamp

Example: 2024-01-01T00:00:00.000Z
get
/api/v1/deployments/{deploymentId}/payouts/{payoutId}

Last updated

Was this helpful?