GET
/
api
/
v1
/
withdrawals
/
{withdrawal_id}
/
Retrieve Withdrawal
curl --request GET \
  --url https://sandbox-b2b.ripio.com/api/v1/withdrawals/{withdrawal_id}/ \
  --header 'Authorization: Bearer <token>'
{
  "id": "ac243840-ac04-4b3a-9efb-176554d4a029",
  "created_at": "2022-03-30T19:38:39.765190Z",
  "confirmation_date": "2022-03-30T19:38:39.765190Z",
  "txn_hash": "0x0923990f2j7cb207d3766e75730e8426d2fb3b6e896914f80a61943b1a8f29d2",
  "end_user_id": "customer_10",
  "currency": "BTC",
  "amount": 3,
  "address": "0x36f672385c060290f4785F1ECFF58aE4aBB2FD15",
  "charged_fee": 0,
  "network_name": "BITCOIN",
  "status": "COMPLETED",
  "transaction_id": "8df65b81-8227-4d03-950d-0d8d5fef9402",
  "provisory_transaction_hash": "0x0923990f2j7cb207d3766e75730e8426d2fb3b6e896914f80a61943b1a8f29d2",
  "risk_score": null,
  "is_blocked": false,
  "reason": "",
  "external_ref": "8df65b81-8227-4d03-950d-0d8d5fef9402",
  "debited_amount": "3.001"
}

Authorizations

Authorization
string
header
required

B2B’s White Label API uses OAuth2. Currently there is only one supported authentication flow:

  • clientCredentials allows you to access your own B2B account (First-Party Integration) and performs transactions against the public API. This oauth2 flow is well suited for this API, as it allows machine-to-machine communication.

Every call to the API has to be authenticated with an OAuth2 Token. In order to request this token, you will need to have sandbox or production API Keys (client id and client secret) that will be needed to generate a credential in order to negotiate an ephemeral access token.

Every request must be accompianed by an Authorization header with a value that follows the following schema: Bearer ACCESS_TOKEN

Path Parameters

withdrawal_id
string
required

Response

200 - application/json

Successful Response

id
string<uuid>

UUID used as withdrawal identifier.

created_at
string<date-time>

Indicates the withdrawal request creation date.

confirmation_date
string<date-time> | null

Identifies the withdrawal confirmation date. This field will be null if the withdrawal is still pending.

txn_hash
string<hash> | null

Indicates the hash of the blockchain transaction, once completed. This field will be null if the withdrawal is still pending.

end_user_id
string

Identifies the user that owns this operation.

currency
string

Indicates the asset name involved in the withdrawal.

amount
number

Indicates the amount withdrawed.

address
string

Identifies the destination address.

Maximum length: 128
network_name
enum<string>
Available options:
BITCOIN,
ETHEREUM
status
string

Specifies the withdrawal status.

transaction_id
string

The ID of the associated transaction object

provisory_transaction_hash
string | null

Indicates the provisory hash of the blockchain transaction, could be different to txn_hash

risk_score
string | null

indicates the risk score of the withdrawal

is_blocked
boolean

indicates if the withdrawal was blocked

reason
string

indicates the block reason if the withdrawal was blocked

external_ref
string

Withdrawal external_ref defined in creation request

debited_amount
string

The withdrawal amount plus the withdrawal fee amount