βπ³ Create a Card
Enpoint POST https://api.xixapay.com/api/card/create
π Request Headers
{
"Authorization": "Bearer YOUR_API_SECRET",
"Content-Type": "application/json",
"api-key": "YOUR_API_KEY"
}
π¦ Request Body
Field
Type
Required
Description
customer_id
string
β
Must exist in your customers
table (customer_id
column).
businessId
string
β
Your registered business ID (max 255 characters).
country
string
β
Must be either "NG"
or "US"
.
amount
number
β
Must meet the minimum amount for the selected country.
π‘ Minimum Amounts
NG
: e.g. β¦3,000 NGN
US
: e.g. $3 USD (Enforced dynamically by your backend using country-specific logic.)
Example
{
"customer_id": "cus_123456",
"businessId": "xixapay_7890",
"country": "US",
"amount": 10.00
}
β Success Response:
{
"status": "success",
"message": "Virtual card created successfully",
"data": {
"card": {
"id": "a1b2c3d4e5f6",
"number": "411111******1111",
"expiry": "12/25",
"cvv": "123",
"balance": {
"amount": 50.00,
"currency": "USD"
},
"status": "active",
"type": "virtual",
"brand": "MasterCard",
"spending_limit": 1000,
"issuer_country": "USA"
},
"fees": {
"funding_fee": 1.50,
"issuance_fee": 1.00,
"total_charged": 52.50
},
"timestamp": "2023-11-15 14:30:45",
"reference": "txn_123456789"
}
}
Last updated