For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Management

Create and manage your customers, put them through KYC, hold their payout details — and issue the fiat accounts they are paid into.

All of it hangs off one customer. POST /api/v1/partner/users creates them and answers with the user_uuid every route below takes in its path; KYC verifies them; and an account is opened for that same person. There is no second identity to register and no separate customer record for banking — the person Unigox verified is the person the account belongs to.

Customer-owned wallets and crypto deposits

  1. Ask Unigox to enable external-wallet customers for your partner account.

  2. Create the customer with wallet_type: external_wallet. Omitting it creates a partner_wallet customer. The type is fixed at creation; use the same type when repeating a request for an existing user_ref.

  3. Request POST /api/v1/partner/users/{user_uuid}/wallet/challenge for the customer's EVM address. Have that wallet sign the returned message unchanged with personal_sign or its equivalent signMessage operation.

  4. Submit address, message and signature to POST /api/v1/partner/users/{user_uuid}/wallet. GET on that path returns the link status and XAI balances.

  5. Allocate deposit addresses and check their monitoring status before accepting payments. Supported deposits are credited to the linked wallet on UNIGOX, on XAI (chain ID 660279). Register your partner webhook to receive wallet.deposit.received after a bridge credit.

Enabling external-wallet customers controls new customer creation. Existing external-wallet customers can still link their wallet, read it and deposit if that permission is later disabled. These routes use X-API-Key and your customer UUID. Wallet-signed Bridge memo addresses use the separate Bridge payment API; the partner deposit-address routes do not attach memos.

Verify API key authentication

get
/api/v1/partner/verify-auth

Verifies that the provided API key is valid and authentication is working correctly.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Responses
200

Authentication successful

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/verify-auth
GET /api/v1/partner/verify-auth HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "message": "Authentication successful",
    "authenticated": true
  }
}

Create or get partner user

post
/api/v1/partner/users

Creates a customer or returns the existing customer for user_ref. Use the returned user_uuid in subsequent paths. Partners can only access their own users.

For customer-owned wallets and deposit-address allocation, set wallet_type: external_wallet and complete the wallet challenge/link steps in User Management. This option must be enabled by Unigox before creating a new external-wallet customer. The default is partner_wallet. A customer's wallet type cannot be changed by repeating this request.

Each partner user must represent one actual payout beneficiary/end customer. Create a separate partner user for each beneficiary. Do not attach payment details for unrelated people to the same user_uuid.

A partner user is the SENDER. To pay someone else, do not create a shell user for the payee — register a recipient (/api/v1/partner/recipients) and quote against it. See the Third-party payouts guide.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Body
user_refstringRequired

Partner's unique user ID (usually primary key or UUID)

Example: partner_unique_id_123
emailstring · emailRequired

User's email address. Among your customers created from 2026-10-12, one email is one account: a second user_ref with such an email gets its own user_uuid but the same account (funds, orders, KYC and, for external_wallet, the same wallet). A new user_ref with the email of a customer created before that date gets a new account. The same email at another partner or in the Unigox app is a separate account.

Example: user@example.com
wallet_typestring · enumOptional

Whose address holds this customer's funds, fixed at creation.

  • partner_wallet — your partner wallet holds them and you sign (default, and every customer created before this field existed).
  • external_wallet — the customer's own EVM address holds them and the customer signs. Requires non-custodial mode.
Default: partner_walletExample: external_walletPossible values:
Responses
200

Customer created, or the existing customer for this user_ref

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users
POST /api/v1/partner/users HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 90

{
  "user_ref": "customer_123",
  "email": "customer@example.com",
  "wallet_type": "external_wallet"
}
{
  "success": true,
  "data": {
    "user_uuid": "550e8400-e29b-41d4-a716-446655440000",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "email": "user@example.com",
    "kyc_status": "NOT_INITIATED",
    "wallet_type": "external_wallet",
    "wallet": {
      "address": "0x8ba1f109551bd432803012645ac136ddd64dba72",
      "status": "unlinked"
    },
    "created_at": "2026-01-06T14:30:00Z"
  }
}

Partner user by ID

get
/api/v1/partner/users/{user_uuid}

Get user details including KYC status and payment profiles using the user_uuid returned during user creation. Partners can only access their own users.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
200

User found

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}
GET /api/v1/partner/users/{user_uuid} HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "user_uuid": "550e8400-e29b-41d4-a716-446655440000",
    "email": "user@example.com",
    "wallet_type": "external_wallet",
    "wallet": {
      "address": "0x8ba1f109551bd432803012645ac136ddd64dba72",
      "status": "unlinked"
    },
    "created_at": "2026-01-06T14:30:00Z",
    "kyc": {
      "status": "IN_PROGRESS",
      "kyc_method": "direct_data",
      "first_name": "John",
      "last_name": "Doe",
      "country_code": "NG",
      "rejection_reasons": [
        "Document back not detected in the document image"
      ],
      "rejection_reason": "Document verification was not approved",
      "updated_at": "2026-01-06T14:30:00Z"
    },
    "fiat_account_issuance": {
      "ready": false,
      "missing_fields": [
        "address",
        "postal_code"
      ]
    },
    "payment_profiles": [
      {
        "id": "987",
        "rail": "nip-nigeria",
        "currency": "NGN",
        "institution_name": "Guaranty Trust Bank",
        "institution_id": "guaranty-trust-bank",
        "details": {
          "account_number": "0123456789"
        }
      }
    ]
  }
}

