Wallets

List all wallets#

Method: GET

Endpoint: {{env}}/api/wallet

{
"statusCode": 200,
"message": "GET Request successful.",
"isError": false,
"result": [
{
"Id": "30126b59-...-008376504211",
"Type": "AccountsPayable",
"Balance": 50000.88
},
{
"Id": "30126b59-...-008376504210",
"Type": "Unified",
"Balance": 1000.5
}
]
}

All the information from the Zūm Wallets can be pulled with one API call. The information includes the wallet type, the wallet ID and the balance. A useful example for this endpoint is when using a Zūm wallet for AP or AR, the Wallet ID is mandatory.

Response

ParameterTypeDescription
IdguidWallet id
TypestringWallet type
BalancedecimalCurrent balance in the wallet

Filter wallet transactions#

Use this endpoint if you want to list the transactions from a specific wallet. These are the debits and credits that happened in the respective wallet.

Method: POST

Endpoint: {{env}}/api/wallet/transactions/filter

{
"WalletId": "30126b59-...-008376504210",
"Pagination": {
"PageNumber": 1
}
}
{
"statusCode": 200,
"message": "POST Request successful.",
"isError": false,
"result": [
{
"CurrentPage": 1,
"PageSize": 8,
"TotalCount": 1,
"Items": [
{
"Id": "faa32009-...-a52cc8996b61",
"Description": "Funds received by Funding Source (RBC-01234-1234567)",
"Debit": 0,
"Credit": 0.01,
"Balance": 0.01,
"Type": "Credit",
"Authorized": true,
"CreatedAt": "2020-04-28T15:15:09.208515"
}
]
}
]
}
info

This endpoint is also available in {{env}}/api/wallet/transactions, but it may be removed eventually.

Input parameters

ParameterTypeMandatoryDescription
WalletIdguidyesWallet id
TransactionMethodstringnoTransaction method
ZumRailsTypestringnoTransaction Type
GenericSearchstringnoFilter wallets by description
CreatedAtFromdatetimenoStart date (This field is only used when the operator is between)
CreatedAtTodatetimenoEnd date (This field is only used when the operator is between)
CreatedAtdatetimenoCreate date
CreatedAtOperatorstringnoOperator to filter with CreatedAt properties
Paginationno
PageNumbernumbernoThe respective page, starting at 1

Response

ParameterTypeDescription
CurrentPagenumberThe current page
PageSizenumberThe amount of rows returned in the current page
TotalCountnumberThe total rows the filter returns
ItemsList of wallet transactions
IdguidTransaction id
CreatedAtdatetimeWhen the transaction was created
DescriptionstringTransaction description
DebitdecimalDebit amount
CreditdecimalCredit amount
BalancedecimalBalance at that moment
TypestringCredit or Debit
AuthorizedboolIf the transaction is completed and authorized