Deposit Accounts
Deposit Accounts are bank accounts maintained by a financial institution, in which a customer can deposit and withdraw money. Deposit accounts can be savings accounts, or any of several other types.
INFO
Mansar provides a cross-platform suite of flexible and customizable white-label UI components, including an account component and an account activity component. You may embed these components into your app to shorten your time to market and deliver a highly optimized experience to your end customer with minimal engineering investment.
Deposit accounts can belong to an individual customer, multiple customers (joint account) or business customers.
INFO
Joint accounts are deposit accounts that are assigned to multiple individual customers. Some of the use cases for joint accounts are family members/spouses using it to manage shared funds, or parents creating joint accounts with their children, to provide them with access to banking services and cards.
To create a joint account, you would have to provide an array of two or more Customers as part of the Create Account API call. At least one of the customers must be over 18 years old.
Deposit Products
When creating a deposit account, you are required to select a Deposit Product for the account. The deposit product defines the set of terms that are applied to the account:
Interest rate paid to the customer
Fees
Limits
Clearing periods for various payments
You may utilize as many deposit products as you need to make your product work.
There are many use cases for multiple deposit products:
Manage fees and limits to represent different customer tiers (regular / VIP).
Mitigate risk by applying different limits (low / medium / high) and clearing times.
Special purpose accounts (Tax account, Benefits account, and many others).
You may move an account between different deposit products (e.g. move an account from "regular" to "VIP") by updating the account.
INFO
Deposit products are created and updated by Mansar's compliance team since a compliance person must review any changes and make sure they are in line with the relevant regulations.
Create Deposit Account
Creates a deposit account for a Customer (or customers). An account.created event is raised when the call was successful.
Each deposit account is created using a specific deposit product. A deposit product is a predefined set of terms associated with this deposit account (e.g. interest rate, spending limits).
Use checking as the default value for the deposit product field while building your solution in sandbox . Contact Mansar to create other deposit products under your organization.
Deposit Account creation request supports Idempotency, ensuring that performing multiple identical requests will have the same effect as performing a single request.
A successful account creation will result in an account in Open status. Later on, accounts can be either frozen, closed or in some cases reopened.

