Custody accounts
A custody account gives one of your customers a permanent crypto deposit address on each network you can be paid on. Money sent to that address is credited to you automatically and attributed to the customer who owns it — you do not create a new address per payment.
Provisioning is asynchronous. A newly created account comes back with status pending and an empty addresses array. Read the account again until it turns active and the addresses appear.
The custody account model
The custody account model represents one account issued to one of your customers. The following attributes are associated with it:
Properties
- Name
accountId- Type
- string
- Description
Unique identifier for the custody account. Use it for every lookup below.
- Name
status- Type
- string
- Description
The state of the account:
pending,active,failedordeactivated. Addresses only exist once the account isactive.
- Name
clientCustomerRef- Type
- string
- Description
Your own identifier for the customer, supplied when the account was created. You can look the account up by this value, so you do not have to store ours.
- Name
label- Type
- string
- Description
An optional human-readable name you supplied at creation.
- Name
addresses- Type
- array
- Description
The deposit addresses your customer can be paid on. An address is listed only when it is being watched for incoming payments and you have an active currency on its network, so expect far fewer addresses than networks exist.
- Name
addresses[].network- Type
- string
- Description
The network the address belongs to:
ethereum,polygon-pos,binance-smart-chainortron.
- Name
addresses[].address- Type
- string
- Description
The deposit address itself. It is permanent — the same address for every payment. The same address is issued across every EVM network, so expect
ethereumandpolygon-posto share one.
- Name
addresses[].currencies- Type
- array
- Description
The currencies this address accepts, for example
["usdt-ethereum", "usdc-ethereum", "xaut-ethereum"]. Paying it in anything else will not be credited.
- Name
balances- Type
- array
- Description
Lifetime credited totals per currency for this account.
- Name
balances[].currency- Type
- string
- Description
The currency the total is denominated in, for example
usdc-polygon.
- Name
balances[].network- Type
- string
- Description
The network the credits arrived on, for example
polygon-pos.
- Name
balances[].totalCredited- Type
- number
- Description
The total amount ever credited to this account in that currency.
- Name
balances[].lastCreditedAt- Type
- string
- Description
The timestamp of the most recent credit in that currency.
balances is a record of what has arrived for this customer, not a spendable balance. Your spendable funds are a single figure for your whole organization — see Balance.
Create a custody account
Provisions a custody account for one of your customers.
Body attributes
- Name
clientCustomerRef- Type
- string
- Description
Required. Your own identifier for the customer. Use a value that is unique within your organization — it is how you look the account up later.
- Name
label- Type
- string
- Description
Optional. A human-readable name for the account.
The response will have status pending and no addresses while wallets are being provisioned. Read the account back until it is active.
A 409 with Custody is not enabled for this organization means custody has not been set up for you yet — contact admin@mayaramp.com.
Request
curl -X POST "https://staging.mayaramp.com/v1/deposit/crypto/account" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID" \
-H "Content-Type: application/json" \
-d '{
"clientCustomerRef": "customer-8812",
"label": "Acme Corp"
}'
Response
{
"statusCode": 200,
"message": "Custody customer account provisioned",
"data": {
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"clientCustomerRef": "customer-8812",
"label": "Acme Corp",
"status": "pending",
"addresses": []
}
}
List custody accounts
Retrieves a paginated list of the custody accounts you have created. Newest first by default.
Query Params attributes
- Name
limit- Type
- integer
- Description
Limit the number of accounts returned.
- Name
page- Type
- integer
- Description
Specify the page number to retrieve.
- Name
sort- Type
- string
- Description
Sort by a specific field, for example
createdAt. Prefix with a hyphen (-) to reverse the order. Defaults to-createdAt.
- Name
status- Type
- string
- Description
Filter by status:
pending,active,failedordeactivated.
- Name
clientCustomerRef- Type
- string
- Description
Filter by your own customer identifier.
Request
curl -X GET "https://staging.mayaramp.com/v1/deposit/crypto/account?limit=10&page=1&status=active" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "listCustodyAccountsHandler successfully",
"data": {
"docs": [
{
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "active",
"clientCustomerRef": "customer-8812",
"label": "Acme Corp",
"addresses": [
{
"network": "ethereum",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-ethereum", "usdc-ethereum", "xaut-ethereum"]
},
{
"network": "polygon-pos",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-polygon", "usdc-polygon"]
},
{
"network": "tron",
"address": "TDummyAddress111111111111111111111",
"currencies": ["usdt-tron"]
}
],
"balances": [
{
"currency": "usdc-polygon",
"network": "polygon-pos",
"totalCredited": 0.1,
"lastCreditedAt": "2026-09-04T08:12:14.941Z"
}
]
}
],
"totalDocs": 13,
"limit": 10,
"totalPages": 2,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": true,
"prevPage": null,
"nextPage": 2
}
}
Get a custody account by ID
Retrieves one custody account by the accountId returned at creation.
Reading a pending account also re-checks whether its wallets are ready, so this is the endpoint to poll after creating one.
Returns 404 with Custody account not found if the account does not belong to you.
Request
curl -X GET "https://staging.mayaramp.com/v1/deposit/crypto/account/id/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "getCustodyAccountHandler successfully",
"data": {
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "active",
"clientCustomerRef": "customer-8812",
"label": "Acme Corp",
"addresses": [
{
"network": "ethereum",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-ethereum", "usdc-ethereum", "xaut-ethereum"]
},
{
"network": "polygon-pos",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-polygon", "usdc-polygon"]
},
{
"network": "tron",
"address": "TDummyAddress111111111111111111111",
"currencies": ["usdt-tron"]
}
],
"balances": [
{
"currency": "usdc-polygon",
"network": "polygon-pos",
"totalCredited": 0.1,
"lastCreditedAt": "2026-09-04T08:12:14.941Z"
}
]
}
}
Get a custody account by customer reference
Retrieves one custody account by the clientCustomerRef you supplied at creation, so you can look an account up with your own customer identifier.
The response body is identical to the lookup by ID.
Request
curl -X GET "https://staging.mayaramp.com/v1/deposit/crypto/account/ref/customer-8812" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "getCustodyAccountHandler successfully",
"data": {
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "active",
"clientCustomerRef": "customer-8812",
"label": "Acme Corp",
"addresses": [
{
"network": "ethereum",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-ethereum", "usdc-ethereum", "xaut-ethereum"]
},
{
"network": "polygon-pos",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-polygon", "usdc-polygon"]
},
{
"network": "tron",
"address": "TDummyAddress111111111111111111111",
"currencies": ["usdt-tron"]
}
],
"balances": []
}
}
Get a custody account by address
Resolves a deposit address back to the custody account that owns it. Useful when a payer quotes you an address and you need to know whose account it is.
Treat this as a convenience lookup only. A single EVM address is shared across many networks, so an address is not a reliable key for attributing a payment — use the account returned here, not the address itself.
Request
curl -X GET "https://staging.mayaramp.com/v1/deposit/crypto/account/address/TDummyAddress111111111111111111111" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "getCustodyAccountHandler successfully",
"data": {
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "active",
"clientCustomerRef": "customer-8812",
"label": "Acme Corp",
"addresses": [
{
"network": "ethereum",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-ethereum", "usdc-ethereum", "xaut-ethereum"]
},
{
"network": "polygon-pos",
"address": "0x1234567890abcdef1234567890abcdef12345678",
"currencies": ["usdt-polygon", "usdc-polygon"]
},
{
"network": "tron",
"address": "TDummyAddress111111111111111111111",
"currencies": ["usdt-tron"]
}
],
"balances": []
}
}
List deposits into a custody account
Retrieves a paginated history of the deposits made through this account's addresses, newest first. Each record is a deposit, the same shape the Deposit endpoints return.
Query Params attributes
- Name
limit- Type
- integer
- Description
Limit the number of records returned.
- Name
page- Type
- integer
- Description
Specify the page number to retrieve.
- Name
sort- Type
- string
- Description
Sort by a specific field. Defaults to
-createdAt.
Record attributes
- Name
depositId- Type
- string
- Description
The deposit's identifier, which you can pass to the deposit detail endpoint.
- Name
depositType- Type
- string
- Description
cryptofor every custody deposit.
- Name
inputCurrency- Type
- string
- Description
The currency your customer paid in, for example
usdc-polygon.
- Name
inputAmount- Type
- number
- Description
The gross amount that arrived at the address, before our fee.
- Name
outputCurrency- Type
- string
- Description
The currency credited to you. The same as
inputCurrencyon a custody deposit.
- Name
outputAmount- Type
- number
- Description
The net amount credited to you, after the fee is deducted.
- Name
fee- Type
- object
- Description
The fee taken, as
amount,percentageandcurrency. It is always deducted from what arrived — a custody address cannot ask the payer for more.
- Name
status- Type
- string
- Description
completedonce the money has been credited.
- Name
activityHistory- Type
- array
- Description
The deposit's status timeline, each entry carrying
activity,status,descriptionandupdatedAt.
- Name
paymentCrypto- Type
- object
- Description
The address the payment arrived on, as
payoutWallet,networkandmemo.
- Name
transactionHash- Type
- string
- Description
The on-chain transaction hash, so you can look the payment up in a block explorer.
- Name
senderWallet- Type
- string
- Description
The address the payment came from.
Request
curl -X GET "https://staging.mayaramp.com/v1/deposit/crypto/account/id/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/deposit?limit=10&page=1" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "getCustodyAccountDepositsHandler successfully",
"data": {
"docs": [
{
"depositId": "9f2c7b41-3a6d-4e58-8c19-2b7f0d5a6e33",
"depositType": "crypto",
"userId": "b93c1e27-5f8a-4d6b-9c02-7e1a5d8f3b44",
"inputCurrency": "usdc-polygon",
"inputAmount": 0.1,
"outputCurrency": "usdc-polygon",
"outputAmount": 0.095,
"fee": {
"amount": 0.005,
"percentage": 0.5,
"currency": "usdc-polygon"
},
"status": "completed",
"activityHistory": [
{
"activity": "Paid by Payee",
"status": "completed",
"description": "Received on the custody address",
"updatedAt": "2026-09-04T08:12:14.941Z"
}
],
"isReconciled": false,
"expiredAt": "2026-09-04T08:12:14.941Z",
"createdAt": "2026-09-04T08:12:14.941Z",
"updatedAt": "2026-09-04T08:12:14.941Z",
"paymentCrypto": {
"payoutWallet": "0x9f2a4c8e1b7d3f5a2c6e9b04d81f7a23c9e4c41d",
"network": "polygon-pos",
"memo": ""
},
"transactionHash": "0x3ab19c7e5f0d4c81b2a6e9f7c1d8043a5b62ef19d7c0a4381f2b9e6c5d70a821",
"senderWallet": "0x5E1b09a7c4d2f83b61ae5720cd3419f8b2e6a1d3"
}
],
"totalDocs": 1,
"limit": 10,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
}
Get custody account balances
Retrieves the lifetime credited total per currency for one custody account, paginated.
These are totals of what has arrived for this customer, not funds you can spend. Your spendable figure is a single organization-wide balance — see Balance.
Query Params attributes
- Name
limit- Type
- integer
- Description
Limit the number of currencies returned. Defaults to 20.
- Name
page- Type
- integer
- Description
Specify the page number to retrieve.
Request
curl -X GET "https://staging.mayaramp.com/v1/deposit/crypto/account/id/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/balance?limit=20&page=1" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "getCustodyAccountBalanceHandler successfully",
"data": {
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"clientCustomerRef": "customer-8812",
"docs": [
{
"currency": "usdc-polygon",
"network": "polygon-pos",
"totalCredited": 0.1,
"lastCreditedAt": "2026-09-04T08:12:14.941Z"
}
],
"totalDocs": 1,
"limit": 20,
"page": 1,
"totalPages": 1
}
}
Deactivate a custody account
Deactivates a custody account and stops watching its addresses, so money sent there afterwards is no longer credited.
There is no way to delete a custody account, and deactivation cannot be undone. The addresses remain valid on-chain — anything sent to them after deactivation is not credited and cannot be recovered. Make sure your customer has stopped using them first.
Repeat calls are safe and return 200 with the account already deactivated.
Request
curl -X PATCH "https://staging.mayaramp.com/v1/deposit/crypto/account/id/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
-H "X-SIGNATURE: YOUR_SIGNATURE" \
-H "X-TIMESTAMP: YOUR_TIMESTAMP" \
-H "X-CLIENT-ID: YOUR_CLIENT_ID"
Response
{
"statusCode": 200,
"message": "Custody account deactivated",
"data": {
"accountId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "deactivated"
}
}