POST wallets/get_balance
This method returns information related with the balance of the wallet which is available either on the current date or as of a date in the future. The balance of a single wallet can be retrieved by each call.
Resource URL
Parameters
Name | Type | Description | ||||||||||||||||||||||||||||||
token | String | The token retrieved from the login method | ||||||||||||||||||||||||||||||
wallet_identifier (semi-optional) | Wallet Identifier | The identifier of the wallet that should be returned in the results. The allowed wallet identifier fields are the following:
| ||||||||||||||||||||||||||||||
rewards_participant_identifier (semi-optional) | Rewards Participant Identifier | The identifier of the rewards participant owning the wallet that should be returned in the results. The allowed rewards participant identifier fields are the following:
Deprecated from CRM.COM R17.0.0 | ||||||||||||||||||||||||||||||
accounts_receivable_identifier (semi-optional) | Accounts Receivable Identifier | The identifier of the accounts receivable owning the wallet that should be returned in the results. The allowed accounts receivable identifier fields are the following:
| ||||||||||||||||||||||||||||||
as_of_date (optional) | Date | The date as of which the wallet balance will be calculated (inclusive). If specified then this date should be in the future. If not specified then the current date is used | ||||||||||||||||||||||||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved wallet |
balance | Number | The total balance of the retrieved wallet in wallet currency |
alternative_balance | Number | The total balance of the retrieved wallet in its alternative currency Available in CRM.COM R14.2.0 |
conditional_balance | Number | The total conditional balance of the retrieved wallet in wallet currency Available in CRM.COM R15.0.0 |
conditional_alternative_balance | Number | The total conditional balance of the retrieved wallet in wallet alternative currency Available in CRM.COM R15.0.0 |
unconditional_balance | Number | The total unconditional balance of the retrieved wallet in wallet currency Available in CRM.COM R15.0.0 |
unconditional_alternative_balance | Number | The total unconditional balance of the retrieved wallet in wallet alternative currency Available in CRM.COM R15.0.0 |
currency | Currency Object | The wallet's currency |
alternative_currency | Currency Object | The wallet's alternative currency Available in CRM.COM R14.2.0 |
remaining_wallet_transaction_limits | Remaining Wallet Transaction Limits Object | The remaining allowed amount for the retrieved wallet's transactions. Remaining wallet transaction limits are available only in the wallet's primary currency. Available in CRM.COM R15.0.0 |
allotment_group_conditions_set | Set of Wallet Allotment Group Condition Objects | Information related with the amount allotted by the wallet grouped by the conditions related with the each allotted amount |
Referred Objects Response Data