Account

Methods for managing accounts, deployments, callback secrets, and balance summaries in B2BINPAY DeFi API

Get list

get

Get list of entities

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Responses
chevron-right
200

Entity retrieved successfully

application/json
idstringRequired

Entity unique identifier

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

Account display name

Example: Marketing Team
contractstringRequired

Multisig contract address

Example: 0x1234567890123456789012345678901234567890
membersstring[]Required

All account members aggregated from all networks (read access)

Example: ["0x1111111111111111111111111111111111111111","0x2222222222222222222222222222222222222222"]
createdAtstringRequired

Creation timestamp

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

Whether the entity relates to Tron (TVM)

Example: false
get
/api/v1/accounts

Get by ID

get

Get entity by ID

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
accountIdstring · uuidRequired

Account unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Responses
chevron-right
200

Entity retrieved successfully

application/json
get
/api/v1/accounts/{accountId}

Update

put

Update entity

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
accountIdstring · uuidRequired

Account unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Body
namestring · min: 1 · max: 255Required
Responses
chevron-right
200

Entity updated successfully

application/json
idstringRequired

Entity unique identifier

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

Account display name

Example: Marketing Team
contractstringRequired

Multisig contract address

Example: 0x1234567890123456789012345678901234567890
membersstring[]Required

All account members aggregated from all networks (read access)

Example: ["0x1111111111111111111111111111111111111111","0x2222222222222222222222222222222222222222"]
createdAtstringRequired

Creation timestamp

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

Whether the entity relates to Tron (TVM)

Example: false
put
/api/v1/accounts/{accountId}

Get deployment params

get

Get parameters required to deploy the team including bytecode, initializer bytecode, and nonce

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
accountIdstring · uuidRequired

Account unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Responses
chevron-right
200

Deployment parameters retrieved successfully

application/json
implementationAddressstringRequired

Implementation address to copy

Example: 0x1234567890...
initializerBytecodestringRequired

Initializer bytecode with encoded constructor parameters

Example: 0x1234567890...
noncestringRequired

Nonce for uniq deployment

Example: 0x1234567890...
deployerAddressstringRequired

Deployer address for contract deployment

Example: 0x1234567890...
get
/api/v1/accounts/{accountId}/deploy-params

Generate callback secret

post

Generates a new callback secret for the account. The secret is returned only once and instantly invalidates the old secret.

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
accountIdstring · uuidRequired

Account unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Responses
post
/api/v1/accounts/{accountId}/callback-secret

Get balance summary

get

Returns total balance, uncollected balance and count of uncollected invoices for a team on a specific network

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
accountIdstring · uuidRequired

Account unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Query parameters
baseCurrencystring · enumRequired

Base currency for conversion

Example: usdPossible values:
chainIdstring · int64Required

Blockchain network chain ID

Example: 1
Responses
chevron-right
200

Balance summary retrieved successfully

application/json
totalBalancenumberRequired

Total balance in base currency

Example: 150000
uncollectedBalancenumberRequired

Uncollected balance in base currency

Example: 32000
uncollectedInvoicesnumberRequired

Count of uncollected invoices

Example: 5
allRatesReceivedbooleanRequired

Whether all currency rates were available

Example: true
get
/api/v1/accounts/{accountId}/balance/summary

Get asset balances

get

Returns balances for each asset with conversion to base currency for a specific network with pagination

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
accountIdstring · uuidRequired

Account unique identifier

Example: 123e4567-e89b-12d3-a456-426614174000
Query parameters
baseCurrencystring · enumRequired

Base currency for conversion

Example: usdPossible values:
chainIdstring · int64Required

Blockchain network chain ID

Example: 1
sortBystring · enumOptional

Field to sort by

Default: balanceExample: idPossible values:
sortOrderstring · enumOptional

Sort order (ascending or descending)

Default: descExample: descPossible values:
currencyIdsone ofOptional

Filter by currency IDs

Example: ["1-0xdac17f958d2ee523a2206206994597c13d831ec7","1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]
string · min: 1Optional
or
string[]Optional
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

Asset balances 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/accounts/{accountId}/balance/assets

Get nonce information

get

Returns current nonce and last executed nonce for the deployment

Authorizations
x-api-keystringRequired

Provide API key in X-API-Key header

Path parameters
deploymentIdstring · uuidRequired

UUID

Example: 123e4567-e89b-12d3-a456-426614174000
Responses
chevron-right
200

Nonce information retrieved successfully

application/json
currentNoncenumberRequired

Current nonce for this deployment - next transaction will use this nonce

Example: 5
lastExecutedNoncenumberRequired

Last executed nonce for this deployment (-1 if no transactions executed)

Example: 4
get
/api/v1/accounts/deployments/{deploymentId}/nonce-info

Last updated

Was this helpful?