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

# Get Order

> This endpoint gets an order.

### Body

<ParamField body="id" type="string">
  This is the id of the order.
</ParamField>

### Response

<ResponseField name="id" required="true" type="string">
  This is the id of the order.
</ResponseField>

<ResponseField name="name" required="true" type="string">
  This is the name of the order.
</ResponseField>

<ResponseField name="number" required="true" type="string">
  This is the number of the order.
</ResponseField>

<ResponseField name="source" required="true" type="string">
  This is the source of the order.
</ResponseField>

<ResponseField name="state" required="true" type="string">
  This is the state of the order.
</ResponseField>

<ResponseField name="customerID" required="true" type="string">
  This is the customerID of the order.
</ResponseField>

<ResponseField name="items" required="true" type="array">
  This is the list of items in the order.
</ResponseField>

<ResponseField name="totalAmount" required="true" type="string">
  This is the total amount of the order.
</ResponseField>

<ResponseField name="paymentStatus" required="true" type="string">
  This is the payment status of the order.
</ResponseField>

<ResponseField name="shippingStatus" required="true" type="string">
  This is the shipping status of the order.
</ResponseField>

<ResponseField name="createdAt" required="true" type="string">
  This is the creation timestamp of the order.
</ResponseField>

<ResponseField name="updatedAt" required="true" type="string">
  This is the last updated timestamp of the order.
</ResponseField>

<ResponseField name="metadata" required="false" type="object">
  This is additional metadata related to the order.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request GET 'https://api.stateset.network/v1/order' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token <token>' \
  --data-raw '{
      "id": "1"
  }'

  ```
</RequestExample>

# Orders

Orders describes the general data about the orders in StateSet Commerce Network.

## The order object

#### Attributes

| Name           | Type     | Description                              |
| -------------- | -------- | ---------------------------------------- |
| id             | Text     | Unique identifier for the order          |
| name           | Text     | Name of the order                        |
| number         | Text     | Number of the order                      |
| state          | Text     | State of the order                       |
| customerID     | Text     | Customer ID of the order                 |
| items          | Array    | List of items in the order               |
| totalAmount    | Text     | Total amount of the order                |
| paymentStatus  | Text     | Payment status of the order              |
| shippingStatus | Text     | Shipping status of the order             |
| createdAt      | DateTime | Creation timestamp of the order          |
| updatedAt      | DateTime | Last updated timestamp of the order      |
| metadata       | Object   | Additional metadata related to the order |