Request a wallet ownership challenge

post
/api/v1/partner/users/{user_uuid}/wallet/challenge

Returns a Sign-In with Ethereum (EIP-4361) message that proves the customer controls address. Show it to the customer unchanged and have them sign it with personal_sign, then submit it to POST /api/v1/partner/users/{user_uuid}/wallet.

The message names your partner account, the customer and the address, is valid for 10 minutes and can be used once. Requesting a new challenge invalidates the previous one.

Only an externally owned account can be linked: linking needs a plain personal_sign signature, and the same key later signs EIP-712 requests that the XAI forwarder verifies with ecrecover. A smart-contract wallet cannot produce either, so linking one fails with 400 INVALID_SIGNATURE.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
addressstringRequired

The customer's EVM address

Example: 0x8ba1f109551bD432803012645Ac136ddd64DBA72Pattern: ^0x[0-9a-fA-F]{40}$
Responses
201

Challenge issued

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users/{user_uuid}/wallet/challenge
POST /api/v1/partner/users/{user_uuid}/wallet/challenge HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56

{
  "address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72"
}
{
  "success": true,
  "data": {
    "message": "unigox.com wants you to link your Ethereum account:\n0x8ba1f109551bD432803012645Ac136ddd64DBA72\n\nLink this address to customer 550e8400-e29b-41d4-a716-446655440000 of Acme on Unigox. Funds you deposit are held at this address and move only with your signature.\n\nURI: https://unigox.com\nVersion: 1\nChain ID: 660279\nNonce: 8f3a2c9b1d4e7f60\nIssued At: 2026-10-12T10:00:00Z\nExpiration Time: 2026-10-12T10:10:00Z\n",
    "nonce": "8f3a2c9b1d4e7f60",
    "expires_at": "2026-10-12T10:10:00Z"
  }
}

Customer wallet and balance

get
/api/v1/partner/users/{user_uuid}/wallet

The customer's linked address, its status, and the balance held at that address on the XAI chain in each supported token. Deposits appear here once credited on XAI.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
200

Wallet returned

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}/wallet
GET /api/v1/partner/users/{user_uuid}/wallet HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "address": "0x8ba1f109551bd432803012645ac136ddd64dba72",
    "status": "linked",
    "linked_at": "2026-10-12T10:01:12Z",
    "chain_id": "660279",
    "balances": [
      {
        "crypto_currency": "USDC",
        "token_address": "0x37BF70ee0dC89a408De31B79cCCC3152F0C8AF43",
        "amount_human": "25",
        "decimals": 6
      }
    ]
  }
}

Link the customer's address

post
/api/v1/partner/users/{user_uuid}/wallet

Submit the challenge message and the customer's personal_sign signature. The signer is recovered on the server and must equal address; the message must be the one issued, unchanged and unexpired.

On success the address is the customer's address at Unigox for good: deposits credit it, off-ramp orders are funded from it, on-ramp orders and refunds are paid to it. It cannot be changed or unlinked. A wallet.linked webhook is sent once, without retries.

balances in the response is empty when the XAI balance could not be read at that moment; that is not a zero balance. Read GET .../wallet again for it.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
addressstringRequiredExample: 0x8ba1f109551bD432803012645Ac136ddd64DBA72Pattern: ^0x[0-9a-fA-F]{40}$
messagestringRequired

The message from the challenge, byte for byte

signaturestringRequired

65-byte personal_sign signature, hex with 0x prefix

Example: 0x5f1c…1b
Responses
200

Address linked

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users/{user_uuid}/wallet
POST /api/v1/partner/users/{user_uuid}/wallet HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72",
  "message": "text",
  "signature": "0x5f1c…1b"
}
{
  "success": true,
  "data": {
    "address": "0x8ba1f109551bd432803012645ac136ddd64dba72",
    "status": "linked",
    "linked_at": "2026-10-12T10:01:12Z",
    "chain_id": "660279",
    "balances": [
      {
        "crypto_currency": "USDC",
        "token_address": "0x37BF70ee0dC89a408De31B79cCCC3152F0C8AF43",
        "amount_human": "25",
        "decimals": 6
      }
    ]
  }
}

List customer deposit addresses and monitoring status

get
/api/v1/partner/users/{user_uuid}/deposit-addresses

