Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt

Use this file to discover all available pages before exploring further.

Add a bank account

Before requesting a withdrawal, register the destination bank account. Prudra supports UK sort code/account number, US routing/account number, and international IBAN/SWIFT accounts.
Bank account management via the dashboard is coming soon. Use the SDK or cURL.

Parameters

ParameterTypeRequiredDescription
accountNamestringYesHuman-readable name for this account
currencystringYesFiat currency code: GBP, USD, EUR
sortCodestringUK onlyUK 6-digit sort code (format: 20-00-00)
accountNumberstringUK/US8-digit UK or US account number
routingNumberstringUS only9-digit US ABA routing number
ibanstringEU/internationalIBAN (up to 34 chars)
swiftBicstringEU/internationalBIC/SWIFT code (8 or 11 chars)

Security

Account numbers are masked in all API responses after registration. Prudra stores bank account details encrypted at rest and never logs plaintext account numbers.

Removing a bank account

curl -X DELETE https://api.prudra.dev/withdrawals/bank-accounts/bank_clx1abc123 \
  -H "Authorization: Bearer prv_test_sk_..."
Removing a bank account does not cancel in-flight withdrawals. Pending withdrawals to this account continue to process.

Error handling

ErrorStatusCauseResolution
invalid-sort-code422Sort code format invalidUse DD-DD-DD format
invalid-iban422IBAN format or checksum invalidVerify the IBAN with your bank
unsupported-currency422Currency not supportedUse GBP, USD, or EUR