# Step 1: get the converted amount
curl "https://api.khaime.com/api/v1/partner/pricing/calculate?amount=10000&target_currency=NGN" \
-H "X-API-Key: pk_sandbox_your_key"
# Returns: { "local": { "amount": 14501000, "currency": "NGN" } }
# Step 2: create the charge
curl -X POST https://api.khaime.com/api/v1/partner/payments/charge \
-H "X-API-Key: pk_sandbox_your_key" \
-H "Content-Type: application/json" \
-d '{
"amount": 14501000,
"currency": "NGN",
"total_amount": 10000,
"total_currency": "USD",
"converted_total_amount": 14501000,
"converted_total_currency": "NGN",
"customer": {
"email": "customer@example.com",
"country": "NG"
}
}'