Create a customer
curl -X POST "https://api.business.bumxpress.com/customers" \
-H "Content-Type: application/json" \
-H "X-Api-Key: bmx_pk_xxx" \
-H "X-Api-Secret: bmx_sk_xxx" \
-H "Idempotency-Key: customer_001" \
-d '{"first_name":"Amina","last_name":"Ndongo","phone":"+237670000000","country_code":"CM"}'
Create a payin quote
curl -X POST "https://api.business.bumxpress.com/quotes/payin" \
-H "Content-Type: application/json" \
-H "X-Api-Key: bmx_pk_xxx" \
-H "X-Api-Secret: bmx_sk_xxx" \
-H "Idempotency-Key: quote_payin_001" \
-d '{"country_code":"CM","operator_code":"CM_MTN_MOMO","rail_type":"mobile_money","send_amount":"10000","send_currency":"XAF"}'
Create the payin
curl -X POST "https://api.business.bumxpress.com/payins" \
-H "Content-Type: application/json" \
-H "X-Api-Key: bmx_pk_xxx" \
-H "X-Api-Secret: bmx_sk_xxx" \
-H "Idempotency-Key: payin_001" \
-d '{
"quote_id": "33333333-3333-3333-3333-333333333333",
"customer_id": "22222222-2222-2222-2222-222222222222",
"source": {
"country_code": "CM",
"rail_type": "mobile_money",
"phone": "+237670000000",
"operator_code": "CM_MTN_MOMO"
}
}'