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.

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, failed or deactivated. Addresses only exist once the account is active.

  • 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-chain or tron.

  • 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 ethereum and polygon-pos to 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.


POST/v1/deposit/crypto/account

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

POST
/v1/deposit/crypto/account
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": []
    }
}

GET/v1/deposit/crypto/account

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, failed or deactivated.

  • Name
    clientCustomerRef
    Type
    string
    Description

    Filter by your own customer identifier.

Request

GET
/v1/deposit/crypto/account
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/v1/deposit/crypto/account/id/:accountId

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

GET
/v1/deposit/crypto/account/id/:accountId
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/v1/deposit/crypto/account/ref/:clientCustomerRef

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

GET
/v1/deposit/crypto/account/ref/:clientCustomerRef
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/v1/deposit/crypto/account/address/:address

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.

Request

GET
/v1/deposit/crypto/account/address/:address
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": []
    }
}

GET/v1/deposit/crypto/account/id/:accountId/deposit

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

    crypto for 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 inputCurrency on 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, percentage and currency. It is always deducted from what arrived — a custody address cannot ask the payer for more.

  • Name
    status
    Type
    string
    Description

    completed once the money has been credited.

  • Name
    activityHistory
    Type
    array
    Description

    The deposit's status timeline, each entry carrying activity, status, description and updatedAt.

  • Name
    paymentCrypto
    Type
    object
    Description

    The address the payment arrived on, as payoutWallet, network and memo.

  • 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

GET
/v1/deposit/crypto/account/id/:accountId/deposit
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/v1/deposit/crypto/account/id/:accountId/balance

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

GET
/v1/deposit/crypto/account/id/:accountId/balance
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
    }
}

PATCH/v1/deposit/crypto/account/id/:accountId

Deactivate a custody account

Deactivates a custody account and stops watching its addresses, so money sent there afterwards is no longer credited.

Repeat calls are safe and return 200 with the account already deactivated.

Request

PATCH
/v1/deposit/crypto/account/id/:accountId
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"
    }
}

Was this page helpful?