Getting the user's advance balances
The method allows you to get user's advanced balances
Request:
Parameter
Required
Type
Description
userId
Yes
String
User ID
Response:
Parameter
Type
Description
advancedBalanceId
String
Advanced balance ID
currency
String
Currency
balance
String
Balance
availableCurrenciesForDeposit
Array of strings
Array of currencies available to deposit to the advance balance
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
The body of the request for receiving advance balances
userIdstringRequiredExample:
User ID
5b41fb2b-9f7a-48cd-ae17-f48ceda2bd83
organizationIdstringOptionalExample:
ID of the created organization
2f90da31-7c81-4ab2-a7fc-3089bb4be451
Responses
200Success
application/json
post
POST /partner/api/get-organization-advanced-balances HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"userId": "5b41fb2b-9f7a-48cd-ae17-f48ceda2bd83",
"organizationId": "2f90da31-7c81-4ab2-a7fc-3089bb4be451"
}
200Success
{
"success": true,
"response": [
{
"advancedBalanceId": "5c40e303-0354-41e3-b3ce-61ad01b7ba6e",
"currency": "USD",
"blocked": true,
"blockReason": null,
"balance": "12",
"availableCurrenciesForDeposit": [
"USDT"
]
}
]
}
Last updated