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

# Pay with transfer

You can also generate virtual accounts to accept one-time payments (pay with transfer).

<CodeGroup>
  ```json request.json theme={null}
  {
    "reference": "3112dqsaev83ehrdu2",
    "paymentMethod": "pay_with_transfer",
    "amount": {
      "value": 50000,
      "currency": "NGN"
    },
    "customer": {
      "email": "customer@example.com",
      "name": "Customer Name"
    },
    "callbackUrl": "https://yourwebsite.com/webhook",
    "metadata": {
      "orderType": "food"
    }
  }
  ```

  ```json response.json theme={null}
  {
    "id": "pi_frouch7wih5m6qhopao0usseqmaiz2xz",
    "reference": "3112dqsaev83ehrdu2",
    "accountName": "Paycashless Checkout",
    "accountNumber": "1234567890",
    "bankName": "Example Bank",
    "amount": {
      "value": 50000,
      "currency": "NGN"
    },
    "customer": {
      "id": "cus_ko24blsptihjn3csyjfnoeohiir35tdf",
      "name": "Customer Name",
      "email": "customer@example.com",
      "phoneNumber": null,
      "address": null,
      "reference": null,
      "isBlacklisted": false,
      "liveMode": false
    },
    "liveMode": false,
    "expiresAt": "2025-05-15T11:53:44.361Z"
  }
  ```
</CodeGroup>

You will receive webhook events related to the generated virtual account at the callback URL passed in your request object.
