# Countries Source: https://docs.xwift.africa/api-reference/account/countries POST /account/countries List countries available to the partner. Returns `id`, `name`, `currency_code`, and `phone_code` for each country. ```bash theme={null} curl -X POST "{{base_url}}/account/countries" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` # Crypto balance Source: https://docs.xwift.africa/api-reference/account/crypto-balance POST /account/wallet/crypto/balance On-chain balance of the partner wallet for a network. Reads live balances from the partner wallet created on the [partner portal](https://merchant.xwift.africa). Omit `asset` to return every asset on that network. **network** `string` *required* Chain to query. Case-insensitive. Accepted values and aliases are in the table below. **asset** `string` Optional token symbol, such as `USDC` or `ETH`. When set, only that asset is returned. Must be supported on `network`. **data.network** `string` Normalized chain name, such as `BASE` or `SOLANA`. **data.address** `string` Partner wallet address used for the query. **data.balances** `array` One entry per asset. Each item has `asset`, `asset_type` (`native` or `stablecoin`), and `balance`. ### Networks and assets EVM networks (`CELO`, `BASE`, `BNB`, `POLYGON`, `ARBITRUM`, `AVALANCHE`, `ETHEREUM`) use the portal **ERC-20** wallet. Solana and Stellar use their own wallets. | Network | Aliases | Assets | | - | - | - | | `CELO` | `celo` | `CELO`, `USDT`, `USDC`, `cUSD` | | `BASE` | `base` | `ETH`, `USDC` | | `BNB` | `bnb`, `bsc`, `binance smart chain` | `BNB`, `USDT`, `USDC` | | `POLYGON` | `polygon`, `matic` | `POL`, `MATIC`, `USDT`, `USDC` | | `ARBITRUM` | `arbitrum`, `arb` | `ETH`, `USDT`, `USDC` | | `AVALANCHE` | `avalanche`, `avax` | `AVAX`, `USDT`, `USDC` | | `ETHEREUM` | `ethereum`, `eth` | `ETH`, `USDT`, `USDC` | | `SOLANA` | `solana`, `sol` | `SOL`, `USDT`, `USDC` | | `STELLAR` | `stellar`, `xlm` | `XLM`, `USDC` | ### Errors | Status | Message | When | | - | - | - | | `400` | Validation message | Missing `network` | | `400` | `Unauthorized` | API key does not match a partner | | `400` | `Unsupported network. Allowed networks: ...` | Unknown chain | | `400` | `Unsupported asset {ASSET} on {CHAIN}. Allowed: ...` | Asset is not on that chain | | `400` | `No {wallet} wallet found. Create one on the partner portal first.` | No ERC-20, Solana, or Stellar wallet for the chain | | `400` | `Failed to query balance. Try again later!` | On-chain balance lookup failed | ```bash theme={null} curl -X POST "{{base_url}}/account/wallet/crypto/balance" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"network":"BASE","asset":"USDC"}' ``` ```json theme={null} { "code": 200, "message": "On-chain balance", "data": { "network": "BASE", "address": "0x...", "balances": [ { "asset": "USDC", "asset_type": "stablecoin", "balance": 1250.5 } ] } } ``` # Crypto transfer Source: https://docs.xwift.africa/api-reference/account/crypto-transfer POST /account/crypto/transfer Send crypto from the partner wallet to an external address. Sends `amount` of `asset` from the partner wallet for that network to `address`. The wallet must already exist on the [partner portal](https://merchant.xwift.africa) — ERC-20 for EVM chains, or a Solana / Stellar wallet for those chains. Supported networks and assets match [Crypto balance](/api-reference/account/crypto-balance#networks-and-assets). **address** `string` *required* Destination address on `network`. **amount** `number` *required* Amount to send. Must be greater than `0`. **asset** `string` *required* Token symbol, such as `USDC` or `SOL`. Must be supported on `network`. **network** `string` *required* Chain to send on. Case-insensitive. Same aliases as [Crypto balance](/api-reference/account/crypto-balance#networks-and-assets). **memo** `string` Optional Stellar memo, up to 28 characters. Sent only when `network` resolves to `STELLAR`. Ignored on other chains. **data.reference** `string` Pretium withdrawal reference (UUID). **data.amount** `number` Amount submitted. **data.asset** `string` Normalized asset symbol. **data.asset\_type** `string` `native` or `stablecoin`. **data.network** `string` Normalized chain name. **data.address** `string` Destination address. **data.transaction\_hash** `string` On-chain transaction hash when the signer returns one. ### Errors | Status | Message | When | | - | - | - | | `400` | Validation message | Missing fields, `amount` not greater than `0`, or `memo` longer than 28 characters | | `400` | `Unauthorized` | API key does not match a partner | | `400` | `Unsupported network. Allowed networks: ...` | Unknown chain | | `400` | `Unsupported asset {ASSET} on {CHAIN}. Allowed: ...` | Asset is not on that chain | | `400` | `No {wallet} wallet found. Create one on the partner portal first.` | No ERC-20, Solana, or Stellar wallet for the chain | | `400` | `Failed to initiate {ASSET} transfer on {CHAIN}` | Signer rejected the transfer. A chain error detail is appended when one is returned | ```bash theme={null} curl -X POST "{{base_url}}/account/crypto/transfer" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"network":"BASE","asset":"USDC","amount":25,"address":"0x..."}' ``` ```json theme={null} { "code": 200, "message": "BASE USDC transfer initiated successfully.", "data": { "reference": "7c1e2a40-6b3d-4f1a-9c2e-1a0b8d4e6f21", "amount": 25, "asset": "USDC", "asset_type": "stablecoin", "network": "BASE", "address": "0x...", "transaction_hash": "0x..." } } ``` # Account detail Source: https://docs.xwift.africa/api-reference/account/detail POST /account/detail Partner profile, wallets, networks, and checkout key. No body required. **data.id** `number` Partner id. **data.name** `string` Partner name. **data.email** `string` Partner email. **data.status** `string` `ACTIVE` or `DEACTIVATED`. **data.checkout\_key** `string` Key for `/v1/checkout` routes. **data.wallets** `array` Fiat account balances by country. Each wallet includes `balance`, `available_balance`, `current_balance`, `currency`, and `country_name`. See [Wallet balance](/api-reference/account/wallet). **data.networks** `array` Supported settlement networks and assets. ```bash theme={null} curl -X POST "{{base_url}}/account/detail" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` # Account FX convert Source: https://docs.xwift.africa/api-reference/account/exchange-rate POST /account/exchange-rate Convert an amount using selling or buying rate direction. Provide either a selling-rate conversion or a buying-rate conversion. ### Selling (`from` fiat → quote) **selling\_rate** `number` Amount in the `from` currency. **from** `string` Source currency code. ### Buying (`to` fiat ← quote) **buying\_rate** `number` Amount toward the `to` currency. **to** `string` Destination currency code. Response includes `from`, `to`, and computed `rate`. ```bash theme={null} curl -X POST "{{base_url}}/account/exchange-rate" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"selling_rate":100,"from":"KES"}' ``` # Fund wallet Source: https://docs.xwift.africa/api-reference/account/fund POST /account/fund Get FX rate and settlement wallets for topping up a fiat wallet with crypto. First step of wallet funding. Returns the current FX rate and Pretium settlement addresses per network. Send stablecoin to one of those addresses, then call [Fund confirm](/api-reference/account/fund-confirm). **currency\_code** `string` *required* Fiat wallet currency such as `KES` or `UGX` (case-insensitive). **data.currency\_code** `string` Currency code of the wallet being funded. **data.selling\_rate** `number` Current FX rate for the market. Confirm credits use the rate at confirmation time. **data.networks** `array` Settlement options. Each item has `network`, `settlement_wallet_address`, and `assets`. ### Supported networks & assets | Network | Assets | | - | - | | `BASE` | `USDC` | | `ETHEREUM` | `USDT`, `USDC` | | `SOLANA` | `USDT`, `USDC` | | `CELO` | `USDT`, `USDC` | ### Errors | Status | Message | When | | - | - | - | | `400` | Validation message | Missing `currency_code` | | `400` | `Country not supported.` | Unknown currency | | `404` | `Wallet not found!` | No partner wallet for that currency | ```bash theme={null} curl -X POST "{{base_url}}/account/fund" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"currency_code":"KES"}' ``` ```json theme={null} { "code": 200, "message": "Fund wallet details", "data": { "currency_code": "KES", "selling_rate": 131.2, "networks": [ { "network": "BASE", "settlement_wallet_address": "0x...", "assets": ["USDC"] }, { "network": "CELO", "settlement_wallet_address": "0x...", "assets": ["USDT", "USDC"] } ] } } ``` # Fund confirm Source: https://docs.xwift.africa/api-reference/account/fund-confirm POST /account/fund/confirm Verify an on-chain deposit and credit the partner fiat wallet. Second step of wallet funding. After transferring USDC or USDT to a settlement address from [Fund wallet](/api-reference/account/fund), submit the transaction hash. Pretium verifies the transfer on-chain, converts at the current FX rate, and credits your fiat balance. Amount and asset are read from the chain — do not send them in the body. **currency\_code** `string` *required* Fiat wallet currency such as `KES` or `UGX` (case-insensitive). **network** `string` *required* Chain of the deposit: `BASE`, `CELO`, `SOLANA` (`sol`), or `ETHEREUM` (`eth`). Case-insensitive. **transaction\_hash** `string` *required* On-chain transaction hash. Must not have been processed before. **data.currency\_code** `string` Credited wallet currency. **data.amount** `number` Fiat amount credited (`amount_in_usd × rate`). **data.amount\_in\_usd** `number` Stablecoin amount detected on-chain. **data.buying\_rate** `number` FX rate used for the conversion. **data.asset** `string` Token received (`USDC` or `USDT`). **data.network** `string` Normalized chain name. **data.transaction\_hash** `string` Confirmed transaction hash. **data.balance** `number` Fiat wallet balance after the credit. ### Supported networks & assets | Network | Assets | | - | - | | `BASE` | `USDC` | | `ETHEREUM` | `USDT`, `USDC` | | `SOLANA` | `USDT`, `USDC` | | `CELO` | `USDT`, `USDC` | ### Errors | Status | Message | When | | - | - | - | | `400` | Validation message | Missing required fields | | `400` | `Country not supported.` | Unknown currency | | `400` | `Unsupported network. Allowed networks: Base, Celo, Solana, Ethereum` | Invalid network | | `400` | `Settlement wallet not configured for this network.` | No funding wallet for chain | | `400` | `This transaction hash has already been processed.` | Hash already used | | `400` | `Transaction not complete on-chain. Try again.` | On-chain status is not success | | `400` | `This transaction was not done to Pretium wallet address.` | Transfer not to settlement wallet | | `400` | `{CHAIN} {TOKEN} token not supported at the moment.` | Unsupported asset on that chain | | `400` | `Wallet not found!` | No partner wallet for that currency | ```bash theme={null} curl -X POST "{{base_url}}/account/fund/confirm" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "currency_code": "KES", "network": "BASE", "transaction_hash": "0xabc123..." }' ``` ```json theme={null} { "code": 200, "message": "FIAT wallet credited successfully.", "data": { "currency_code": "KES", "amount": 12950.0, "amount_in_usd": 100.0, "buying_rate": 129.5, "asset": "USDC", "network": "BASE", "transaction_hash": "0xabc123...", "balance": 50000.0 } } ``` # Networks Source: https://docs.xwift.africa/api-reference/account/networks POST /account/networks Supported blockchain networks and assets. Each network includes name, icon, settlement wallet address, checkout status, and assets. ```bash theme={null} curl -X POST "{{base_url}}/account/networks" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` # Get transaction Source: https://docs.xwift.africa/api-reference/account/transaction POST /account/{country_code}/transaction Fetch one transaction by code under a country namespace. **country\_code** `string` *required* e.g. `kes`, `ugx`, `ngn`, `zmw`, `mwk`, `cdf` (others fall back to KES store). **transaction\_code** `string` *required* Transaction code to look up. ```bash theme={null} curl -X POST "{{base_url}}/account/kes/transaction" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"transaction_code":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}' ``` # List account transactions Source: https://docs.xwift.africa/api-reference/account/transactions POST /account/{country_code}/transactions List transactions for a country with optional date filters. **country\_code** `string` *required* Country code segment, e.g. `kes`. **start\_date** `string` Optional start date. **end\_date** `string` Optional end date. ```bash theme={null} curl -X POST "{{base_url}}/account/kes/transactions" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` # Wallet balance Source: https://docs.xwift.africa/api-reference/account/wallet POST /account/wallet/{country_id} Fiat wallet balance for a country, including available and current balance. **country\_id** `integer` *required* Country id `1`–`10` (see [API overview](/api-reference/overview#country-ids-account-wallet)). Returns the fiat wallet for that country. The same balance fields are included on each item in `data.wallets` from [Account detail](/api-reference/account/detail). **data.id** `number` Wallet id. **data.balance** `number` Spendable fiat amount. Same value as `available_balance`. **data.available\_balance** `number` Amount available to spend. Same value as `balance`. **data.current\_balance** `number` Reserved amount on the wallet. `null` when no reserved amount is set. **data.currency** `string` Currency code, such as `KES`. **data.country\_name** `string` Country name. ### Errors | Status | Message | When | | - | - | - | | `404` | `Wallet not found!` | No partner wallet for that country | On-chain balances use [Crypto balance](/api-reference/account/crypto-balance). Sending crypto out uses [Crypto transfer](/api-reference/account/crypto-transfer). ```bash theme={null} curl -X POST "{{base_url}}/account/wallet/1" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` ```json theme={null} { "code": 200, "message": "Wallet Balance", "data": { "id": 12, "balance": 50000, "available_balance": 50000, "current_balance": null, "currency": "KES", "country_name": "Kenya" } } ``` # Bank info Source: https://docs.xwift.africa/api-reference/banks/bank-info POST /{currency_code}/bank-infor Resolve a bank account number to the registered account name. Resolves a bank account and returns the registered account name. Available for **`kes`** and **`ngn`**. **currency\_code** `string` *required* Lowercase market prefix, e.g. `kes`. **account\_number** `string` *required* Bank account number to look up. **bank\_code** `string` *required* Bank code from [List banks](/api-reference/banks/banks). ```bash theme={null} curl -X POST "{{base_url}}/kes/bank-infor" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "account_number": "001918181", "bank_code": "247247" }' ``` ```json 200 Success theme={null} { "code": 200, "message": "Bank Information", "data": { "account_name": "JOHN DOE", "account_number": "001918181", "bank_name": "Equity Bank", "bank_code": "247247" } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` # Bank transfer Source: https://docs.xwift.africa/api-reference/banks/bank-transfer POST /{currency_code}/bank-transfer Settle a wallet-funded disbursement to a recipient bank account. Settles a disbursement to a recipient bank account from your Pretium wallet balance. Track it afterwards with [`POST /{currency_code}/status`](/api-reference/countries/collection-and-disbursement#status) using the returned `transaction_code`. **currency\_code** `string` *required* Lowercase market prefix, e.g. `kes`. **amount** `number` *required* Amount to transfer. For `kes` the allowed range is **100 – 250,000**. **account\_number** `string` *required* Recipient bank account number. **bank\_code** `string` *required* Bank code from [List banks](/api-reference/banks/banks). **callback\_url** `string` Optional URL for payment notification. **reference** `string` Optional unique reference used as the `transaction_code`. Auto-generated if omitted. ```bash theme={null} curl -X POST "{{base_url}}/kes/bank-transfer" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount": 500, "account_number": "001918181", "bank_code": "247247", "callback_url": "https://example.com/hooks/pretium" }' ``` ```json 200 Success theme={null} { "code": 200, "message": "Message", "data": { "status": "PENDING", "transaction_code": "045c1753-4e5b-4fa8-997b-ee52b78a96fa", "message": "Success! Processing payment..." } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` # List banks Source: https://docs.xwift.africa/api-reference/banks/banks POST /{currency_code}/banks List banks supported for a currency. **currency\_code** `string` *required* Lowercase market prefix, e.g. `kes`. No request body is required. Use the returned `Code` as `bank_code` in [Bank info](/api-reference/banks/bank-info) and [Bank transfer](/api-reference/banks/bank-transfer) requests. ```bash theme={null} curl -X POST "{{base_url}}/kes/banks" \ -H "x-api-key: YOUR_CONSUMER_KEY" ``` ```json 200 Success theme={null} { "code": 200, "message": "Supported banks", "data": [ { "Code": "247247", "Name": "Equity Bank" } ] } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` # Create card Source: https://docs.xwift.africa/api-reference/cards/create POST /card/create Issue one USD virtual card for online checkout and load the opening amount. Issues one virtual card in **USD** for online checkout and loads `amount` onto it. Each cardholder can have one card. `is_non_subscription` controls auto-renewal. Leave it `true` (the default) to block recurring charges. Set it to `false` when a merchant should be able to store the card and bill it again, such as a streaming or SaaS plan. Contactless is off for cards created here. The response includes `card_number` and `security_code`. See the [card object](/guides/cards#card-object). **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). **amount** `number` *required* Opening balance in USD. Must be greater than `0.9`. **brand** `string` *required* `visa` or `mastercard`. **title** `string` Display title. Defaults to the cardholder's full name. **color** `string` `blue`, `black`, `purple`, `orange`, or `yellow`. Defaults to `black`. **is\_non\_subscription** `boolean` `true` (default) blocks merchant auto-renewal. `false` allows a merchant to charge the card again when a subscription renews. ### Errors | Message | When | | - | - | | First validator error | `user_id` is missing, `amount` is not greater than `0.9`, or `brand` / `color` is invalid | | `Card user not found.` | `user_id` is unknown, or the cardholder was not provisioned | | `Card user already has a card.` | This cardholder already has a card | | `An unexpected error occurred. Please try again.` | The card could not be issued | ```bash theme={null} curl -X POST "{{base_url}}/card/create" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "amount": 25, "brand": "visa", "title": "Ada Lovelace", "color": "black", "is_non_subscription": true }' ``` ```json theme={null} { "code": 200, "message": "Card created.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "25.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": { "address": "1 Market Street", "city": "Nairobi", "state": "Nairobi", "zip_code": "00100", "country": "KE" }, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T08:00:00+00:00", "card_number": "4242424242424242", "security_code": "123" } } ``` # Create card user Source: https://docs.xwift.africa/api-reference/cards/create-user POST /card/create-user Register a cardholder and receive the user_id used by the other card endpoints. Creates a cardholder on your partner account. Email and ID number must not already be registered. Use `data.user_id` when you [create a card](/api-reference/cards/create). **first\_name** `string` *required* Cardholder given name. **last\_name** `string` *required* Cardholder family name. **email** `string` *required* Email address. Must be unique. **phone** `string` *required* Phone number. **country** `string` *required* Country. **state** `string` *required* State or region. **city** `string` *required* City. **address** `string` *required* Street address. **zip\_code** `string` *required* Postal code. **id\_type** `string` *required* `National_ID`, `Passport`, or `Driving_License`. **id\_number** `string` *required* Government ID number. Must be unique. The response is a short [card user](/guides/cards#card-user-object): `user_id`, `email`, and `name`. Address and ID fields are stored and are not echoed back. ### Errors | Message | When | | - | - | | First validator error | A required field is missing, `email` is not an email, or `id_type` is not one of the allowed values | | `The email has already been taken.` | Email is already registered | | `The id number has already been taken.` | ID number is already registered | | `An unexpected error occurred. Please try again.` | The cardholder could not be created | ```bash theme={null} curl -X POST "{{base_url}}/card/create-user" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "first_name": "Ada", "last_name": "Lovelace", "email": "ada@example.com", "phone": "254712345678", "country": "KE", "state": "Nairobi", "city": "Nairobi", "address": "1 Market Street", "zip_code": "00100", "id_type": "National_ID", "id_number": "A12345678" }' ``` ```json theme={null} { "code": 200, "message": "Card user created.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "email": "ada@example.com", "name": "Ada Lovelace" } } ``` # Edit card user Source: https://docs.xwift.africa/api-reference/cards/edit-user POST /card/edit-user Update a cardholder's phone, address, and identity document. Updates phone, address, and identity fields for a cardholder that belongs to your partner account. `first_name`, `last_name`, and `email` cannot be changed here. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). **phone** `string` *required* Phone number. **country** `string` *required* Country. **state** `string` *required* State or region. **city** `string` *required* City. **address** `string` *required* Street address. **zip\_code** `string` *required* Postal code. **id\_type** `string` *required* `National_ID`, `Passport`, or `Driving_License`. **id\_number** `string` *required* Government ID number. Must not belong to a different cardholder. The response is a short [card user](/guides/cards#card-user-object): `user_id`, `email`, and `name`. ### Errors | Message | When | | - | - | | First validator error | A required field is missing or `id_type` is invalid | | `Card user not found.` | `user_id` is missing for this partner | | `Card user can't be edited because a card has not been created. Create a card first.` | The cardholder has no issuer profile | | `The id number has already been taken.` | ID number belongs to another cardholder | | `An unexpected error occurred. Please try again.` | The update could not be completed | ```bash theme={null} curl -X POST "{{base_url}}/card/edit-user" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "phone": "254712345678", "country": "KE", "state": "Nairobi", "city": "Nairobi", "address": "10 Riverside Drive", "zip_code": "00100", "id_type": "Passport", "id_number": "P987654321" }' ``` ```json theme={null} { "code": 200, "message": "Card user updated.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "email": "ada@example.com", "name": "Ada Lovelace" } } ``` # Freeze card Source: https://docs.xwift.africa/api-reference/cards/freeze POST /card/freeze Block spending on a cardholder's open card. Freezes the cardholder's open card. Status becomes `frozen`. Unfreeze with [POST /card/unfreeze](/api-reference/cards/unfreeze). The response is a [card object](/guides/cards#card-object) without `card_number` or `security_code`. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). ### Errors | Message | When | | - | - | | `The user id field is required.` | `user_id` is missing | | `Card user not found.` | `user_id` is missing for this partner | | `Card not found.` | The cardholder has no open card | | `Partner not found.` | The API key does not match a partner | | `An unexpected error occurred. Please try again.` | The card could not be frozen | ```bash theme={null} curl -X POST "{{base_url}}/card/freeze" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"}' ``` ```json theme={null} { "code": 200, "message": "Card frozen successfully.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "25.00", "status": "frozen", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": null, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T09:20:00+00:00" } } ``` # Fund card Source: https://docs.xwift.africa/api-reference/cards/fund POST /card/fund Add funds to a cardholder's open USD card. Credits `amount` to the cardholder's open card. The card currency is USD for cards issued by [create card](/api-reference/cards/create). The response is a [card object](/guides/cards#card-object) without `card_number` or `security_code`. `balance` is the balance after the credit. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). **amount** `number` *required* Amount to add, in the card currency. ### Errors | Message | When | | - | - | | First validator error | `user_id` is missing or `amount` is not a number | | `Card user not found.` | `user_id` is missing for this partner | | `Card not found.` | The cardholder has no open card | | `Partner not found.` | The API key does not match a partner | | `An unexpected error occurred. Please try again.` | The card could not be funded | ```bash theme={null} curl -X POST "{{base_url}}/card/fund" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "amount": 10 }' ``` ```json theme={null} { "code": 200, "message": "Card funded successfully.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "35.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": null, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T09:00:00+00:00" } } ``` # Get card Source: https://docs.xwift.africa/api-reference/cards/get POST /card/get-card Fetch one cardholder's live card, including balance, spend, card number, and security code. Loads the cardholder's current card from the issuer and returns it with `card_number`, `security_code`, and `total_card_spend`. Closed cards (`terminated` or `terminating`) are not returned. Use [transactions](/api-reference/cards/transactions) for history on a closed card. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). **data.total\_card\_spend** `number` Total spend reported for the card. ### Errors | Message | When | | - | - | | `Card user not found.` | `user_id` is missing for this partner | | `Card not found.` | The cardholder has no open card | | `Partner not found.` | The API key does not match a partner | | `An unexpected error occurred. Please try again.` | The issuer could not return the card | ```bash theme={null} curl -X POST "{{base_url}}/card/get-card" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"}' ``` ```json theme={null} { "code": 200, "message": "Card information.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "25.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": { "address": "1 Market Street", "city": "Nairobi", "state": "Nairobi", "zip_code": "00100", "country": "KE" }, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T08:05:00+00:00", "total_card_spend": 0, "card_number": "4242424242424242", "security_code": "123" } } ``` # List cards Source: https://docs.xwift.africa/api-reference/cards/list POST /card/all List virtual cards for your partner account, including card number and security code. Returns cards for the authenticated partner, newest first. Each card includes `card_number` and `security_code`. See the [card object](/guides/cards#card-object). **page** `integer` Page number, starting at `1`. Defaults to `1`. **limit** `integer` Page size. Must be at least `1`. Defaults to `20`. **data.cards** `array` [Card objects](/guides/cards#card-object), including `card_number` and `security_code`. **data.page** `integer` Page that was returned. **data.limit** `integer` Page size that was applied. **data.total** `integer` Total cards for this partner. ```bash theme={null} curl -X POST "{{base_url}}/card/all" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"page": 1, "limit": 20}' ``` ```json theme={null} { "code": 200, "message": "All cards.", "data": { "cards": [ { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "25.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": null, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T08:00:00+00:00", "card_number": "4242424242424242", "security_code": "123" } ], "page": 1, "limit": 20, "total": 1 } } ``` # Terminate card Source: https://docs.xwift.africa/api-reference/cards/terminate POST /card/terminate Close a card by issuer card id. Closes a card. This call takes `card_id`, the issuer card id. The other card endpoints identify the card with `user_id`, and the [card object](/guides/cards#card-object) does not include `card_id`. `data` is the issuer result and may be `null`. It is not a card object. **card\_id** `string` *required* Issuer card id. ### Errors | Message | When | | - | - | | `The card id field is required.` | `card_id` is missing | | `An unexpected error occurred. Please try again.` | The card could not be terminated | ```bash theme={null} curl -X POST "{{base_url}}/card/terminate" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"card_id": "issuer-card-id"}' ``` ```json theme={null} { "code": 200, "message": "Card terminated successfully.", "data": null } ``` # Card transactions Source: https://docs.xwift.africa/api-reference/cards/transactions POST /card/transactions List issuer activity for a cardholder's card, including a closed card. Returns activity for the cardholder's card. Unlike [get card](/api-reference/cards/get), this still resolves a `terminated` or `terminating` card. `type` and `status` on each row are the issuer's values, lowercased. `page`, `limit`, and `total` are included when the issuer returns them. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). **query** `string` Optional search string forwarded to the issuer. **from** `string` Optional start of the range, forwarded to the issuer. **to** `string` Optional end of the range, forwarded to the issuer. **type** `string` Optional transaction type filter, forwarded to the issuer. **status** `string` Optional status filter, forwarded to the issuer. **data.user\_id** `string` Cardholder id. **data.transactions** `array` Rows with `date`, `type`, `status`, `amount`, `currency`, `balance_before`, `balance_after`, `authorization` (`amount` and `currency`, or `null`), `created_at`, and `processed_at`. ### Errors | Message | When | | - | - | | `Card user not found.` | `user_id` is missing for this partner | | `Card not found.` | The cardholder has no card | | `Partner not found.` | The API key does not match a partner | | `An unexpected error occurred. Please try again.` | Transactions could not be loaded | ```bash theme={null} curl -X POST "{{base_url}}/card/transactions" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "from": "2026-11-01", "to": "2026-11-07" }' ``` ```json theme={null} { "code": 200, "message": "Card transactions.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "transactions": [ { "date": "2026-11-07", "type": "debit", "status": "successful", "amount": "12.50", "currency": "USD", "balance_before": "25.00", "balance_after": "12.50", "authorization": { "amount": "12.50", "currency": "USD" }, "created_at": "2026-11-07T08:30:00Z", "processed_at": "2026-11-07T08:30:02Z" } ] } } ``` # Unfreeze card Source: https://docs.xwift.africa/api-reference/cards/unfreeze POST /card/unfreeze Restore spending on a frozen card. Unfreezes the cardholder's open card. Status becomes `active`. The response is a [card object](/guides/cards#card-object) without `card_number` or `security_code`. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). ### Errors | Message | When | | - | - | | `The user id field is required.` | `user_id` is missing | | `Card user not found.` | `user_id` is missing for this partner | | `Card not found.` | The cardholder has no open card | | `Partner not found.` | The API key does not match a partner | | `An unexpected error occurred. Please try again.` | The card could not be unfrozen | ```bash theme={null} curl -X POST "{{base_url}}/card/unfreeze" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"}' ``` ```json theme={null} { "code": 200, "message": "Card unfrozen successfully.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "25.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": null, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T09:30:00+00:00" } } ``` # List card users Source: https://docs.xwift.africa/api-reference/cards/users POST /card/users List cardholders for your partner account, with their cards. Returns cardholders for the authenticated partner, newest first. Nested cards omit `card_number` and `security_code`. ID type and ID number are not included. **page** `integer` Page number, starting at `1`. Defaults to `1`. **limit** `integer` Page size. Must be at least `1`. Defaults to `20`. **data.users** `array` Cardholders. Each item has `user_id`, `email`, `name`, `phone`, `country`, `state`, `city`, `address`, `zip_code`, and `cards`. **data.page** `integer` Page that was returned. **data.limit** `integer` Page size that was applied. **data.total** `integer` Total cardholders for this partner. ```bash theme={null} curl -X POST "{{base_url}}/card/users" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"page": 1, "limit": 20}' ``` ```json theme={null} { "code": 200, "message": "Card users.", "data": { "users": [ { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "email": "ada@example.com", "name": "Ada Lovelace", "phone": "254712345678", "country": "KE", "state": "Nairobi", "city": "Nairobi", "address": "1 Market Street", "zip_code": "00100", "cards": [ { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "25.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": { "address": "1 Market Street", "city": "Nairobi", "state": "Nairobi", "zip_code": "00100", "country": "KE" }, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T08:00:00+00:00" } ] } ], "page": 1, "limit": 20, "total": 1 } } ``` # Withdraw from card Source: https://docs.xwift.africa/api-reference/cards/withdraw POST /card/withdraw Debit a cardholder's open card. Amount must be greater than 0.9. Debits `amount` from the cardholder's open card. `amount` must be greater than `0.9`. The response is a [card object](/guides/cards#card-object) without `card_number` or `security_code`. `balance` is the balance after the debit. **user\_id** `string` *required* Cardholder id returned by [create card user](/api-reference/cards/create-user). **amount** `number` *required* Amount to remove, in the card currency. Must be greater than `0.9`. ### Errors | Message | When | | - | - | | First validator error | `user_id` is missing or `amount` is not greater than `0.9` | | `Card user not found.` | `user_id` is missing for this partner | | `Card not found.` | The cardholder has no open card | | `Card has insufficient balance.` | The card cannot cover `amount` | | `Partner not found.` | The API key does not match a partner | | `An unexpected error occurred. Please try again.` | The withdrawal could not be completed | ```bash theme={null} curl -X POST "{{base_url}}/card/withdraw" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "amount": 10 }' ``` ```json theme={null} { "code": 200, "message": "Card withdrawn successfully.", "data": { "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "title": "Ada Lovelace", "color": "black", "name": "ADA LOVELACE", "brand": "visa", "currency": "USD", "balance": "15.00", "status": "active", "mask": "424242******4242", "last4": "4242", "expiration": "12/28", "is_non_subscription": true, "is_contactless_payment": false, "is_physical": false, "billing_address": null, "last_used_on": null, "created_at": "2026-11-07T08:00:00+00:00", "updated_at": "2026-11-07T09:10:00+00:00" } } ``` # Create checkout Source: https://docs.xwift.africa/api-reference/checkout/create POST /v1/checkout/ Create a short-lived settlement order. Uses the partner **checkout key** as `x-api-key`. Parameters are passed as **query params**. Orders expire in about **7 minutes**. **network** `string` *required* Settlement network name. **asset** `string` *required* Asset symbol (e.g. `USDC`, `USDT`). **currency\_code** `string` *required* Fiat currency context, e.g. `KES`. **amount** `number` *required* Order amount. **order\_id** `string` *required* Your unique order identifier. Response includes settlement `address`, `rate`, USD `amount`, and `expires_in`. ```bash theme={null} curl -X POST "{{base_url}}/v1/checkout/?network=CELO&asset=USDT¤cy_code=KES&amount=1000&order_id=order_123" \ -H "x-api-key: YOUR_CHECKOUT_KEY" ``` # Checkout networks Source: https://docs.xwift.africa/api-reference/checkout/networks POST /v1/checkout/networks List networks available for checkout settlement. Auth: **checkout key**. No parameters required. Returns a networks resource (names, assets, settlement details). ```bash theme={null} curl -X POST "{{base_url}}/v1/checkout/networks" \ -H "x-api-key: YOUR_CHECKOUT_KEY" ``` # Confirm checkout payment Source: https://docs.xwift.africa/api-reference/checkout/pay POST /v1/checkout/pay Submit the on-chain hash that settles a checkout order. Auth: **checkout key**. **order\_id** `string` *required* Checkout order id. **transaction\_hash** `string` *required* Hash of the settlement transfer. Verifies the transfer on-chain and may trigger auto-settlement (e.g. KES) plus a webhook. ```bash theme={null} curl -X POST "{{base_url}}/v1/checkout/pay?order_id=order_123&transaction_hash=0xabc" \ -H "x-api-key: YOUR_CHECKOUT_KEY" ``` # Checkout status Source: https://docs.xwift.africa/api-reference/checkout/status POST /v1/checkout/status Get checkout order status by order_id. Auth: **checkout key**. Query parameter: **order\_id** `string` *required* Order id from create checkout. Statuses: `PENDING`, `EXPIRED`, `CANCELLED`, `FAILED`, `COMPLETE`. ```bash theme={null} curl -X POST "{{base_url}}/v1/checkout/status?order_id=order_123" \ -H "x-api-key: YOUR_CHECKOUT_KEY" ``` # Collection & disbursement Source: https://docs.xwift.africa/api-reference/countries/collection-and-disbursement Wallet-funded collect and disburse under a currency prefix — same shape as offramp/onramp without transaction_hash. Collection and disbursement work the same way as off-ramp and on-ramp transactions. They use the same request body structure, except `transaction_hash` and `chain` are **not** included. See [Offramp](/guides/offramp) and [Onramp](/guides/onramp) for crypto settlement flows. Base URL: `{{base_url}}` · Auth: consumer `x-api-key` Replace `{currency_code}` with a market prefix such as `kes`, `ugx`, `ngn`, `ghs`, `mwk`, `cdf`, or `etb`. *** ## Disbursement Calls Pretium to release fiat from your partner wallet to the recipient (mobile money, paybill, till, etc.). ``` POST /{currency_code}/disburse ``` **type** `string` *required* `MOBILE`, `BUY_GOODS`, or `PAYBILL` **shortcode** `string` *required* Recipient mobile, till, or paybill number **account\_number** `string` Required if `type` is `PAYBILL` **amount** `number` *required* Amount to disburse **mobile\_network** `string` e.g. `Safaricom` — required when `type` is `MOBILE` **callback\_url** `string` Optional URL for payment notification **fee** `number` Optional partner fee — see [Fee](/fee) ```json Request body theme={null} { "shortcode": "0700123456", "amount": 50, "type": "MOBILE", "mobile_network": "Safaricom", "callback_url": "https://example.com/hooks/pretium" } ``` ```json 200 Success theme={null} { "code": 200, "message": "Message", "data": { "status": "PENDING", "transaction_code": "DDM6D", "message": "Success! Processing payment..." } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` ```bash theme={null} curl -X POST "{{base_url}}/kes/disburse" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "shortcode": "0700123456", "amount": 50, "type": "MOBILE", "mobile_network": "Safaricom" }' ``` *** ## Collection Initiates cash collection from the user (mobile money prompt / similar). ``` POST /{currency_code}/collect ``` **shortcode** `string` *required* Customer mobile number **amount** `number` *required* Amount to collect **mobile\_network** `string` *required* e.g. `Safaricom`, `Airtel` **callback\_url** `string` Optional notification URL **fee** `number` Optional partner fee — see [Fee](/fee) ```json Request body theme={null} { "shortcode": "0743312265", "amount": 20, "mobile_network": "Safaricom", "callback_url": "https://example.com/hooks/pretium" } ``` ```json 200 Success theme={null} { "code": 200, "message": "Disburse initiated", "data": { "status": "PENDING", "transaction_code": "TSALX", "message": "Success! Processing payment." } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` *** ## Banks Three endpoints cover bank payouts: list the supported banks, resolve an account name, then transfer to the account. ### Supported banks List banks supported for the currency. Use the returned `Code` as `bank_code` in the bank info and bank transfer requests. ``` POST /{currency_code}/banks ``` No request body is required. ```json 200 Success theme={null} { "code": 200, "message": "Supported banks", "data": [ { "Code": "247247", "Name": "Equity Bank" } ] } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` ```bash theme={null} curl -X POST "{{base_url}}/kes/banks" \ -H "x-api-key: YOUR_CONSUMER_KEY" ``` ### Bank info Resolves a bank account number and returns the registered account name. Available for **`kes`** and **`ngn`**. ``` POST /{currency_code}/bank-infor ``` **account\_number** `string` *required* Bank account number to look up **bank\_code** `string` *required* Bank code from [`POST /{currency_code}/banks`](#supported-banks) ```json Request body theme={null} { "account_number": "001918181", "bank_code": "247247" } ``` ```json 200 Success theme={null} { "code": 200, "message": "Bank Information", "data": { "account_name": "JOHN DOE", "account_number": "001918181", "bank_name": "Equity Bank", "bank_code": "247247" } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` ```bash theme={null} curl -X POST "{{base_url}}/kes/bank-infor" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "account_number": "001918181", "bank_code": "247247" }' ``` ### Bank transfer Settle a disbursement to a recipient bank account (wallet-funded). Track it afterwards with [`POST /{currency_code}/status`](#status) using the returned `transaction_code`. ``` POST /{currency_code}/bank-transfer ``` **amount** `number` *required* Amount to transfer. For `kes` the allowed range is **100 – 250,000**. **account\_number** `string` *required* Recipient bank account number **bank\_code** `string` *required* Bank code from [`POST /{currency_code}/banks`](#supported-banks) **callback\_url** `string` Optional URL for payment notification **reference** `string` Optional unique reference used as the `transaction_code`. Auto-generated if omitted. ```json Request body theme={null} { "amount": 500, "account_number": "001918181", "bank_code": "247247", "callback_url": "https://example.com/hooks/pretium" } ``` ```json 200 Success theme={null} { "code": 200, "message": "Message", "data": { "status": "PENDING", "transaction_code": "045c1753-4e5b-4fa8-997b-ee52b78a96fa", "message": "Success! Processing payment..." } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` ```bash theme={null} curl -X POST "{{base_url}}/kes/bank-transfer" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount": 500, "account_number": "001918181", "bank_code": "247247" }' ``` *** ## Beneficiary info Looks up the registered name for a mobile-money recipient. Available for **`kes`**, **`ugx`**, **`ghs`**, and **`tzs`**. ``` POST /{currency_code}/user-infor ``` Kenya also accepts `POST /kes/validation` with the same body and response. A confirmed lookup returns `status` `COMPLETE` and `message` `Beneficiary identity confirmed.` When the name cannot be resolved, the request still returns `200` with `status` `FAILED` and `message` `Unable to confirm beneficiary identity.` ### `kes` **shortcode** `string` *required* Phone, till, or paybill number **type** `string` *required* `MOBILE`, `BUY_GOODS`, or `PAYBILL` **network** `string` Required when `type` is `MOBILE`. e.g. `Safaricom`, `Airtel` ### `ugx` **shortcode** `string` *required* Phone number **mobile\_network** `string` *required* `MTN` or `Airtel` ### `tzs` **shortcode** `string` *required* Phone number **mobile\_network** `string` *required* e.g. `Vodacom`, `Airtel`, `Tigo`, `Halopesa` ### `ghs` **shortcode** `string` *required* 10-digit mobile number **bank\_code** `string` *required* Wallet destination code, e.g. `MTN`, `AirtelTigo`, or `Telecel` ```json Request body (kes) theme={null} { "shortcode": "0700123456", "type": "MOBILE", "network": "Safaricom" } ``` ```json 200 Success (kes) theme={null} { "code": 200, "message": "User KYC", "data": { "status": "COMPLETE", "shortcode": "0700123456", "public_name": "JOHN DOE", "name": "JOHN DOE", "message": "Beneficiary identity confirmed." } } ``` ```json 200 Success (ugx, tzs) theme={null} { "code": 200, "message": "User KYC", "data": { "status": "COMPLETE", "name": "JOHN DOE", "shortcode": "0700123456", "message": "Beneficiary identity confirmed." } } ``` ```json 200 Success (ghs) theme={null} { "code": 200, "message": "KYC Information", "data": { "status": "COMPLETE", "account_name": "JOHN DOE", "account_number": "0244123456", "bank_name": "MTN", "bank_code": "MTN", "message": "Beneficiary identity confirmed." } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` ```bash theme={null} curl -X POST "{{base_url}}/kes/user-infor" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "shortcode": "0700123456", "type": "MOBILE", "network": "Safaricom" }' ``` *** ## Status Fetch a transaction by `transaction_code`. ``` POST /{currency_code}/status ``` **transaction\_code** `string` *required* Transaction reference returned from disburse, collect, or bank transfer ```json Request body theme={null} { "transaction_code": "fg464gggshshkkk" } ``` ```json 200 Success theme={null} { "code": 200, "message": "Transaction", "data": { "id": 51215, "transaction_code": "045c1753-4e5b-4fa8-997b-ee52b78a96fa", "status": "COMPLETE", "amount": "20", "type": "MOBILE", "shortcode": "0700123456", "account_number": null, "public_name": "JOHN DOE", "receipt_number": "TIMCW5AK69", "category": "DISBURSEMENT", "message": "Transaction processed successfully.", "currency_code": "KES", "created_at": "2025-09-22T08:08:18.000000Z" } } ``` ```json 400 Bad Request theme={null} { "code": 400, "message": "Failed - Bad Request" } ``` *** ## Currency codes Use the lowercase currency prefix as `{currency_code}`, for example `kes`, `ugx`, `ngn`, `ghs`, `mwk`, `cdf`, `etb`, `tzs`, or `zmw`. Endpoint availability and amount limits differ by market. # API overview Source: https://docs.xwift.africa/api-reference/overview Conventions shared across Pretium endpoints. ## Base URL Examples use `{{base_url}}` as the API host placeholder. The interactive playground is configured with the live Pretium API server. ``` {{base_url}} ``` ## Authentication Send `x-api-key` on every request. See [Authentication](/authentication). ## Content type ``` Content-Type: application/json ``` Checkout endpoints primarily accept **query parameters** even on `POST`. ## Transaction object Status and list endpoints return resources similar to: ```json theme={null} { "id": 1, "transaction_code": "uuid-or-reference", "status": "COMPLETE", "amount": 1000, "amount_in_usd": 7.5, "type": "MOBILE", "shortcode": "2547...", "account_number": null, "public_name": "JOHN DOE", "receipt_number": "...", "category": "DISBURSEMENT", "chain": "CELO", "asset": "USDT", "transaction_hash": "0x...", "message": "...", "currency_code": "KES", "is_released": false, "created_at": "2026-07-31T10:00:00.000000Z" } ``` Country-specific resources may add `mobile_network`, bank fields, etc. ## Statuses | Domain | Values | | - | - | | Transactions | `PENDING`, `COMPLETE`, `FAILED`, `REFUNDED` | | Checkout | `PENDING`, `EXPIRED`, `CANCELLED`, `FAILED`, `COMPLETE` | | Cards | `active`, `frozen`, `terminating`, `terminated` | | MCP orders | `processing`, `pending`, `complete`, `failed`, `expired`, `refunded` | # Supported banks Source: https://docs.xwift.africa/api-reference/payments/banks POST /v1/banks/{currency_code} List supported banks for a currency (defaults to NGN). **currency\_code** `string` Defaults to `NGN` when omitted. Returns a list of banks (codes and names) usable with validation and payout fields. ```bash theme={null} curl -X POST "{{base_url}}/v1/banks/NGN" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{}' ``` # Onramp Source: https://docs.xwift.africa/api-reference/payments/onramp POST /v1/onramp/{currency_code} Collect fiat via mobile money and release stablecoins to an address. Amount limits are per transaction. Starts a local collection and, after success, releases crypto to the destination wallet. **currency\_code** `string` *required* e.g. `KES`, `UGX`, `GHS`, `MWK`, `CDF`. **shortcode** `string` *required* Customer phone / mobile money number (10 digits for KES/UGX). **amount** `number` *required* Fiat amount to collect. Limits are per transaction — see [Limits](/limits). **mobile\_network** `string` *required* Network operator for the market (e.g. `Safaricom`, `Airtel`, `MTN`). **address** `string` *required* Destination wallet address for released assets. **chain** `string` *required* `BASE` or `CELO`. **asset** `string` *required* `USDC` on BASE; `USDT` on CELO. **callback\_url** `string` Optional webhook URL. **reference** `string` Optional client reference. ## Amount limits Per-transaction min/max by currency: [Limits](/limits). ```bash theme={null} curl -X POST "{{base_url}}/v1/onramp/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "shortcode": "254712345678", "amount": 500, "mobile_network": "Safaricom", "address": "0xYourWallet", "chain": "BASE", "asset": "USDC" }' ``` # Pay (offramp) Source: https://docs.xwift.africa/api-reference/payments/pay POST /v1/pay/{currency_code} Verify an on-chain transfer and disburse local fiat. Amount limits are per transaction. Offramp endpoint. Provide a `transaction_hash` for a confirmed stablecoin transfer, plus destination details for the target currency. **currency\_code** `string` Destination currency. Defaults to Kenya rules when omitted. ## Common fields **transaction\_hash** `string` *required* On-chain transaction hash. Must not have been processed before. **chain** `string` `BASE`, `CELO` (default), `STELLAR`, `POLYGON`, `SOLANA`, `ETHEREUM`, `BNB`, `AVALANCHE`, or `ARBITRUM`. **amount** `number` *required* Fiat amount to disburse. Limits are per transaction — see [Limits](/limits). **callback\_url** `string` Optional webhook URL for this transaction. **reference** `string` Optional client reference; a UUID is generated if omitted. ## Currency-specific fields ### KES | Field | Rules | | - | - | | `type` | `MOBILE`, `PAYBILL`, `BUY_GOODS`, `BANK_TRANSFER` | | `shortcode` | Required for mobile / paybill / buy goods | | `account_number` | Required for paybill / bank transfer | | `mobile_network` | `Safaricom` or `Airtel` when `type=MOBILE` | | `amount` | See [Limits](/limits) | ### UGX | Field | Rules | | - | - | | `shortcode` | 10 digits | | `mobile_network` | `Airtel` or `MTN` | | `amount` | See [Limits](/limits) | ### NGN | Field | Rules | | - | - | | `account_name`, `account_number`, `bank_name`, `bank_code` | Required | | `amount` | See [Limits](/limits) | ### GHS | Field | Rules | | - | - | | `shortcode` | Required | | `mobile_network` | `AirtelTigo`, `MTN`, `Telecel` | | `amount` | See [Limits](/limits) | ### MWK | Field | Rules | | - | - | | `type` | `MOBILE` or `BANK_TRANSFER` | | `shortcode` | Phone number for `MOBILE` | | `mobile_network` | `Airtel Money` or `TNM Mpamba` when `type=MOBILE` | | `account_name`, `account_number`, `bank_name`, `bank_code` | For `BANK_TRANSFER` | | `amount` | See [Limits](/limits) | ### CDF | Field | Rules | | - | - | | `shortcode` | Required | | `mobile_network` | `Airtel Money` or `Mpesa` | | `amount` | See [Limits](/limits) | | `currency` | Optional: `CDF` (default) or `USD` | ### ETB | Field | Rules | | - | - | | `shortcode` | Required | | `mobile_network` | `Telebirr`, `Cbe Birr`, or `MPESA` | | `amount` | See [Limits](/limits) | ```bash theme={null} curl -X POST "{{base_url}}/v1/pay/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "transaction_hash": "0xabc123", "chain": "CELO", "type": "MOBILE", "shortcode": "254712345678", "amount": 1000, "mobile_network": "Safaricom" }' ``` # Refund Source: https://docs.xwift.africa/api-reference/payments/refund POST /v1/refund Initiate a refund/credit flow against a verified on-chain hash. **transaction\_hash** `string` *required* Original on-chain transaction hash. **chain** `string` *required* `BASE`, `CELO`, `STELLAR`, `POLYGON`, `SOLANA`, `ETHEREUM`, `BNB`, `AVALANCHE`, or `ARBITRUM`. Verifies the hash and runs the partner refund/credit path when eligible. ```bash theme={null} curl -X POST "{{base_url}}/v1/refund" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "transaction_hash": "0xabc123", "chain": "CELO" }' ``` # Transaction status Source: https://docs.xwift.africa/api-reference/payments/status POST /v1/status/{currency_code} Look up a single transaction by transaction_code. **currency\_code** `string` Currency namespace for the transaction store (e.g. `KES`, `UGX`). **transaction\_code** `string` *required* Transaction code returned when the payment was created. Returns a [transaction resource](/api-reference/overview#transaction-object). ```bash theme={null} curl -X POST "{{base_url}}/v1/status/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"transaction_code":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}' ``` # List transactions Source: https://docs.xwift.africa/api-reference/payments/transactions POST /v1/transactions/{currency_code} List recent transactions for a currency (optional date window). When `start_date` / `end_date` are provided, results are limited to a **3-day** window. No pagination — the full matching set is returned. **currency\_code** `string` *required* Currency code, e.g. `KES`. **start\_date** `string` Optional start date (`YYYY-MM-DD`). **end\_date** `string` Optional end date (`YYYY-MM-DD`). ```bash theme={null} curl -X POST "{{base_url}}/v1/transactions/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"start_date":"2026-07-28","end_date":"2026-07-30"}' ``` # Validation / Beneficiary infor Source: https://docs.xwift.africa/api-reference/payments/validation POST /v1/validation/{currency_code} Validate a mobile money shortcode or bank account before payout. Resolves account names / validity for the destination currency. Defaults to Kenya (`KES`) rules when the path currency is omitted. **currency\_code** `string` `KES`, `UGX`, `NGN`, `GHS`, or `TZS`. ## Body by currency ### KES (default) **shortcode** `string` *required* Phone or till / paybill number. **type** `string` *required* `MOBILE`, `PAYBILL`, or `BUY_GOODS`. **mobile\_network** `string` Required for `MOBILE`: `Safaricom` or `Airtel`. ### UGX **shortcode** `string` *required* 10-digit phone number. **mobile\_network** `string` *required* `MTN` or `Airtel`. ### NGN **account\_number** `string` *required* Bank account number. **bank\_code** `string` *required* Bank code from the banks list. ### GHS **shortcode** `string` *required* 10-digit mobile number. **mobile\_network** `string` *required* `MTN`, `AirtelTigo`, or `Telecel`. ### TZS **shortcode** `string` *required* Mobile number. **mobile\_network** `string` *required* `Vodacom`, `Halotel`, `Airtel`, or `Yas` / `Tigo`. ```bash theme={null} curl -X POST "{{base_url}}/v1/validation/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "shortcode": "254712345678", "type": "MOBILE", "mobile_network": "Safaricom" }' ``` # Exchange rate Source: https://docs.xwift.africa/api-reference/rates/exchange-rate POST /v1/exchange-rate Get buying and selling FX rates for a currency. Returns partner-category FX rates for a supported currency. **currency\_code** `string` *required* ISO-style currency code, e.g. `KES`, `UGX`, `NGN`. **code** `number` `200` on success. **message** `string` Human-readable status. **data.buying\_rate** `number` Rate used in buying/offramp contexts. **data.selling\_rate** `number` Rate used in selling/onramp contexts. ```bash theme={null} curl -X POST "{{base_url}}/v1/exchange-rate" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"currency_code":"KES"}' ``` ```json theme={null} { "code": 200, "message": "Exchange rates", "data": { "buying_rate": 129.5, "selling_rate": 131.2 } } ``` # Exchange rate (v2) Source: https://docs.xwift.africa/api-reference/rates/exchange-rate-v2 POST /v2/exchange-rate FX rates plus onramp/offramp availability flags. Same rates as v1, with booleans indicating whether ramps are currently active for the market. **currency\_code** `string` *required* Currency code such as `KES` or `UGX` (case-insensitive). **data.buying\_rate** `number` Buying rate. **data.selling\_rate** `number` Selling rate. **data.is\_offramp\_active** `boolean` `true` when offramp is not payment-locked. **data.is\_onramp\_active** `boolean` `true` when onramp is not payment-locked. ```bash theme={null} curl -X POST "{{base_url}}/v2/exchange-rate" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"currency_code":"KES"}' ``` ```json theme={null} { "code": 200, "message": "Exchange rates", "data": { "buying_rate": 129.5, "selling_rate": 131.2, "is_offramp_active": true, "is_onramp_active": true } } ``` # Authentication Source: https://docs.xwift.africa/authentication API keys and checkout keys for Pretium. All partner HTTP APIs authenticate with an API key header. ## Partner API key Send your portal **consumer key** as: ``` x-api-key: YOUR_CONSUMER_KEY ``` Used by `/v1`, `/v2`, `/account`, `/{currency}`, `/utility`, and `/card`. | Status | Response | | - | - | | Missing / invalid key | `401` `{ "code": 401, "message": "Unauthorized" }` | | Partner deactivated | `403` `{ "code": 403, "message": "Account deactivated" }` | ## Checkout key Checkout endpoints under `/v1/checkout` use your portal **checkout key** in the same header: ``` x-api-key: YOUR_CHECKOUT_KEY ``` Do not use the consumer key on checkout routes (and vice versa). ## AI agents (MCP) Cursor, Claude, and ChatGPT do not call these headers directly. Configure the [Pretium MCP server](/guides/agents); it uses your partner API key (and secret key for `register_agent`) on your behalf. ## Request headers | Header | Required | Value | | - | - | - | | `x-api-key` | Yes | Consumer key or checkout key | | `Content-Type` | Yes (JSON bodies) | `application/json` | ## IP allowlisting You can register allowed IPs in the partner portal. Prefer allowing only your production egress IPs. ## Keys in the portal From the merchant portal you can: * View / rotate the consumer key * View the checkout key * View the secret key (for MCP `register_agent`) * Configure webhook URLs and IP allowlists # Errors Source: https://docs.xwift.africa/errors Standard error envelope and common failure modes. ## Envelope ```json theme={null} { "code": 400, "message": "The amount field is required." } ``` Success responses add a `data` field: ```json theme={null} { "code": 200, "message": "OK", "data": {} } ``` | HTTP / `code` | Meaning | | - | - | | `200` | Success | | `201` | Created | | `400` | Validation or business-rule failure | | `401` | Invalid or missing API key | | `403` | Account deactivated or forbidden | | `404` | Resource not found | ## Common messages | Message | Cause | | - | - | | `Unauthorized` | Bad `x-api-key` | | `Account deactivated` | Partner status off | | `Country not supported.` | Unknown `currency_code` | | `Destination country not defined in payment gateway!` | Unsupported currency on `/v1/pay` | | `Unsupported network. Allowed networks: ...` | Invalid `chain` | | Hash already processed | `transaction_hash` reused (idempotent block via `master_hashes`) | | Payment lock / maintenance messages | Country ramp temporarily disabled | | `Card user not found.` | `user_id` does not belong to this partner | | `Card not found.` | Cardholder has no card that this call can use | | `Card user already has a card.` | A second card was requested for the same cardholder | | `Card has insufficient balance.` | Withdrawal is larger than the card balance | Validation failures usually return the first Laravel validator error string as `message`. ## Payout statuses Disbursement and offramp payouts report one of these `status` values on the transaction and on webhooks. `message` is the human-readable detail. | Status | Meaning | | - | - | | `COMPLETE` | Payout succeeded. Message: `Transaction processed successfully.` A provider `receipt_number` is set when one is available. | | `PENDING` | Payout was accepted and is still being processed. Message: `Transaction received and is being processed.` | | `REFUNDED` | A failed payout whose value was returned. Balance-funded payouts credit the partner wallet. Hash-funded payouts send the stablecoins back on-chain. | | `FAILED` | Disbursement did not succeed. Message defaults to `An unexpected error occurred. Please try again.` A provider reason is used when one is returned. Funds stay unsettled until the payout is refunded. | ## Idempotency * Optional `reference` — if omitted, a UUID is generated for many money-moving calls. * `transaction_hash` — cannot be processed twice for offramp / checkout settlement. * Checkout `order_id` — must be unique per partner order. There is no general `Idempotency-Key` header. # Fee Source: https://docs.xwift.africa/fee Collect a partner facilitation fee on collection, disbursement, offramp, and onramp requests. The `fee` field allows Pretium to collect fees on your behalf. ## Example If your UI charges a **1% facilitation fee** and a user wants to offramp **KES 1,000** (resulting in a **KES 10** fee): ### Steps 1. Deduct the equivalent of **KES 1,010** from the user’s wallet. 2. Submit the following parameters in your API request: ```json theme={null} { "amount": 1010, "fee": 10 } ``` Pretium’s payment protocol will send **KES 1,000** to the user and credit **KES 10** to your fiat wallet. ## Onramp The reverse applies during onramping — if User B wants to onramp **KES 1,000** and you include a fee of **10**, Pretium API will initiate a collection of **KES 1,010** from the user, credit **KES 10** to your fiat wallet upon confirmation, and release assets equivalent to **KES 1,000** to the user’s address. ## Where to send `fee` Include `fee` (optional number) on money-moving requests such as: * `POST /v1/pay/{currency}` and `POST /v1/onramp/{currency}` — [Offramp](/guides/offramp) / [Onramp](/guides/onramp) `amount` is the **gross** amount (recipient + fee). `fee` is the portion credited to your partner fiat wallet. # AI agents (MCP) Source: https://docs.xwift.africa/guides/agents Add Pretium as an MCP server in Cursor, Claude, or ChatGPT so agents can pay across African rails. Pretium ships a **Model Context Protocol (MCP)** server so AI tools can call payment capabilities as tools — not as a REST API you wire into your app. Connect it once in **Cursor**, **Claude**, or **ChatGPT**. Your agent can then register a Pretium agent, set spend limits, validate recipients, check balances, and send fiat or stablecoin payouts through normal chat. Hosted endpoint: [`https://mcp.pretium.africa/mcp`](https://mcp.pretium.africa/mcp)\ Open source: [github.com/derrickbundi/pretium-mcp](https://github.com/derrickbundi/pretium-mcp) ## What agents can do | Capability | Tools | | - | - | | FX rates | `get_exchange_rates` | | Off-ramp orders | `create_order`, `confirm_order`, `get_order_status` | | Validate recipients | `validate_phone_number`, `validate_bank_account` | | Agent lifecycle | `register_agent`, `create_agent_spend_policy`, `get_agent` | | Balances & payouts | `get_agent_balance`, `agent_create_fiat_order`, `get_agent_fiat_order_status`, `agent_create_stablecoin_order` | Fiat agent payouts today: **KES**, **UGX**, **NGN** (mobile money, paybill, buy goods, bank transfer). Stablecoins: **USDT/USDC** on **Celo**, **Base**, **BNB**. ## Prerequisites 1. A Pretium **partner** account and **API key** (used by the MCP server as `x-api-key`). 2. For agent tools: a partner **secret key** from the portal (used by `register_agent`). 3. An ERC-20 settlement wallet configured in the partner portal (for agent stablecoin flows). You do **not** call `/mcp/agent/*` HTTP routes from your product. The MCP server wraps those for the AI client. ## Add in Cursor 1. Open **Cursor Settings → MCP** (or edit `~/.cursor/mcp.json` / project `.cursor/mcp.json`). 2. Add the Pretium server: ```json theme={null} { "mcpServers": { "pretium": { "url": "https://mcp.pretium.africa/mcp" } } } ``` For a local [pretium-mcp](https://github.com/derrickbundi/pretium-mcp) instance: ```json theme={null} { "mcpServers": { "pretium": { "url": "http://localhost:3000/mcp" } } } ``` 3. Restart Cursor (or reload MCP). You should see Pretium tools listed under the server. 4. Ask the agent things like: “Register my Pretium agent and check the UGX balance.” Also listed on [cursor.directory](https://cursor.directory/plugins/pretium-mcp) for discovery. ## Add in Claude ### Claude Desktop Edit your Claude Desktop MCP config (macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`): ```json theme={null} { "mcpServers": { "pretium": { "url": "https://mcp.pretium.africa/mcp" } } } ``` Restart Claude Desktop. Pretium tools appear in the MCP tools list for the conversation. ### Claude Code / CLI ```bash theme={null} claude mcp add --transport http pretium https://mcp.pretium.africa/mcp ``` If your Claude build only supports stdio MCP, run [pretium-mcp](https://github.com/derrickbundi/pretium-mcp) locally and point the client at its Streamable HTTP or SSE URL (see below). ## Add in ChatGPT 1. Open ChatGPT settings for **Apps / Connectors** (or Custom GPT actions that support MCP, depending on your plan). 2. Add a new MCP connector with URL: ``` https://mcp.pretium.africa/mcp ``` 3. Allow the Pretium tools you need (rates, validation, agent payouts). 4. In chat, instruct the model to use Pretium for African payouts — for example: “Validate this Safaricom number, then pay 500 KES from my agent.” If ChatGPT requires OAuth or a verified connector for remote MCP, use a self-hosted [pretium-mcp](https://github.com/derrickbundi/pretium-mcp) behind your own auth, or contact [hello@pretium.africa](mailto:hello@pretium.africa) for partner MCP access. ## Self-host (optional) ```bash theme={null} git clone https://github.com/derrickbundi/pretium-mcp cd pretium-mcp npm install # set PRETIUM_API_KEY (and optional PRETIUM_API_BASE_URL) in .env npm run dev ``` | Transport | URL | Clients | | - | - | - | | Streamable HTTP | `POST http://localhost:3000/mcp` | Cursor, modern Claude | | SSE | `GET http://localhost:3000/sse` + `POST /messages` | Legacy SSE-only clients | Do not expose a self-hosted MCP publicly without auth — it acts with your partner API key. ## Typical chat workflows **Register and pay fiat** ```text theme={null} register_agent → create_agent_spend_policy → validate_phone_number → agent_create_fiat_order → get_agent_fiat_order_status ``` **Stablecoin transfer** ```text theme={null} register_agent → create_agent_spend_policy → get_agent_balance → agent_create_stablecoin_order ``` **Off-ramp (crypto → fiat)** ```text theme={null} create_order → (user pays on-chain) → confirm_order → get_order_status ``` Approvals above auto-approve limits are handled in the [partner portal](https://merchant.xwift.africa). ## Fiat payout field cheat sheet | `type` | Required fields | | - | - | | `mobile` | `shortcode`, `mobile_network` | | `paybill` | `shortcode`, `account_number` | | `buy_goods` | `shortcode` | | `bank_transfer` | `bank_code`, `account_number`, `account_name` | | Currency | Allowed types | | - | - | | UGX | `mobile` only | | KES | `mobile`, `paybill`, `buy_goods`, `bank_transfer` | | NGN | `bank_transfer` only | ## REST Pretium vs MCP | | Pretium (this docs site) | Pretium MCP | | - | - | - | | Audience | Your backend / product | Cursor, Claude, ChatGPT agents | | Auth | `x-api-key` on each HTTP call | MCP server holds the key; tools are invoked by the AI client | | Shape | REST JSON under `/v1`, `/account`, … | MCP tools (`register_agent`, `create_order`, …) | Use the [Pretium API reference](/api-reference/overview) when you are building a product integration. Use **MCP** when you want an AI assistant to operate Pretium for you. # Cards Source: https://docs.xwift.africa/guides/cards Issue USD virtual cards for online checkout, one-off payments, and auto-renewal subscriptions. The card API issues a USD virtual Visa or Mastercard for online checkout. A cardholder pays with the card number, expiration, security code, and billing address. Authenticate with your partner **consumer key** (`x-api-key`). Every endpoint is `POST` with a JSON body under `/card`. ## Online payments and subscriptions Use the card anywhere a merchant accepts Visa or Mastercard online: stores, invoices, app stores, and ads. Cards created here are virtual. `is_contactless_payment` is `false`, and `is_physical` stays unset unless the issuer reports otherwise. Auto-renewal is chosen once, on [create card](/api-reference/cards/create), with `is_non_subscription`: | `is_non_subscription` | Subscriptions | Typical use | | - | - | - | | `true` (default) | Blocked | One-off online payments. A merchant cannot charge the card again on a renewal. | | `false` | Allowed | Streaming, SaaS, and other plans that store the card and bill it automatically. | Renewals draw from the card balance. [Fund the card](/api-reference/cards/fund) before a billing date so the charge can clear, and [freeze](/api-reference/cards/freeze) it to stop further spend. ## Flow ```mermaid theme={null} sequenceDiagram participant App as Your backend participant API as Pretium API App->>API: POST /card/create-user API-->>App: user_id App->>API: POST /card/create API-->>App: Card, including card number and security code App->>API: POST /card/fund or /card/withdraw API-->>App: Updated balance App->>API: POST /card/transactions API-->>App: Card activity ``` 1. [Create a card user](/api-reference/cards/create-user). Keep the returned `user_id`. 2. [Create a card](/api-reference/cards/create) for that user. The opening `amount` is loaded onto the card in USD and must be greater than `0.9`. 3. [Read the card](/api-reference/cards/get), [fund](/api-reference/cards/fund) it, or [withdraw](/api-reference/cards/withdraw). 4. [List transactions](/api-reference/cards/transactions). [Freeze](/api-reference/cards/freeze) and [unfreeze](/api-reference/cards/unfreeze) when you need to block spending. A card user can hold one card. A second create returns `Card user already has a card.` ## Identifying a card Later calls use the `user_id` from create-user (your cardholder id). They do not take a separate card id, except [terminate](/api-reference/cards/terminate), which takes `card_id`. `user_id` is scoped to your partner account. Another partner's id returns `Card user not found.` ## Card object Create, list, and get return this object. Fund, withdraw, freeze, and unfreeze return the same fields except `card_number` and `security_code`. | Field | Description | | - | - | | `user_id` | Cardholder id from create-user | | `title` | Display title | | `color` | `blue`, `black`, `purple`, `orange`, or `yellow` | | `name` | Name printed for the cardholder | | `brand` | `visa` or `mastercard` | | `currency` | `USD` | | `balance` | Available balance as a two-decimal string | | `status` | `active`, `frozen`, `terminating`, or `terminated` | | `mask` | Masked card number | | `last4` | Last four digits | | `expiration` | Expiry from the issuer | | `is_non_subscription` | `true` when auto-renewal is blocked, `false` when merchants may bill the card again | | `is_contactless_payment` | `false` on cards created through this API | | `is_physical` | `true`, `false`, or `null`. Cards created here are virtual | | `billing_address` | `address`, `city`, `state`, `zip_code`, `country`, or `null` | | `last_used_on` | Last use time, or `null` | | `created_at`, `updated_at` | Timestamps | | `card_number` | Full card number. Present on create, list, and get | | `security_code` | Security code. Present on create, list, and get | | `total_card_spend` | Present on [get card](/api-reference/cards/get) only | > [!NOTE] > > `POST /card/create`, `POST /card/all`, and `POST /card/get-card` return the full card number and security code. Store them as cardholder secrets. List-users nests cards without those fields. ## Card user object [Create](/api-reference/cards/create-user) and [edit](/api-reference/cards/edit-user) return: | Field | Description | | - | - | | `user_id` | Id to send on card calls | | `email` | Cardholder email | | `name` | `first_name` and `last_name` joined | [List users](/api-reference/cards/users) adds `phone`, `country`, `state`, `city`, `address`, `zip_code`, and a `cards` array. ID type and ID number are not returned. ## Statuses | Status | Meaning | | - | - | | `active` | Card can be funded, withdrawn, and spent | | `frozen` | Spending is blocked until you unfreeze | | `terminating` | Termination is in progress | | `terminated` | Card is closed | Get, fund, withdraw, freeze, and unfreeze only resolve a card that is not `terminated` or `terminating`. Transaction history still resolves a closed card. ## Amounts Cards are issued in **USD**. | Call | Rule | | - | - | | Create | `amount` must be greater than `0.9` | | Withdraw | `amount` must be greater than `0.9` | | Fund | `amount` is a required number | A withdrawal the card cannot cover returns `Card has insufficient balance.` # Checkout Source: https://docs.xwift.africa/guides/checkout Hosted settlement flow using your checkout key. Checkout creates a short-lived order (about **7 minutes**) with a settlement address. The payer sends assets on-chain; you confirm with the transaction hash. ## Auth Use your **checkout key** as `x-api-key` (not the consumer key). ## Flow 1. [`POST /v1/checkout/`](/api-reference/checkout/create) — create order (`network`, `asset`, `currency_code`, `amount`, `order_id`). 2. Show the returned settlement `address` and amount to the payer. 3. [`POST /v1/checkout/pay`](/api-reference/checkout/pay) — submit `order_id` + `transaction_hash` after on-chain payment. 4. [`POST /v1/checkout/status`](/api-reference/checkout/status) — poll until `COMPLETE`, `EXPIRED`, `FAILED`, or `CANCELLED`. Query parameters are used on these POST endpoints (not only JSON body). ## Statuses `PENDING` → `COMPLETE` | `EXPIRED` | `CANCELLED` | `FAILED` ## Networks List supported settlement networks with [`POST /v1/checkout/networks`](/api-reference/checkout/networks). ## Webhooks On completion or failure Pretium may POST: ```json theme={null} { "status": "COMPLETE", "order_id": "order_123", "message": "Settlement complete" } ``` # Collection & disbursements Source: https://docs.xwift.africa/guides/collection-and-disbursements Wallet-funded collection and disbursement under currency prefixes. Collection and disbursement APIs move fiat from your Pretium wallet balance — **without** an on-chain `transaction_hash`. They share the same body shape as offramp / onramp, except `transaction_hash` and `chain` are omitted. Top up that balance with crypto via [`POST /account/fund`](/api-reference/account/fund) then [`POST /account/fund/confirm`](/api-reference/account/fund-confirm). ## Core endpoints | Action | Method | Path | | - | - | - | | Disburse | `POST` | `/{currency_code}/disburse` | | Collect | `POST` | `/{currency_code}/collect` | | Banks | `POST` | `/{currency_code}/banks` | | Bank info | `POST` | `/{currency_code}/bank-infor` | | Bank transfer | `POST` | `/{currency_code}/bank-transfer` | | Beneficiary info | `POST` | `/{currency_code}/user-infor` | | Status | `POST` | `/{currency_code}/status` | Full request and response examples: **[Collection & disbursement](/api-reference/countries/collection-and-disbursement)**. ## Auth `x-api-key` = partner consumer key. ## Currency prefixes | Prefix | Market | | - | - | | `/kes` | Kenya | | `/ugx` | Uganda | | `/ngn` | Nigeria | | `/ghs` | Ghana | | `/mwk` | Malawi | | `/cdf` | DR Congo | | `/etb` | Ethiopia | | `/tzs` | Tanzania | | `/zmw` | Zambia | | `/rwf` | Rwanda (utilities) | ## When to use `/v1` instead | Use `/v1` pay / onramp | Use `/{currency_code}` collection & disbursement | | - | - | | Settling with on-chain hashes | Wallet-funded local rails | | Crypto → fiat or fiat → crypto | Fiat in / out only | | Single cross-market product surface | Market-specific collect / disburse | ## Payment locks Collections and disbursements can be temporarily locked per country (`400` with a maintenance-style message). Check [`POST /v2/exchange-rate`](/api-reference/rates/exchange-rate-v2) for ramp flags on the unified API. # Offramp Source: https://docs.xwift.africa/guides/offramp Convert on-chain stablecoin deposits into local fiat payouts. Amount limits are per transaction. Offramp uses the unified `/v1` API: verify an on-chain transfer, then disburse to mobile money or bank accounts. ## Flow ```mermaid theme={null} sequenceDiagram participant App as Your backend participant Chain as Blockchain participant API as Pretium API participant Rail as Mobile money / bank App->>API: POST /v1/validation/{currency} API-->>App: Account name / validity Note over App,Chain: Customer sends USDT/USDC App->>API: POST /v1/pay/{currency} + transaction_hash API->>Chain: Verify hash API->>Rail: Disburse fiat API-->>App: Status + transaction_code API->>App: Webhook (optional) ``` ## Steps 1. **Validate** the destination with [`POST /v1/validation/{currency_code}`](/api-reference/payments/validation). 2. **Quote** with [`POST /v1/exchange-rate`](/api-reference/rates/exchange-rate) or v2 for ramp locks. 3. Customer (or your treasury) sends stablecoins to our settlement address on a supported network. 4. Call [`POST /v1/pay/{currency_code}`](/api-reference/payments/pay) with `transaction_hash` and payout fields. 5. Poll [`POST /v1/status/{currency_code}`](/api-reference/payments/status) or handle [webhooks](/webhooks). ## Supported networks (pay) `BASE`, `CELO` (default), `STELLAR`, `POLYGON`, `SOLANA`, `ETHEREUM`, `BNB`, `AVALANCHE`, `ARBITRUM` ## Amount limits (pay) Per-transaction min/max by currency and mobile money network: [Limits](/limits). ## Example (KES mobile) ```bash theme={null} curl -X POST "{{base_url}}/v1/pay/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "transaction_hash": "0xabc...", "chain": "CELO", "type": "MOBILE", "shortcode": "254712345678", "amount": 1000, "mobile_network": "Safaricom", "callback_url": "https://example.com/hooks/pretium" }' ``` Reuse of the same `transaction_hash` is rejected once it has been processed. # Onramp Source: https://docs.xwift.africa/guides/onramp Collect local fiat and settle stablecoins to a wallet. Amount limits are per transaction. Onramp collects mobile money (or similar) from a customer, then releases crypto to an address you provide. ## Flow 1. Call [`POST /v1/onramp/{currency_code}`](/api-reference/payments/onramp) with phone/network, amount, destination `address`, `chain`, and `asset`. 2. Customer completes the collection prompt (e.g. STK push). 3. Poll status or wait for a webhook; when collection completes, assets are released on-chain. ## Networks & assets | Chain | Asset | | - | - | | `BASE` | `USDC` | | `CELO` | `USDT` | Only `BASE` and `CELO` are accepted for onramp. ## Amount limits Per-transaction min/max by currency and mobile money network: [Limits](/limits). ## Example (KES) ```bash theme={null} curl -X POST "{{base_url}}/v1/onramp/KES" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{ "shortcode": "254712345678", "amount": 500, "mobile_network": "Safaricom", "address": "0xYourWallet", "chain": "BASE", "asset": "USDC", "callback_url": "https://example.com/hooks/pretium" }' ``` Check [`POST /v2/exchange-rate`](/api-reference/rates/exchange-rate-v2) for `is_onramp_active` before starting collections. # Introduction Source: https://docs.xwift.africa/index Pretium — move value between stablecoins and African fiat rails. ![Pretium stablecoin and African payment rails](https://mintcdn.com/pretium/bGz9JG1CZ4dOo36K/images/landing.jpg?fit=max\&auto=format\&n=bGz9JG1CZ4dOo36K\&q=85\&s=07b4ea274713e90bbbd0ecaace9b40ab) Pretium (served at `{{base_url}}`) lets partners collect and disburse fiat across African markets, settle with stablecoins on-chain, issue USD virtual cards, and run hosted checkout. For AI assistants, add Pretium as an [MCP server](/guides/agents) in Cursor, Claude, or ChatGPT — no REST agent integration required. ## Onboarding process [Register on the partner dashboard](https://merchant.xwift.africa/register) with your name, email, and business name. Pretium emails a password, issues API keys immediately, and gives you 14 days to submit KYB / KYC. See [Onboarding](/onboarding) for sign-in, keys, and the KYB steps. ## What you can build > [card] [Offramp](/guides/offramp) > > Convert on-chain stablecoin payments into mobile money or bank payouts. > [card] [Onramp](/guides/onramp) > > Collect local fiat and settle stablecoins to a wallet address. > [card] [Checkout](/guides/checkout) > > Hosted settlement flow with a checkout key and order lifecycle. > [card] [Cards](/guides/cards) > > Issue USD virtual cards for online checkout, one-off payments, and auto-renewal subscriptions. > [card] [AI agents (MCP)](/guides/agents) > > Add Pretium in Cursor, Claude, or ChatGPT and let agents pay via MCP tools. ## Supported markets | Currency | Country | Prefix | | - | - | - | | KES | Kenya | `/kes`, `/v1/.../KES` | | UGX | Uganda | `/ugx` | | NGN | Nigeria | `/ngn` | | GHS | Ghana | `/ghs` | | MWK | Malawi | `/mwk` | | CDF | DR Congo | `/cdf` | | ETB | Ethiopia | `/etb` | | TZS | Tanzania | `/tzs` | | ZMW | Zambia | `/zmw` | | RWF | Rwanda | `/rwf` (utilities) | ## API surfaces | Surface | Base path | Auth header value | | - | - | - | | Unified payments | `/v1`, `/v2` | Partner `consumer_key` | | Account | `/account` | Partner `consumer_key` | | Collection & disbursement | `/{currency}` | Partner `consumer_key` | | Checkout | `/v1/checkout` | Partner `checkout_key` | | Cards | `/card` | Partner `consumer_key` | | AI agents | [MCP guide](/guides/agents) | MCP server (`mcp.pretium.africa`), not REST | Almost all partner Pretium endpoints are **POST** with a JSON body. ## Response envelope Successful and error responses share a consistent shape: ```json theme={null} { "code": 200, "message": "Exchange rates", "data": {} } ``` Errors omit `data` and use `400`, `401`, `403`, or `404` in both the HTTP status and `code` field. ## Next steps > [card] [Quickstart](/quickstart) > > Make your first authenticated request in under five minutes. > [card] [Authentication](/authentication) > > How API keys and checkout keys work for Pretium. # Limits Source: https://docs.xwift.africa/limits Per-transaction amount limits by country and mobile money for pay (offramp) and onramp. Amount limits for the unified `/v1` pay (offramp) and onramp APIs. All values are **per transaction**, in local fiat currency. Limits apply at the country/currency level — every mobile money operator in that market shares the same min and max. See [MNOs](/mnos) for supported networks by country. ## Kenya (KES) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 20 | 250,000 | Safaricom, Airtel | | Onramp | 100 | 250,000 | Safaricom, Airtel | ## Uganda (UGX) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 500 | 5,000,000 | MTN, Airtel | | Onramp | 500 | 5,000,000 | MTN, Airtel | ## Ghana (GHS) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 5 | 1,000 | MTN, AirtelTigo, Telecel | | Onramp | 10 | 5,000 | MTN, AirtelTigo, Telecel | ## Malawi (MWK) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 100 | 5,000,000 | Airtel Money, TNM Mpamba | | Onramp | 2,000 | 5,000,000 | Airtel, TNM Mpamba | ## DR Congo (CDF) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 2,800 | 280,000 | Airtel Money, Mpesa | | Onramp | 2,800 | 280,000 | Airtel Money, Mpesa | ## Ethiopia (ETB) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 5 | 5,000 | Telebirr, Cbe Birr, MPESA | ## Tanzania (TZS) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 500 | 5,000,000 | Vodacom, Halotel, Airtel, Yas / Tigo | | Onramp | 500 | 5,000,000 | Vodacom, Halotel, Airtel, Yas / Tigo | ## Nigeria (NGN) | Flow | Min | Max | Networks | | - | - | - | - | | Pay (offramp) | 100 | 1,000,000 | All banks | # MNOs Source: https://docs.xwift.africa/mnos Mobile network operators and bank rails supported by Pretium per country. Supported mobile money operators and bank rails by market. Exact values for API fields (e.g. `mobile_network`) can vary by endpoint — use the currency-specific rules on [Pay](/api-reference/payments/pay) and [Onramp](/api-reference/payments/onramp). For per-transaction amount limits by country, see [Limits](/limits). Kenya SafaricomAirtelAll banks DR Congo Airtel MoneyMpesaOrange Money Uganda MTNAirtel Malawi AirtelTNM Mpamba Nigeria All banks Ghana MTNAirtelTigoTelecel Ethiopia TelebirrCbe BirrMPESA Tanzania VodacomHalotelAirtelYas / Tigo # Networks Source: https://docs.xwift.africa/networks Blockchain networks and stablecoin assets supported by Pretium. Settle offramp, onramp, and checkout with these chains and assets. Availability can differ by product and partner account — confirm what is enabled for you before going live. CELO USDTUSDC BASE USDC STELLAR USDC SOLANA USDTUSDC POLYGON USDTUSDC ETHEREUM USDTUSDC BNB (BSChain) USDTUSDC AVALANCHE USDTUSDC ARBITRUM USDTUSDC > [!NOTE] > > Product surfaces (offramp, onramp, checkout, MCP) may expose a subset of this list. Use [`POST /account/networks`](/api-reference/account/networks) or the [partner portal](https://merchant.xwift.africa) for the networks enabled on your account. Checkout also has [`POST /v1/checkout/networks`](/api-reference/checkout/networks). # Onboarding process Source: https://docs.xwift.africa/onboarding Register on the partner dashboard and get API credentials. Register on the [partner dashboard](https://merchant.xwift.africa/register). Pretium creates your account, API keys, and a 14-day trial as soon as you submit the form. For a walkthrough, book a meeting [here](https://calendly.com/pretium-finance). ## 1. Create an account Open [Create an account](https://merchant.xwift.africa/register) and enter: * **First name** and **last name** (at least 4 characters each) * **Email address** (must be new to Pretium) * **Business name** Select **Create account**. Pretium emails a password to that address. ## 2. Sign in 1. Open [Sign in](https://merchant.xwift.africa/login) and use the email and password from the email. 2. Enter the verification code sent to the same inbox. The code expires after 30 minutes. 3. After verification you land on **KYB / KYC**. ## 3. Copy your API keys Keys are issued at registration. In the dashboard, open **API keys**: | Key | Use | | - | - | | Consumer key | `x-api-key` on partner APIs (`/v1`, `/v2`, `/account`, `/{currency}`) | | Checkout key | `x-api-key` on `/v1/checkout` | | Secret key | MCP [`register_agent`](/guides/agents) | The dashboard and API keys stay available for **14 days**. Submit KYB / KYC before that date. After it, keys pause until the form is submitted. Once submitted, access stays open while Pretium reviews the pack. ## 4. Submit KYB / KYC The form has three steps: 1. **Business** — legal name, entity type, country of incorporation, what the business does, and expected monthly volume. 2. **Director** — full name, nationality, government ID, ownership percentage, and phone. 3. **Documents** — director government ID is required (PDF, JPG, or PNG, up to 8 MB). Confirm the declaration and submit. You can keep calling the API while the submission is reviewed. ## Next steps After you have credentials: 1. [Quickstart](/quickstart) — make your first authenticated request 2. [Authentication](/authentication) — how API keys and checkout keys work 3. [Networks](/networks) — chains and assets available to your account # Quickstart Source: https://docs.xwift.africa/quickstart Authenticate and fetch an exchange rate in a few minutes. ## 1. Get your API key [Register](https://merchant.xwift.africa/register) on the partner dashboard, [sign in](https://merchant.xwift.africa/login), and copy your **consumer key** from API keys. You will send it as the `x-api-key` header on every partner request. ## 2. Fetch an exchange rate ```bash theme={null} curl -X POST "{{base_url}}/v1/exchange-rate" \ -H "x-api-key: YOUR_CONSUMER_KEY" \ -H "Content-Type: application/json" \ -d '{"currency_code":"KES"}' ``` Example response: ```json theme={null} { "code": 200, "message": "Exchange rates", "data": { "buying_rate": 129.5, "selling_rate": 131.2 } } ``` * **Buying rate** — used when you buy fiat with crypto (offramp pricing context). * **Selling rate** — used when you sell fiat for crypto (onramp pricing context). For ramp availability flags, use [`POST /v2/exchange-rate`](/api-reference/rates/exchange-rate-v2). ## 3. Typical offramp flow 1. Validate the destination with [`POST /v1/validation/{currency}`](/api-reference/payments/validation). 2. Receive a stablecoin payment on a supported chain. 3. Call [`POST /v1/pay/{currency}`](/api-reference/payments/pay) with the `transaction_hash` and payout details. 4. Poll [`POST /v1/status/{currency}`](/api-reference/payments/status) or wait for a [webhook](/webhooks). See the [offramp guide](/guides/offramp) for currency-specific fields and limits. ## 4. Explore further | Goal | Start here | | - | - | | Collect fiat → send crypto | [Onramp guide](/guides/onramp) | | Hosted settlement UI | [Checkout guide](/guides/checkout) | | AI agents in Cursor / Claude / ChatGPT | [MCP guide](/guides/agents) | | Direct mobile money / bank rails | [Collection & disbursements](/guides/collection-and-disbursements) | # Webhooks Source: https://docs.xwift.africa/webhooks Outbound callbacks and signature verification for transaction and checkout status. Pretium posts JSON to your callback URL when a payment reaches a terminal or updated state. Configure a default webhook in the partner portal, and/or pass `callback_url` per request. ## Delivery * Method: `POST` * Timeout: \~3 seconds connect + read * Retries: not guaranteed on failure (failed deliveries are logged; you can recall some callbacks from the portal) Always treat webhooks as **at-least-once** hints and reconcile with the status API. ## Signature Create a **webhook signing key** in the partner portal. Until you do, callbacks are sent with no signature. When a key exists, each delivery includes: ``` x-signature-key: HMAC_SHA512_HEX ``` The value is the lowercase hex HMAC-SHA512 of the **raw JSON body**, using your signing key. Verify that exact body. Re-encoding the JSON will not match. ```php theme={null} $raw = file_get_contents('php://input'); $signature = strtolower(trim($_SERVER['HTTP_X_SIGNATURE_KEY'] ?? '')); if ($signature === '' || !hash_equals(hash_hmac('sha512', $raw, $signingKey), $signature)) { http_response_code(401); exit; } ``` ```js theme={null} const crypto = require('crypto'); function verifyWebhook(rawBody, signature, signingKey) { const expected = crypto.createHmac('sha512', signingKey).update(rawBody).digest('hex'); const a = Buffer.from(signature.trim().toLowerCase()); const b = Buffer.from(expected); return a.length === b.length && crypto.timingSafeEqual(a, b); } ``` ```python theme={null} import hashlib import hmac def verify_webhook(raw_body: bytes, signature: str, signing_key: str) -> bool: expected = hmac.new(signing_key.encode(), raw_body, hashlib.sha512).hexdigest() return hmac.compare_digest(expected, signature.strip().lower()) ``` Replacing the key in the portal stops the previous key from verifying new deliveries. ## Transaction callback Typical payload for collect / disburse / offramp flows: ```json theme={null} { "status": "COMPLETE", "transaction_code": "a1b2c3d4-....", "receipt_number": "QJK7...", "message": "Payment successful", "public_name": "JOHN DOE" } ``` | Field | Description | | - | - | | `status` | e.g. `COMPLETE`, `FAILED`, `PENDING`, `PROCESSING` | | `transaction_code` | Your reference / Pretium transaction id | | `receipt_number` | Provider receipt when available | | `message` | Human-readable status detail | | `public_name` | Resolved account / wallet name when available | ## Checkout callback ```json theme={null} { "status": "COMPLETE", "order_id": "order_123", "message": "Settlement complete" } ``` `status` may be `COMPLETE` or `FAILED` (and related checkout states during the lifecycle). ## Verifying outcomes Do not trust the webhook alone for money movement. Confirm with: * [`POST /v1/status/{currency}`](/api-reference/payments/status) * [`POST /account/{country_code}/transaction`](/api-reference/account/transaction) * [`POST /v1/checkout/status`](/api-reference/checkout/status) * For AI agent payouts: use MCP tools such as `get_order_status` / `get_agent_fiat_order_status` ([MCP guide](/guides/agents))