> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders

> Create, view and update an Order using Razorpay APIs.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

You can create [Orders](/docs/payments/orders) and link them to payments. Orders APIs are used to create, update and retrieve details of Orders. Also, you can retrieve details of payments made towards these Orders.

<br />

Fork the Razorpay Postman Public Workspace and try the Orders APIs using your [Test API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys).

<a href="https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/folder/12492020-91450029-1c52-4375-8033-39ca4c2d0a8c" target="_blank">![Run in Postman](https://run.pstmn.io/button.svg)</a>

<CardGroup cols={2}>
  <Card title="Create an Order" href="/docs/api/orders/create">
    `POST` `/v1/orders`

    Creates an order by providing basic details such as amount and currency.
  </Card>

  <Card title="Fetch All Orders" href="/docs/api/orders/fetch-all">
    `GET` `/v1/orders`

    Retrieves details of all the orders.
  </Card>

  <Card title="Fetch All Orders (Example 1)" href="/docs/api/orders/fetch-all-expanded-payments">
    `GET` `/v1/orders?expand[]=payments`

    Retrieves details of all the orders and expands the payments object.
  </Card>

  <Card title="Fetch All Orders (Example 2)" href="/docs/api/orders/fetch-all-expanded-card-payments">
    `GET` `/v1/orders?expand[]=payments.card`

    Retrieves details of all the orders and expands cards parameter in the payments object.
  </Card>

  <Card title="Fetch Order With ID" href="/docs/api/orders/fetch-with-id">
    `GET` `/v1/orders/:id`

    Retrieves details of a particular order.
  </Card>

  <Card title="Fetch All Payments for an Order" href="/docs/api/orders/fetch-payments">
    `GET` `/v1/orders/:id/payments`

    Retrieves all the payments made for an order.
  </Card>

  <Card title="Update an Order" href="/docs/api/orders/update">
    `PATCH` `/v1/orders/:id`

    Modifies an existing order.
  </Card>
</CardGroup>

## Related Guides

* [About Orders](/docs/payments/orders)
* [Set Up Webhooks](/docs/webhooks/setup-edit-payments)
* [Webhook Payloads](/docs/webhooks/orders)
