Overview
This guide covers how to submit savings top ups and withdrawals (sell orders) using the Savings Orders endpointPOST /savings/orders.
Savings orders always operate on the savings product implied by the provided currency. No ISIN is required.
Prerequisites
- Access to the Savings Orders endpoints
- M2M bearer token with required scopes
x-user-idheader to scope the user (MongoDB ObjectId format)
Savings top up flow
Use this flow to move cash into a user’s savings plan.1
Verify the user has sufficient cash
Retrieve the user’s available cash in the target currency before submitting a top up.
2
Build the savings top up request
Create the order payload with the side set to
Buy, the savings currency, and the amount to top up.3
Submit the savings top up order
Call
POST /savings/orders with the request body and required headers.4
Retrieve order status
Use
GET /transactions/savings-activity to retrieve the order status. Filter the results by the transaction id returned from the order submission.Savings withdrawal flow
Withdrawals correspond to savings sell orders. Use this flow to return funds from the savings plan to the user’s cash balance.1
Retrieve the user's savings vault balance
Before submitting a withdrawal, retrieve the user’s savings vault balance to ensure they have sufficient savings in the target currency.
The response returns a map of savings products by currency, each containing the
amount (in cents) and currency. For example:2
Verify sufficient savings balance
Check that the user has enough savings in the target currency to cover the withdrawal amount. Remember that the savings vault amounts are in cents, so convert accordingly.
3
Build the withdrawal request
Configure the request payload with
side set to Sell.4
Submit the withdrawal order
Call
POST /savings/orders with the withdrawal payload.5
Retrieve withdrawal status
Use
GET /transactions/savings-activity to retrieve the withdrawal status. Filter the results by the transaction id returned from the withdrawal submission.Related APIs
- API Reference → Savings Vault →
GET /savings-vault - API Reference → Savings Orders →
POST /savings/orders - API Reference → Transactions →
GET /transactions/savings-activity - API Reference → Cash →
GET /cash