List wallets
Lists all of the partner's wallets.
Lists all of the partner's wallets.
Returns the whole list as an array, without paging. Each wallet has its id, label,
balance, whether it isSelected (the wallet that pays for orders) and its currency.
PartnerApiKeyX-Partner-Key<token>Partner API Key (X-Partner-Key)
OK
- response
[index: integer]?A partner wallet.
curl -X GET 'https://api.sandbox.openroam.com/v1/wallets'[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "label": "string", "balance": 0, "isSelected": true, "currency": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "rateToUsd": 0, "rateDate": "2019-08-24T14:15:22Z", "dailyPercentageDifference": 0 } }]Create a wallet POST
Creates an empty wallet in a currency the partner has no wallet in yet. Take `currencyId` from `GET currencies`. The new wallet starts with a zero balance. Without a `label` it is named after its currency, for example `USD wallet`. The partner's first wallet is always selected; for a later one, `isSelected: true` makes it the selected wallet in place of the current one. Returns `201` without a body; list the wallets to read it. A second wallet in the same currency returns `400` with code `17000` (`WALLET_CURRENCY_ALREADY_EXISTS`); a label already used by another of the partner's wallets, ignoring case, returns `400` with code `17001` (`WALLET_LABEL_ALREADY_EXISTS`).
Get a wallet GET
Gets one wallet with its totals. Adds `lowBalanceThreshold`, `createdAt`, `updatedAt` and totals of completed transactions to the list fields. An unknown wallet, or one of another partner, returns `404` with code `10004`.