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

# Create Orders

> Initiate a payment order for your customer.

Orders are a great way to manage your business's transactions. Using an order, you can collect a customer's personal information and tie it to transaction details.

<img src="https://mintcdn.com/ntecomtechlimited/719ew7xCQr9K0vhs/images/flowchart.png?fit=max&auto=format&n=719ew7xCQr9K0vhs&q=85&s=e5f8179a22d6145b3eb7f0cb3959b67e" alt="Payment flowchart" width="3493" height="1935" data-path="images/flowchart.png" />

Every order comprises of three major components:

1. The customer's information - This object, `customer`, stores all user-related information. This includes their first and last names, their email, mobile number and country of residence.
2. The order information - This object holds transaction data like the transaction amount, unique reference, currency and the transaction description.
3. A payment object, that holds the transaction redirect URL on completed payment.

Follow these steps to create an order for your customer's payments

1. Encrypt the create order request. This request should contain the customer's information (`firstname`, `lastname`, `mobile`, `country` and `email`) and transaction details (`amount`, `reference`, `currency` and `description`).
2. Send the encrypted request to the [create order](/api-reference/orders/create) endpoint.

<CodeGroup>
  ```json Example (Unencrypted) theme={null}
  {
     "customer":{
        "firstname":"James",
        "lastname":"Jones",
        "mobile":"08101234542",
        "country":"US",
        "email":"jones@gmail.com"
     },
     "order":{
        "amount":100,
        "reference":"12345678",
        "description":"Pay",
        "currency":"USD"
     },
     "payment":{
        "RedirectUrl":"https://www.google.com"
     }
  }
  ```

  ```json Example (Encrypted) theme={null}
  {
      "data": "b6t36QfBWy0r7SQipdgkzp1+5O43QyYYjrj8FNIAKfx7gR9AtITHEDDA02m3oLqFNwsButeKkyZVL8+21kz9sY1yfJuI/QqtefxGPUagYCnuMNIBFeo97rWCemI8oBQ5G33NgnPoX54MWw7aZ8/W8wLWtrAeFA1WjwsIh3Ewb7z07Q/IgqCXn6793xizC9qIp/X5HCzdnBgUcUk92Xo7qKPbsR/8Cvmg6zapU9Z8zsdYwxUx/lkQLAihvarQ7LmGL4tyijKu2FcNQL7xdJKArl1hfv4d80FkD/0tnbxl6w/taL2rCgvALiNvgerxJQi8PgMACG4lMzib+LVhNzcu94fmUNiG7kwUfbB7QmlUmqgGoyMwOqSGGbKDkNcyQQuVPbaW6znfIGIqp3sVFBLnMD9vCWdlIqmNTskp2ROBL4DVAzNmJwAj9ofhXcSN5RF1Bx0ubAzQ4N90z6xduwZHH/iV/rqTfsIdXkRDVZWP25cJB8huoTTJcBBnoX9bFnj1709fAGQuMyNlj+uBqXKwFA6Q9MrafefNnRzU6OpeNzibNpL3hOHfoZkuA8Zqjc14Rq1BuIMYuLrsfpdZTW2vSnNWUju5B+DU9sat5Sbxks6QqIyrH3HhzJQeCaD59ruFDTyAG/kSz37y18BTt3iybg0z+nW1zXWfJec46hSCDpQ="
  }
  ```

  ```json 200 OK [expandable] theme={null}
  {
      "data": {
          "order": {
              "reference": "312170612",
              "processorReference": "EPCLB-4243DFE2F15711EF93AB06BA2661E92B",
              "orderPaymentReference": null,
              "amount": 100,
              "fee": 0,
              "feeRate": null,
              "statusId": 1,
              "status": "Initiated",
              "currency": "USD",
              "narration": "Pay",
              "paymentLinkId": null,
              "recurringPaymentId": null,
              "paymentLinkReference": null,
              "recurringPaymentReference": null
          },
          "subsidiary": {
              "id": 1,
              "name": "Merchant Epayclub",
              "country": "NG",
              "supportEmail": "merchant@epayclub.com",
              "customization": []
          },
          "customer": {
              "email": "jones@gmail.com",
              "firstName": "James",
              "lastName": "Jones",
              "mobile": "08101234542",
              "country": "NG"
          },
          "payment": {
              "code": null,
              "source": null,
              "selectedOption": null,
              "accountNumber": null,
              "bankProviderName": null
          },
          "otherPaymentOptions": [
              {
                  "code": "C",
                  "name": "Card Payment",
                  "currency": "USD"
              }
          ],
          "savedCards": [],
          "subsidiaryOrderSummary": {
              "orderName": "Merchant Epayclub Order 12345678",
              "totalAmount": 100,
              "reference": "12345678",
              "currency": "USD",
              "orderItems": [
                  {
                      "name": "Summary",
                      "amount": 100
                  }
              ]
          }
      },
      "status": "success",
      "statusCode": "01",
      "message": "Created order successfully"
  }

  ```
</CodeGroup>

With your order created, you can now proceed to [initiate payment](/payments/cards).