Returns the saved deposit addresses for a customer with a linked external wallet. The customer must belong to the authenticated partner. This request checks monitoring status for existing addresses; it never allocates another address. Complete the external-wallet customer creation and wallet-link steps in User Management first. Deposits credit that linked wallet on UNIGOX, on XAI (chain ID 660279), and are reported by the wallet.deposit.received partner webhook.

After an allocation returns 503 DEPOSIT_ADDRESS_NOT_WATCHED, repeat this GET to check the saved addresses. Do not repeat the allocation POST to check readiness.

For EVM and Tron, accept payments only on networks whose monitoring.chains entry has confirmed: true. A missing network is unconfirmed. monitoring.watched is the aggregate result, so one network can be ready while another is still pending. For Solana and TON, use monitoring.watched; their chains array is empty. Monitoring confirmation does not establish which tokens are supported.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The customer user_uuid belonging to the authenticated partner.

Responses
200

Saved addresses with current monitoring results; an empty list is valid.

application/json

Successful address allocation or retrieval; readiness is separate from HTTP success.

successboolean · enumRequired

The allocation or list request completed successfully.

Possible values:
get/api/v1/partner/users/{user_uuid}/deposit-addresses
GET /api/v1/partner/users/{user_uuid}/deposit-addresses HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "deposit_addresses": [
      {
        "chain_type": "evm",
        "address": "0x1111111111111111111111111111111111111111",
        "monitoring": {
          "watched": false,
          "chains": [
            {
              "chainId": 1,
              "confirmed": true
            },
            {
              "chainId": 8453,
              "confirmed": false
            }
          ]
        }
      }
    ]
  }
}

Allocate customer deposit addresses

post
/api/v1/partner/users/{user_uuid}/deposit-addresses/{chainType}/allocate

Creates additional deposit addresses for a customer with a linked external wallet. The customer must belong to the authenticated partner. Supported address families are evm, svm (Solana), tvm (Tron) and ton. The configured address cap also applies. First create an external_wallet customer and complete the wallet challenge/link flow. The linked address receives the supported settlement token on UNIGOX, on XAI (chain ID 660279). wallet.deposit.received reports the amount and token actually credited.

201 confirms allocation; use each address's monitoring fields to select a confirmed payment network. 503 DEPOSIT_ADDRESS_NOT_WATCHED means allocation may already have completed, but monitoring is not confirmed. Its data.deposit_addresses preserves the addresses returned by the allocation. Keep those addresses and check them with GET /api/v1/partner/users/{user_uuid}/deposit-addresses; do not repeat this POST. An empty saved-address list in a 503 response does not prove that nothing was allocated.

502 DEPOSIT_ADDRESS_ALLOCATION_UNKNOWN means the allocation outcome could not be confirmed after sending the request. Check saved addresses with the same GET; do not automatically repeat this allocation. An immediate empty list does not prove failure, because the original request may still complete. The allocation POST is not idempotent: repeating it can create additional addresses. Treat a lost HTTP response as uncertain too.

These partner endpoints do not attach a memo. Wallet-signed memo-address requests use the separate Bridge payment API.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The customer user_uuid belonging to the authenticated partner.

chainTypestring · enumRequired

Address family; EVM addresses can support multiple configured networks.

Possible values:
Body
countinteger · max: 50Optional

Number of additional addresses. Omitted or zero requests one address.

Default: 1
Responses
201

Addresses allocated; monitoring is reported for each saved address.

application/json

Successful address allocation or retrieval; readiness is separate from HTTP success.

successboolean · enumRequired

The allocation or list request completed successfully.

Possible values:
post/api/v1/partner/users/{user_uuid}/deposit-addresses/{chainType}/allocate
POST /api/v1/partner/users/{user_uuid}/deposit-addresses/{chainType}/allocate HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 11

{
  "count": 1
}
{
  "success": true,
  "data": {
    "deposit_addresses": [
      {
        "chain_type": "evm",
        "address": "0x1111111111111111111111111111111111111111",
        "monitoring": {
          "watched": true,
          "chains": [
            {
              "chainId": 1,
              "confirmed": true
            },
            {
              "chainId": 8453,
              "confirmed": true
            }
          ]
        }
      }
    ]
  }
}

Quote a withdrawal

post
/api/v1/partner/users/{user_uuid}/withdrawals/quote

Prices a withdrawal of amount of crypto_currency from the customer's XAI address to destination_address on destination_chain, and returns the EIP-712 ForwardRequest that authorizes it. Have the customer sign forward_request unchanged with their linked key, then submit it to POST /api/v1/partner/users/{user_uuid}/withdrawals before expires_at.

The token arriving is the same crypto_currency. Destination chains for a token: GET /api/v1/partner/send-out/routes?crypto=<crypto_currency>. destination_chain: xai sends on XAI itself with no bridge.

The quote is valid for 10 minutes; the signed request's deadline equals expires_at. Withdrawals need no KYC.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
crypto_currencystringRequiredExample: USDC
amountstringRequired

