> ## Documentation Index
> Fetch the complete documentation index at: https://developers.bumxpress.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mobile money payin

> Collect a mobile money payment from a customer.

Use this recipe when a customer pays your business from a mobile money wallet.

<Steps>
  <Step title="Create a customer">
    ```bash theme={null}
    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"}'
    ```
  </Step>

  <Step title="Create a payin quote">
    ```bash theme={null}
    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"}'
    ```
  </Step>

  <Step title="Create the payin">
    ```bash theme={null}
    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"
        }
      }'
    ```
  </Step>
</Steps>
