Fiat Payments
Create fiat wallet
Changed onCreates a fiat wallet for a specific Customer, generating a unique virtual account tied to the wallet.
For more information, how to apply it in the Embedded Wallets flow, refer to the Create a customer wallet guide.
post/ledger/v1/wallets
Request
- Base URLhttps://api.sandbox.bvnk.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Idempotency-Keystring uuid required
Example:1e74002e-74a1-48fd-b707-147c3187a3e1
Unique request identifier (any string, preferably in UUID format).
Request body
Example request
{
"currencyCode": "USD",
"name": "My Customer Wallet",
"customerReference": "b4e5c3d1-9a42-4e7b-8f34-7c6b2a89f3df",
"instruction": {
"walletProfile": "2a3fe604-2b14-4009-90b3-1e48f1a38b11"
}
}Response
Wallet created successfully.
Example response
{
"id": "a:24092328494070:G5i4XZ9:1",
"accountReference": "3399c975-e1c1-4acf-9a90-6cfbdcdeaaea",
"customerReference": "b94dcf2a-d377-469e-8846-e21f65b18a77",
"name": "Wallet XYZ987",
"status": "ACTIVE",
"balance": {
"value": 10,
"currencyCode": "GBP"
},
"ledgers": [
{
"accountHolderName": "System Pay Services (Malta) Limited",
"accountNumber": "DE10601202004579784373",
"code": "BEUCESMMXXX",
"accountNumberFormat": "SWIFT",
"paymentReference": "REF DZ0XJL4",
"bank": {
"identificationCode": "BEUCESMMXXX",
"name": "Banco Europa Continental, S.A.",
"address": {
"addressLine1": "123 Main St",
"addressLine2": "Apt 4B",
"region": "California",
"city": "Los Angeles",
"country": "US",
"postCode": "90001"
}
}
}
],
"capabilities": "SAFEGUARDED"
}Changes
- breaking
the
request property's minLength was increased from0to2 - warning
the
request property's maxLength was set to50
- breaking
- info
endpoint deprecated
- info