Amount to debit from the customer's XAI balance, decimal string with no more decimals than the token has

Example: 25.00
destination_chainstringRequired

Chain name as GET /api/v1/partner/send-out/routes lists it (case-insensitive), its chain_id, or xai

Example: Arbitrum One
destination_addressstringRequired

Address on the destination chain, in that chain's format

Example: 0x1111111111111111111111111111111111111111
Responses
201

Withdrawal quoted

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users/{user_uuid}/withdrawals/quote
POST /api/v1/partner/users/{user_uuid}/withdrawals/quote HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 145

{
  "crypto_currency": "USDC",
  "amount": "25.00",
  "destination_chain": "Arbitrum One",
  "destination_address": "0x1111111111111111111111111111111111111111"
}
{
  "success": true,
  "data": {
    "withdrawal_quote_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
    "expires_at": "2026-10-12T10:20:00Z",
    "crypto_currency": "USDC",
    "amount": "25.000000",
    "to_amount": "24.910000",
    "fee": "0.090000",
    "destination_chain": "Arbitrum One",
    "destination_address": "0x1111111111111111111111111111111111111111",
    "forward_request": {
      "from": "0x8ba1f109551bd432803012645ac136ddd64dba72",
      "to": "0x37BF70ee0dC89a408De31B79cCCC3152F0C8AF43",
      "value": "0",
      "gas": "500000",
      "nonce": "3",
      "deadline": "1791800400",
      "data": "0xa9059cbb…"
    },
    "eip712_domain": {
      "name": "SyntheticAssetForwarder",
      "version": "1",
      "chainId": "660279",
      "verifyingContract": "0x6fFCF38bEc8c733b096958fcd2a8E31A00530EDC"
    }
  }
}

List the customer's withdrawals

get
/api/v1/partner/users/{user_uuid}/withdrawals
Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
Query parameters
limitinteger · min: 1 · max: 100OptionalDefault: 50
offsetintegerOptionalDefault: 0
Responses
200

Withdrawals, newest first

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}/withdrawals
GET /api/v1/partner/users/{user_uuid}/withdrawals HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "withdrawals": [
      {
        "withdrawal_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
        "withdrawal_quote_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
        "status": "bridging",
        "crypto_currency": "USDC",
        "amount": "25.000000",
        "to_amount": "24.910000",
        "destination_chain": "Arbitrum One",
        "destination_address": "0x1111111111111111111111111111111111111111",
        "source_tx_hash": "0x5c1e…9a02",
        "destination_tx_hash": null,
        "failure_reason": null,
        "created_at": "2026-10-12T10:11:04Z",
        "updated_at": "2026-10-12T10:11:40Z"
      }
    ],
    "total": 1
  }
}

Submit a signed withdrawal

post
/api/v1/partner/users/{user_uuid}/withdrawals

Submit the quoted forward_request and the customer's signature. Unigox checks that the request is exactly the one quoted (sender, token, calldata, gas, nonce, deadline), that it was signed by the customer's linked address, re-checks the balance, and relays it; the customer pays no gas. The withdrawal keeps the quote's id: withdrawal_id equals withdrawal_quote_id.

Safe to retry with the same withdrawal_quote_id: a quote is executed at most once, and a repeat returns the existing withdrawal.

Off-ramp funding and withdrawals share the customer's forwarder nonce. Once one of them executes, a request signed with the same nonce can no longer execute and answers 409 QUOTE_EXPIRED; request a new quote.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
withdrawal_quote_idstring · uuidRequired
forward_requestobjectRequired

The forward_request from the quote, unchanged

signaturestringRequired

EIP-712 signature by the customer's linked address, hex with 0x prefix

Responses
202

Withdrawal accepted and being sent on chain (status: submitted)

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users/{user_uuid}/withdrawals
POST /api/v1/partner/users/{user_uuid}/withdrawals HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 102

{
  "withdrawal_quote_id": "123e4567-e89b-12d3-a456-426614174000",
  "forward_request": {},
  "signature": "text"
}
{
  "success": true,
  "data": {
    "withdrawal_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
    "withdrawal_quote_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
    "status": "bridging",
    "crypto_currency": "USDC",
    "amount": "25.000000",
    "to_amount": "24.910000",
    "destination_chain": "Arbitrum One",
    "destination_address": "0x1111111111111111111111111111111111111111",
    "source_tx_hash": "0x5c1e…9a02",
    "destination_tx_hash": null,
    "failure_reason": null,
    "created_at": "2026-10-12T10:11:04Z",
    "updated_at": "2026-10-12T10:11:40Z"
  }
}

Withdrawal by ID

get
/api/v1/partner/users/{user_uuid}/withdrawals/{withdrawal_id}
Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /api/v1/partner/users. Partners can only access their own customers.

Example: 550e8400-e29b-41d4-a716-446655440000
withdrawal_idstring · uuidRequired
Responses
200