Verb
POST
Url
https://api.s.usemansar.xyz/accounts
Required Scope
accounts-write
Data Type
depositAccount
Timeout (Seconds)
5
Attributes
depositProduct
string
The name of the deposit product.
tags
object
Optional.
idempotencyKey
string
Optional.
Relationships
customer
Required for individual / business accounts. JSON:API Relationship
The customer the deposit account belongs to. The customer is either a business or an individual.
customers
Required for joint accounts. Array of JSON:API Relationship
The list of customers the deposit account belongs to. Each of the customers is an individual customer and at least one must be over 18 years old.
CAUTION
You must provide exactly one of customer or customers.
Example Request:
Response
Response is a JSON:API document.
201 Created
data
DepositAccount
The requested resource after the operation was completed.
Example Response:
Close Account
Closes an account. Closing an account is irreversible and can only be done by an Org user. An account.closed event is raised when the call was successful.
NOTE Closing an account will also close the cards associated with the account.
INFO
When closing an account with a balance of $1 or less, the funds will automatically be transferred to your organization's revenue account (see more at Account Low Balance Closure). When closing an account with a balance greater than $1, a check will be mailed to the business or individual address on file.
When closing an account with a negative balance, the balance will be considered a loss and will be covered by your reserve account
Verb
POST
Url
https://api.s.usemansar.xyz/accounts/:accountId/close
Required Scope
accounts-write
Data Type
depositAccountClose
Timeout (Seconds)
5
Attributes
reason
string
The reason for closing the account. Either ByCustomer, Fraud, ByBank, or NegativeBalance.
fraudReason
string
Optional. The expanded fraud reason for closing the account when Fraud is specified as the reason. Can be one of: (MobilepaymentActivity, CardActivity, interbankActivity, ApplicationHistory, AccountActivity, ClientIdentified, IdentityTheft, LinkedToFraudulentCustomer).
bankReason
string
Optional. The expanded bank reason for closing the account when ByBank is specified as the reason. Can be one of: (ProhibitedBusiness, MissingCddEdd, NonUsOperations, SuspectedFraud). This list is subject to change.
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
Deposit Account resource.
Reopen Account
Reopens an account.
CAUTION
Reopening an account will not reopen cards associated with the account. Closed cards cannot be reactivated.
NOTE
This API can only be used to reopen accounts that were closed by customers. In order to reopen an account that was closed due to fraud, please contact Mansar.
Verb
POST
Url
https://api.s.usemansar.xyz/accounts/:accountId/reopen
Required Scope
accounts-write
Timeout (Seconds)
5
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
Deposit Account resource.
Freeze Account
Freezes an account. An account.frozen event is raised when the call was successful. A frozen account behaves like a closed account, with the primary difference being that a frozen state should be temporary, and after evaluation should either be un-frozen, or closed.
NOTE
Freezing an account will also freeze the cards associated with the account.
Verb
POST
Url
https://api.s.usemansar.xyz/accounts/:accountId/freeze
Required Scope
accounts-write
Timeout (Seconds)
5
Attributes
reason
string
The reason for closing the account. Either Fraud or Other, with a specified reasonText.
reasonText
string
Optional. The free-text reason for freezing the account (up to 255 characters) when Other is specified.
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
Deposit Account resource.
Unfreeze Account
Unfreezes an account.
NOTE
Unfreezing an account will also unfreeze the cards associated with the account.
Verb
POST
Url
https://api.s.usemansar.xyz/accounts/:accountId/unfreeze
Required Scope
accounts-write
Timeout (Seconds)
5
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
Deposit Account resource.
Get by Id
Get a deposit account resource by id.
Verb
GET
Url
https://api.s.usemansar.xyz/accounts/{id}
Required Scope
accounts
Timeout (Seconds)
5
Query Parameters
include
string
(empty)
Optional. Related resource available to include: customer.
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
The requested resource after the operation was completed.
included
Array of Customer
Array of resources requested by the include query parameter.
List
List deposit account resources. Paging can be applied.
Verb
GET
Url
https://api.s.usemansar.xyz/accounts
Required Scope
accounts
Timeout (Seconds)
5
Query Parameters
page[limit]
integer
100
Optional. Maximum number of resources that will be returned. Maximum is 10000 resources.
page[offset]
integer
0
Optional. Number of resources to skip.
filter[customerId]
string
(empty)
Optional. Filters the results by the specified customer id.
filter[depositProductId]
string
(empty)
Optional. Filters the results by the specified deposit product id.
filter[tags]
Tags (JSON)
(empty)
Optional. Filter Accounts by Tags.
filter[status]
string
Authorized
Optional. Filter Account by its status (Open, Frozen, or Closed). Usage example: filter[status][0]=Closed
filter[fromBalance]
Integer
(empty)
Optional. Filters Accounts that have balance higher or equal to the specified amount (in cents). e.g. 5000
filter[toBalance]
Integer
(empty)
Optional. Filters Accounts that have balance lower or equal to the specified amount (in cents). e.g. 7000
include
string
(empty)
Optional. Related resource available to include: customer.
Response
Response is a JSON:API document.
200 OK
data
Array of DepositAccount
Array of deposit account resources.
included
Array of Customer
Array of resources requested by the include query parameter.
Example Response:
Update
Update a deposit account.
Verb
PATCH
Url
https://api.s.usemansar.xyz/accounts/:accountId
Data Type
depositAccount
Timeout (Seconds)
5
Attributes
tags
object
Optional.
depositProduct
string
Optional. Name of the selected deposit product (you can get the list of available deposit products using a dedicated API endpoint).
NOTE
Deposit product replacement API is not enabled by default for all customers. Please contact Mansar if you need to enable this functionality.
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
The requested resource after the operation was completed.
Example Response:
Limits
Verb
GET
Url
https://api.s.usermansar.xyz/accounts/:accountId/limits
Timeout (Seconds)
5
Some monetary transactions (such as originating mobile payments, ATM withdrawals, or deposits) are subject to daily and/or monthly amount limits that are defined on the account level.
The response to this API call includes the defined limits, as well as the current total amounts on each transaction type (under the totalsDaily and totalsMonthly fields), in cents.
NOTE
The daily limits reset at 12:00 a.m. on the timezone of relevant bank. The monthly limits are reset at the same time on the first of each month.
Get Available Deposit Products
Verb
GET
Url
https://api.s.usemansar.xyz/accounts/:accountId/deposit-products
Timeout (Seconds)
5
List of available deposit products compatible with the account.
Example Response:
Get Account Balance History
List account end-of-day balance history (filtering and paging can be applied).
The account balance history can be used to provide the customer with an overview of their balance across account(s) over time in a visually engaging way, providing insights and creating custom product features around it.
NOTE

The typical cutoff time (end-of-day) is 7 PM, but may vary between banks. The exact time and timezone are determined by the partner bank you work with.
Verb
GET
Url
https://api.s.usemansar.xyz/account-end-of-day
Required Scope
account-end-of-day
Timeout (Seconds)
5
Query Parameters
page[limit]
integer
100
Optional. Maximum number of resources that will be returned. Maximum is 1000 resources.
page[offset]
integer
0
Optional. Number of resources to skip.
filter[accountId]
string
(empty)
Optional. Filters the results by the specified account id. At least one of accountId and customerId is required.
filter[customerId]
string
(empty)
Optional. Filters the results by the specified customer id. At least one of accountId and customerId is required.
filter[since]
ISO Local Date string
(empty)
Optional. Filters the account end-of-day balances after the specified date. e.g. 2021-06-01
filter[until]
ISO Local Date string
(empty)
Optional. Filters the account end-of-day balances before the specified date. e.g. 2021-07-01
Response
Response is a JSON:API document.
200 OK
data
Array of Account End-Of-Day
Array of account end-of-day resources.
meta
JSON object that contains pagination data
Pagination data includes offset, limit and total (total items).
Example Response:
Add Account Owners
Add owner or owners to an existing deposit account.
Verb
POST
Url
https://api.s.usemansar.xyz/accounts/:accountId/relationships/customers
Required Scope
accounts-write
Timeout (Seconds)
5
Attributes
data
Array
A list of individual customers to be added to the account.
Example Request:
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
The requested resource after the operation was completed.
Example Response:
Remove Account Owners
Remove the owner or owners from an existing joint deposit account.
NOTE
At least one of the owners after deletion must be over 18 years old.
NOTE
All cards related to the removed owners will be closed.
Verb
DELETE
Url
https://api.s.usemansar.xyz/accounts/:accountId/relationships/customers
Required Scope
accounts-write
Timeout (Seconds)
5
Attributes
data
Array
A list of individual customers to be removed from the account.
Example Request:
Response
Response is a JSON:API document.
200 OK
data
DepositAccount
The requested resource after the operation was completed.
Example Response:
Last updated