Wallet Section Queries & Mutations

AccountWalletByType

This query allows you to retrieve a specific wallet associated with an account based on the provided account ID and wallet type name.

Input Variable

  • accountId: The unique ID of the account for which you want to retrieve the wallet.

  • walletTypeName: The name of the wallet type you are looking for.

query AccountWalletByType($accountId: ID!, $walletTypeName: String!) { accountWalletByType(accountId: $accountId, walletTypeName: $walletTypeName) { id walletType { id name prefix } } }
{ "accountId": "jkcwuygfet6437dbwcb", "walletTypeName": "Wallet Type" }
{ "data": { "accountWalletByType": { "id": "ajvber473bfjwng6db", "walletType": { "id": "wjvnef56jdbhwe37", "name": "Wallet Type", "prefix": "WT" } } } }

TransferToStandardWallet

Use this mutation to transfer funds to a standard wallet.

Input Variables

  • amount (Float!): The amount of funds to transfer to the standard wallet.

Sample Response:

  • accountDetails: Contains the recipient's account information, including account name, account number, and bank name.

  • amount: Represents the transferred amount.

  • paymentMethod: Describes the payment method used for the transfer.

  • type: Indicates the transaction type (e.g., "Transfer").

  • status: Reflects the current status of the transaction (e.g., "Completed").


Update Wallet Threshold

This mutation allows you to update the amount threshold for a specific wallet.

This sample response indicates that the wallet with the ID "ck1xcu4by6let0842lecvvrlv" has been updated with the new amount threshold. The walletId field in the response matches the provided wallet ID, and the id field within the wallet object confirms the updated wallet's ID.


To Fund Wallet By Transaction

The fundWalletByTransaction mutation allows you to fund a wallet using a transaction reference.


Update Standard Wallet Balance

This mutation allows you to update the balance of a standard wallet with the provided transaction reference.

In the sample response above, the wallet with ID "123456" had its balance updated to #1500.00 after the transaction associated with the provided transaction reference.