Withdrawal returned

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}/withdrawals/{withdrawal_id}
GET /api/v1/partner/users/{user_uuid}/withdrawals/{withdrawal_id} HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "withdrawal_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
    "withdrawal_quote_id": "0b8e6c1e-3f0a-4c2e-9d55-6a1f4c3b2e10",
    "status": "bridging",
    "crypto_currency": "USDC",
    "amount": "25.000000",
    "to_amount": "24.910000",
    "destination_chain": "Arbitrum One",
    "destination_address": "0x1111111111111111111111111111111111111111",
    "source_tx_hash": "0x5c1e…9a02",
    "destination_tx_hash": null,
    "failure_reason": null,
    "created_at": "2026-10-12T10:11:04Z",
    "updated_at": "2026-10-12T10:11:40Z"
  }
}

Submit KYC data for a partner user

post
/api/v1/partner/users/{user_uuid}/kyc-submissions

Submit KYC (Know Your Customer) data for a partner user. Supports three methods:

  • direct_data: Partner submits PII data directly, user is verified

  • external_token: Partner provides external KYC provider credentials (SumSub token or Persona inquiry_id)

  • handoff: Unigox handles KYC verification and generates verification URL

Important for EUR/AUD/GBP off-ramp: EUR, AUD, and GBP payouts require the user's physical address. Include address, city, and postal_code in the PII data when submitting KYC. If not provided at submission time, you can add them later with PATCH /partner/users/{user_uuid}/kyc. Without address, EUR/AUD/GBP orders will be created with status pending_address until the address is provided.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
or
or
Responses
200

KYC submitted successfully

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users/{user_uuid}/kyc-submissions
POST /api/v1/partner/users/{user_uuid}/kyc-submissions HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 176

{
  "method": "direct_data",
  "data": {
    "pii": {
      "first_name": "John",
      "last_name": "Doe",
      "dob": "1990-01-01",
      "country_code": "NG",
      "address": "123 Street Name, Lagos",
      "postal_code": "100001"
    }
  }
}
{
  "success": true,
  "data": {
    "kyc_status": "IN_PROGRESS",
    "message": "PII data accepted",
    "verification_url": "https://verify.example.com/session/4fd410c9-ba9b-46cf-a4f0-132204a9a564"
  }
}

Upload KYC document for a partner user

post
/api/v1/partner/users/{user_uuid}/kyc/documents

Upload a KYC document for a partner user. Choose one of two upload methods:


Method 1: File Upload

Send the document as a file attachment.

POST /api/v1/partner/users/{user_uuid}/kyc/documents
Content-Type: multipart/form-data

document: <file>
document_type: identity_front

Method 2: Single URL Upload

Send a URL pointing to one document image.

{
  "upload_method": "url_link",
  "document_type": "identity_front",
  "url": "https://example.com/id-front.jpg"
}

Method 3: Batch URL Upload

Upload multiple documents in one call (up to 10).

URL requirements: HTTPS only, 10MB per file, JPEG/PNG/GIF/PDF.


Supported document_type values — the API accepts exactly the following (this is the complete, finite list; anything else is rejected). Required: a selfie and one identity-document front (identity_front or any equivalent ID type listed below). All other values are optional (document back sides and alternative ID types).

NIN/BVN + selfie option (verify with a registry number instead of an ID image). This is a two-step flow across two endpoints — the registry number is submitted as text, never uploaded as a file:

  1. On the submit-KYC endpoint (POST .../kyc-submissions, method direct_data), send the customer's data plus id_number (the registry number, as a string) and id_type (e.g. NIN, BVN). No image is uploaded in this step.

  2. On this documents endpoint, upload only a selfie (document_type: selfie) — no ID-document image. The registry number from step 1 satisfies the identity requirement, so verification starts automatically (national-registry lookup + selfie face-match against the registry photo).

The three upload methods below (multipart / single URL / batch URL) are for image files only — they are not how the registry number is sent (that is the id_number text field in step 1).

document_type only selects which slot (front / back / selfie) an image occupies. It is not used as a document-category and it does not set the country: our verification system detects the actual document type from the image, and the country is taken from the customer's KYC profile (their identity/address country), independent of this value. The country names below are naming hints to help you choose — they are not enforced, so a country-specific value is never required.

  • Generic identity document — general (any country): identity_front, identity_back

  • Passport — general (any country): passport, passport_front

  • National ID — general (any country; covers e.g. Nigeria's NIN card, Kenya national ID, India Aadhaar): national_id, national_id_front, national_id_back

  • Driver license — general (any country): driver_license, driver_license_front, driver_license_back

  • Voter ID — general (any country): voter_id, voter_id_front, voter_id_back

  • Resident card — general (any country): resident_card, resident_card_front, resident_card_back

  • ID card — general (any country; catch-all for local cards without their own type below, e.g. Indonesia KTP, Pakistan Nadra Card): id_card, id_card_front, id_card_back

  • Ghana card — Ghana (NIA biometric national ID): ghana_card, ghana_card_front, ghana_card_back

  • Ghana SSNIT card — Ghana (social-security card): ghana_ssnit_card, ghana_ssnit_card_front, ghana_ssnit_card_back

  • Kenya alien card — Kenya (non-citizen resident ID): kenya_alien_card, kenya_alien_card_front, kenya_alien_card_back

  • Green book — South Africa (legacy green barcoded ID book): green_book, green_book_front, green_book_back

  • Tax ID — general label (primary example: India PAN card): tax_id, tax_id_front, tax_id_back

  • Colombia PPT — Colombia (Permiso por Protección Temporal): colombia_ppt, colombia_ppt_front, colombia_ppt_back

  • Selfie — general (any country): selfie

Any front-side identity type above (e.g. passport, national_id, tax_id) satisfies the ID requirement — not only the literal identity_front. Nigeria's NIN is submitted as national_id (with the customer's country set to Nigeria); there is no separate nin value.

