Withdraw to a wallet
curl --request POST \
--url https://api.pay.flipeet.io/api/v1/merchant/transaction/crypto/withdrawal \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": 250,
"network": "base",
"asset": "usdc",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 250,
network: 'base',
asset: 'usdc',
address: '0x8Ba1f109551bD432803012645Ac136ddd64DBA72'
})
};
fetch('https://api.pay.flipeet.io/api/v1/merchant/transaction/crypto/withdrawal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pay.flipeet.io/api/v1/merchant/transaction/crypto/withdrawal"
payload = {
"amount": 250,
"network": "base",
"asset": "usdc",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Withdrawal initiated",
"status": "success",
"statusCode": 201,
"data": {
"id": "0d9e8f7a-6b5c-4d3e-2f1a-0b9c8d7e6f5a",
"type": "crypto",
"reference": "payout_5510",
"status": "processing",
"currency": "usdc",
"network": "base",
"amount": 250,
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72",
"txHash": null,
"failureReason": null,
"note": "Supplier payout, invoice 2024-001",
"metadata": {
"supplierId": "sup_19"
},
"livemode": true,
"createdAt": "2026-11-04T10:21:09.000Z",
"updatedAt": "2026-11-04T10:21:09.000Z"
}
}{
"message": "Amount must be a positive number",
"status": "error",
"statusCode": 400,
"code": "invalid_request",
"details": {
"errors": [
"Amount must be a positive number"
]
},
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Invalid or inactive API key",
"status": "error",
"statusCode": 401,
"code": "authentication_failed",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Reference payout_5510 already exists",
"status": "error",
"statusCode": 409,
"code": "conflict",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Too many requests. Slow down and try again shortly.",
"status": "error",
"statusCode": 429,
"code": "rate_limited",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Internal server error",
"status": "error",
"statusCode": 500,
"code": "internal_error",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "The payment partner could not complete the request",
"status": "error",
"statusCode": 502,
"code": "provider_error",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}Withdrawals
Withdraw to a wallet
Sends USDC or USDT from your balance to an address. The amount leaves your balance at once and the withdrawal is processing until the network confirms it; then you get transaction.withdrawal.completed. If it fails, the amount goes back to your balance and you get transaction.withdrawal.failed.
On-chain transfers can’t be reversed. Check the address and network before you send.
POST
/
api
/
v1
/
merchant
/
transaction
/
crypto
/
withdrawal
Withdraw to a wallet
curl --request POST \
--url https://api.pay.flipeet.io/api/v1/merchant/transaction/crypto/withdrawal \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"amount": 250,
"network": "base",
"asset": "usdc",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 250,
network: 'base',
asset: 'usdc',
address: '0x8Ba1f109551bD432803012645Ac136ddd64DBA72'
})
};
fetch('https://api.pay.flipeet.io/api/v1/merchant/transaction/crypto/withdrawal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pay.flipeet.io/api/v1/merchant/transaction/crypto/withdrawal"
payload = {
"amount": 250,
"network": "base",
"asset": "usdc",
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Withdrawal initiated",
"status": "success",
"statusCode": 201,
"data": {
"id": "0d9e8f7a-6b5c-4d3e-2f1a-0b9c8d7e6f5a",
"type": "crypto",
"reference": "payout_5510",
"status": "processing",
"currency": "usdc",
"network": "base",
"amount": 250,
"address": "0x8Ba1f109551bD432803012645Ac136ddd64DBA72",
"txHash": null,
"failureReason": null,
"note": "Supplier payout, invoice 2024-001",
"metadata": {
"supplierId": "sup_19"
},
"livemode": true,
"createdAt": "2026-11-04T10:21:09.000Z",
"updatedAt": "2026-11-04T10:21:09.000Z"
}
}{
"message": "Amount must be a positive number",
"status": "error",
"statusCode": 400,
"code": "invalid_request",
"details": {
"errors": [
"Amount must be a positive number"
]
},
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Invalid or inactive API key",
"status": "error",
"statusCode": 401,
"code": "authentication_failed",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Reference payout_5510 already exists",
"status": "error",
"statusCode": 409,
"code": "conflict",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Too many requests. Slow down and try again shortly.",
"status": "error",
"statusCode": 429,
"code": "rate_limited",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "Internal server error",
"status": "error",
"statusCode": 500,
"code": "internal_error",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}{
"message": "The payment partner could not complete the request",
"status": "error",
"statusCode": 502,
"code": "provider_error",
"details": null,
"requestId": "req_5f0c2a9b8d7e4c1f9a3b6d2e1c0f7a8b",
"timestamp": "2026-11-04T10:00:00.000Z"
}Authorizations
Body
application/json
