Skip to main content

Preview Withdrawal

This endpoint allows you to preview a banking withdrawal without executing it. It returns estimated fees and other withdrawal details.

The payment instrument type is determined automatically from the counterparty's configured instrumentType and wireType.

Authorization:

bearer

HTTP: bearer

HTTP Authorization Scheme: bearer

Headers:
Authorization: APIKey {YOUR_API_KEY}

Endpoint

POST

/api/v2/banking/withdrawal-preview

Request Body Sample​

{
"accountId": "00000000-0000-0000-0000-000000000000",
"counterpartyId": "00000000-0000-0000-0000-000000000000",
"amount": "100.00",
"amountCurrency": "USD"
}

Request Body Schema​

FieldTypeDescription
accountIdstring (uuid)Required. The account ID to withdraw from.
counterpartyIdstring (uuid)Required. The counterparty ID to withdraw to.
amountstring (decimal)Required. The amount to withdraw. Minimum: 20.00.
amountCurrencystringRequired. The currency code. Example: USD, MXN, BRL.

Response Sample​

{
"id": "00000000-0000-0000-0000-000000000000",
"amount": "100.00",
"amountCurrency": "USD",
"estimateFee": "1.00",
"feeCurrency": "USD",
"estimateTotal": "99.00",
"totalCurrency": "USD",
"createdAt": "2023-01-01T00:00:00Z",
"expiresAt": "2023-01-01T00:15:00Z",
"instrumentType": "ach"
}

Response Schema​

FieldTypeDescription
idstring (uuid)The preview ID. Use this to execute the withdrawal.
amountstring (decimal)The withdrawal amount.
amountCurrencystringThe currency of the withdrawal.
estimateFeestring (decimal)The estimated fee for the withdrawal.
feeCurrencystringThe currency of the fee.
estimateTotalstring (decimal)The total amount after fees.
totalCurrencystringThe currency of the total.
createdAtstring (datetime)When the preview was created.
expiresAtstring (datetime)When the preview expires.
instrumentTypestringThe instrument type used for the withdrawal (derived from the counterparty).

Support and Resources​

If you need assistance or have any questions, our support team is here to help. You can contact our support team at support@blockwyre.com.

Stay Updated​

Stay up-to-date with the latest news, updates, and features from BlockWyre by following us on social media:

We are excited to have you on board and look forward to seeing how you leverage BlockWyre's powerful tools to enhance your financial operations. Happy integrating!