Automatic Verification: After an identity document + selfie + KYC data are present, the service queues verification processing and returns immediately. The identity document can be any accepted ID type above, not only identity_front (e.g. passport + selfie triggers verification). A 200 response means the documents were accepted; it is not a final verification result. Asynchronous verification checks can move the user to VERIFICATION_REJECTED after this response.

To trigger verification explicitly, or to check exactly what is still missing, call POST /api/v1/partner/users/{user_uuid}/kyc/verify (below).

Obtain the eventual outcome by polling GET /api/v1/partner/users/{user_uuid}/verification-status or consuming the user.kyc.updated webhook. The upload response does not include a verification session ID or kyc_status, because asynchronous state can change immediately after acceptance.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

Public UUID of the user

Example: 550e8400-e29b-41d4-a716-446655440000
Body
documentstring · binaryRequired

Document file (JPEG, PNG, GIF, or PDF, max 10MB)

document_typestring · enumRequired

Complete set of document types accepted by the partner KYC upload endpoint. document_type only selects the upload slot (front/back/selfie); it is not a document-category and does not set the country — our verification system detects the document type from the image, and the country comes from the customer's KYC profile. Values named after a country (ghana_card, ghana_ssnit_card, kenya_alien_card, green_book, colombia_ppt) are country-specific hints; all others (passport, national_id, driver_license, voter_id, resident_card, id_card, tax_id, identity_front/identity_back, selfie) are general — any country. Nigeria's NIN is submitted as national_id.

Example: identity_frontPossible values:
Responses
200

Documents accepted; verification starts asynchronously once all required documents are available

application/json
successbooleanRequiredExample: true
dataone ofRequired
or
post/api/v1/partner/users/{user_uuid}/kyc/documents
POST /api/v1/partner/users/{user_uuid}/kyc/documents HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 54

{
  "document": "binary",
  "document_type": "identity_front"
}
{
  "success": true,
  "data": {
    "document_id": "f1d5f922-bee2-4c7e-88ef-18022958c4c2",
    "document_type": "identity_front",
    "file_name": "passport_photo.jpg",
    "message": "Documents accepted"
  }
}

Trigger KYC verification and check readiness

post
/api/v1/partner/users/{user_uuid}/kyc/verify

Explicitly start KYC verification for a partner user on the direct_data image flow, or check what is still missing. Verification also starts automatically once an identity document + selfie + KYC data are present (see the document upload endpoint) — this endpoint is an explicit control and readiness check, not the only path. No request body.

The response tells you the state:

  • Ready, started: { "ready": true, "status": "IN_PROGRESS", "message": "Verification started." }. Idempotent — if a run is already in flight, the message is "Verification is already in progress." and no duplicate run is created.

  • Already verified: { "ready": true, "status": "VERIFIED", "message": "User is already verified." }.

  • Not ready: { "ready": false, "missing": ["identity_document", "selfie"], "message": "..." }. The missing items are generic: identity_document (any accepted ID type), selfie, kyc_data.

If the user has not submitted KYC with the direct_data method yet, this returns 400 — submit KYC via POST /api/v1/partner/users/{user_uuid}/kyc-submissions first.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

Public UUID of the user

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
200

Readiness result. Either verification was triggered / is already running / the user is already verified, or the user is not ready and missing lists what to provide.

application/json
successbooleanOptionalExample: true
post/api/v1/partner/users/{user_uuid}/kyc/verify
POST /api/v1/partner/users/{user_uuid}/kyc/verify HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "ready": true,
    "status": "IN_PROGRESS",
    "message": "Verification started."
  }
}

Update KYC data for a partner user

patch
/api/v1/partner/users/{user_uuid}/kyc

Update optional PII fields on existing KYC data. The user stays verified. Only optional fields can be updated. Required fields (first_name, last_name, country_code) cannot be changed.

For EUR/AUD/GBP offramp, provide address, city, and postal_code here. These will auto-populate into payment details for EUR/AUD/GBP payouts.

Sender identity (consumer-to-consumer payout rails). Chinese mobile wallets (Alipay, WeChat Pay) settle person to person: the receiving wallet must show the paying customer as the remitter, not Unigox. POST /offramp/initiate returns 422 SENDER_IDENTITY_REQUIRED when the customer's record cannot name them, listing the fields to send here in error.details.kyc_fields. gender, nationality, id_issue_country and source_of_funds exist for that flow, alongside dob, phone_number, id_number, id_type and the address fields the same rails need. Send them once, then retry the order.

The values are normalized before they are stored, and a value the rail would reject is a 400 here rather than a failed payout later: gender accepts M/F (MALE/FEMALE are folded in), nationality and id_issue_country take an ISO 3166-1 alpha-2 code, and source_of_funds takes one of the listed slugs.

Length is the exception, because the ceiling belongs to the payout rail and this record is not tied to one: a value too long for a corridor is accepted here and comes back from that corridor's initiate as a listed field, with the ceiling in error.details.field_limits.

The record belongs to the customer, not to a payout destination — never send another person's details here to satisfy a payout.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users.

Example: 550e8400-e29b-41d4-a716-446655440000
Body
addressstringOptional

Street address

Example: Svitrigailos g 29
citystringOptional

City

Example: Vilnius
postal_codestringOptionalExample: 03229
dobstring · dateOptional

Date of birth (YYYY-MM-DD). Must be in the past and indicate an age of at least 18; a future, malformed, or under-18 date is rejected with HTTP 400.

Example: 1990-01-01
phone_numberstringOptional

E.164 format

Example: +37012345678
middle_namestringOptional
id_numberstringOptional

Document number, as printed on the document named by id_type.

Example: AK9931245
id_typestring · enumOptionalPossible values:
genderstring · enumOptional

Sender identity. As it appears on the identity document — payout rails match it against the document, so this is not a self-description field. MALE/FEMALE are accepted and normalized to M/F.

Example: FPossible values:
nationalitystringOptional

Sender identity. Nationality as an ISO 3166-1 alpha-2 code.

Example: LT
id_issue_countrystringOptional

Sender identity. Country that issued the document, ISO 3166-1 alpha-2. Often but not always the same as nationality.

Example: LT
source_of_fundsstring · enumOptional

Sender identity. Where the money being sent comes from. Each payout rail maps this onto its own catalogue and refuses a payout it cannot map, so send the closest listed value rather than other when one applies.

Example: salaryPossible values:
Responses
200

KYC data updated successfully. updated_fields names only the fields that actually reached the record. A recognised field sent blank is a no-op rather than an error, so a patch whose recognised fields are all blank answers 200 with updated_fields: [] and nothing is written — this endpoint does not clear a stored value.

application/json
successbooleanOptionalExample: true
patch/api/v1/partner/users/{user_uuid}/kyc
PATCH /api/v1/partner/users/{user_uuid}/kyc HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 271

{
  "address": "Svitrigailos g 29",
  "city": "Vilnius",
  "postal_code": "03229",
  "dob": "1990-01-01",
  "phone_number": "+37012345678",
  "middle_name": "text",
  "id_number": "AK9931245",
  "id_type": "NATIONAL_ID",
  "gender": "F",
  "nationality": "LT",
  "id_issue_country": "LT",
  "source_of_funds": "salary"
}
{
  "success": true,
  "data": {
    "updated_fields": [
      "address",
      "city",
      "postal_code"
    ],
    "message": "KYC data updated successfully"
  }
}

Verification status for a partner user

get
/api/v1/partner/users/{user_uuid}/verification-status

Get the current verification status for a partner user. This endpoint returns the current status, verification URL (if available), and other relevant information. Optionally, you can provide a verification_id to check a specific verification session.

Status values:

  • NOT_INITIATED — no verification started yet

  • PENDING_DOCUMENTS — waiting for the customer to submit documents

  • IN_PROGRESS — automated verification is underway (usually a couple of minutes)

  • UNDER_REVIEW — under manual compliance review; the customer is being reviewed by our team and is NOT yet cleared. Unlike IN_PROGRESS (automated, usually a couple of minutes), this can take up to 24 hours. Keep polling; treat as not cleared.

  • VERIFIED — verification passed; the customer is approved

  • FAILED — verification could not be completed due to an error

  • VERIFICATION_REJECTED — verification completed with a rejection outcome

Non-terminal states (NOT_INITIATED, PENDING_DOCUMENTS, IN_PROGRESS, UNDER_REVIEW) mean the customer is not cleared yet — keep polling. A manual compliance review is now surfaced as the friendly UNDER_REVIEW (the internal review-state name is still never exposed) so you can tell a long human review apart from a quick automated check and set the right expectation with your customer.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
Query parameters
verification_idstringOptional

Optional verification session ID. If not provided, the latest verification session for the user will be checked.

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Responses
200

Successfully retrieved verification status

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}/verification-status
GET /api/v1/partner/users/{user_uuid}/verification-status HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "status": "IN_PROGRESS",
    "verification_url": "https://verify.example.com/session/abc123",
    "verification_seconds_left": 3600
  }
}

Payment details for a partner user

get
/api/v1/partner/users/{user_uuid}/payment-details

Retrieve all payment details (payment profiles) for a partner user. Returns all saved beneficiary details that can be used for offramp operations. Partners can only access their own users.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
Responses
200

Successfully retrieved payment details

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}/payment-details
GET /api/v1/partner/users/{user_uuid}/payment-details HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": [
    {
      "payment_details_id": "987",
      "rail": "nip-nigeria",
      "currency": "NGN",
      "institution_name": "Guaranty Trust Bank",
      "institution_id": "guaranty-trust-bank",
      "details": {
        "account_number": "0123456789"
      }
    }
  ]
}

Create payment details for a partner user

post
/api/v1/partner/users/{user_uuid}/payment-details

Create payment details (beneficiary details) for a partner user. Used for offramp operations where crypto is converted to fiat and sent to the user's payment account. Partners can only access their own users.

Payment details must belong to the same beneficiary represented by user_uuid. Do not attach phone numbers, bank accounts, wallets, or other payout instruments for unrelated people to the same partner user. If you need to pay a different person, create a separate partner user for that beneficiary first.

Institution handling:

  • for most rails, institution_id must be provided from /api/v1/supported/institutions

  • partners may omit institution_id only for the explicitly supported rails below

Currently supported omission rails:

  • iban-sepa, nip-nigeria, faster-payments — resolve to the generic other-bank payment method

  • imps-neft-india — resolves to the generic imps-or-neft-transfer method; the bank comes from bank_name + ifsc_code

  • alipay-wallet, wechat-wallet, interac-e-transfer — resolve to the rail's own institution (alipay, wechat-pay, interac-e-transfers) and go through the same checks as if you had sent it

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
Body

Conditional request schema for partner payment details. institution_id may be omitted for iban-sepa, nip-nigeria, and imps-neft-india.

or
Responses
201

Payment details created successfully

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
post/api/v1/partner/users/{user_uuid}/payment-details
POST /api/v1/partner/users/{user_uuid}/payment-details HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 124

{
  "currency": "EUR",
  "rail": "iban-sepa",
  "country_code": "DE",
  "details": {
    "full_name": "John Doe",
    "iban": "DE89370400440532013000"
  }
}
{
  "success": true,
  "data": {
    "payment_details_id": "987",
    "rail": "nip-nigeria",
    "currency": "NGN",
    "institution_name": "Guaranty Trust Bank",
    "institution_id": "guaranty-trust-bank",
    "details": {
      "account_number": "0123456789"
    }
  }
}

Get a single payment detail for a partner user

get
/api/v1/partner/users/{user_uuid}/payment-details/{payment_details_id}

Retrieve one payment detail (payment profile) by its payment_details_id, returning the same shape as one element of the list endpoint (rail, currency, institution_name, institution_id, details).

Use this when you already hold a payment_details_id instead of listing every payment detail for the user — it stays fast on accounts with many saved payment details.

Partners can only access their own users. A payment detail that belongs to a different user (or another partner) returns 404 rather than revealing that it exists.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
payment_details_idstringRequired

The payment_details_id returned when creating or listing payment details.

Example: 987
Responses
200

Successfully retrieved the payment detail

application/json
successbooleanRequired

Indicates if the request was successful

Example: true
get/api/v1/partner/users/{user_uuid}/payment-details/{payment_details_id}
GET /api/v1/partner/users/{user_uuid}/payment-details/{payment_details_id} HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "payment_details_id": "987",
    "rail": "nip-nigeria",
    "currency": "NGN",
    "institution_name": "Guaranty Trust Bank",
    "institution_id": "guaranty-trust-bank",
    "details": {
      "account_number": "0123456789"
    }
  }
}

Delete payment details for a partner user

delete
/api/v1/partner/users/{user_uuid}/payment-details/{payment_details_id}

Delete a specific payment details (payment profile) for a partner user by its ID. Partners can only access their own users.

Authorizations
X-API-KeystringRequired

Partner API key for authentication. Required for all partner account endpoints.

Path parameters
user_uuidstring · uuidRequired

The user_uuid returned by POST /partner/users. Partners can only access their own users.

Example: 550e8400-e29b-41d4-a716-446655440000
payment_details_idstringRequired

The payment_details_id returned when creating payment details.

Example: 987
Responses
200

Payment details deleted successfully

application/json
successbooleanOptionalExample: true
delete/api/v1/partner/users/{user_uuid}/payment-details/{payment_details_id}
DELETE /api/v1/partner/users/{user_uuid}/payment-details/{payment_details_id} HTTP/1.1
Host: api-staging.unigox.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "message": "Payment details deleted successfully"
  }
}

Last updated