# [Not Implemented] Create order

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.cata.sg/pos-integration-service-api/api/v-1/orders/llms.txt.
> For full documentation content, see https://apidocs.cata.sg/pos-integration-service-api/api/v-1/orders/llms-full.txt.

POST http://localhost:8080/api/v1/orders
Content-Type: application/json

> **Status: Not Implemented** — returns 501

Creates a new order in the specified third-party POS system on behalf of Cata.

**This is an async operation.** The order is queued and sent to the external POS via
the appropriate adapter. Processing time varies depending on the POS system and network
conditions. The endpoint returns immediately with a `jobId`.

**Retries:** Failed attempts are automatically retried with backoff. All attempts are logged.

**Tracking:** Use `GET /api/v1/jobs/{jobId}` to poll current status, or register a webhook
to be notified automatically when the order is confirmed or fails.

Webhook events fired:
- `order.created` — order successfully accepted by the POS
- `order.failed` — all retry attempts exhausted, order could not be created


Reference: https://apidocs.cata.sg/pos-integration-service-api/api/v-1/orders/not-implemented-create-order

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/orders:
    post:
      operationId: not-implemented-create-order
      summary: '[Not Implemented] Create order'
      description: >
        > **Status: Not Implemented** — returns 501


        Creates a new order in the specified third-party POS system on behalf of
        Cata.


        **This is an async operation.** The order is queued and sent to the
        external POS via

        the appropriate adapter. Processing time varies depending on the POS
        system and network

        conditions. The endpoint returns immediately with a `jobId`.


        **Retries:** Failed attempts are automatically retried with backoff. All
        attempts are logged.


        **Tracking:** Use `GET /api/v1/jobs/{jobId}` to poll current status, or
        register a webhook

        to be notified automatically when the order is confirmed or fails.


        Webhook events fired:

        - `order.created` — order successfully accepted by the POS

        - `order.failed` — all retry attempts exhausted, order could not be
        created
      tags:
        - subpackage_api.subpackage_api/v1.subpackage_api/v1/orders
      parameters:
        - name: X-Api-Key
          in: header
          required: true
          schema:
            type: string
        - name: X-Tenant-ID
          in: header
          description: Tenant identifier
          required: false
          schema:
            type: string
        - name: X-Store-ID
          in: header
          description: Store identifier
          required: false
          schema:
            type: string
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/api_v1_orders_[Not Implemented] Create
                  order_Response_202
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1OrdersRequestBadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1OrdersRequestUnauthorizedError'
        '422':
          description: Unprocessable Entity (WebDAV) (RFC 4918)
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiV1OrdersRequestUnprocessableEntityError
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                posType:
                  type: string
                storeId:
                  type: string
                order:
                  $ref: >-
                    #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrder
                tenantId:
                  type: string
              required:
                - posType
                - storeId
                - order
                - tenantId
servers:
  - url: http://localhost:8080
components:
  schemas:
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsUnitPrice:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsUnitPrice
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsTotalPrice:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsTotalPrice
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItemsPrice:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItemsPrice
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItemsMetadata:
      type: object
      properties:
        key_0:
          type: integer
      required:
        - key_0
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItemsMetadata
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        price:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItemsPrice
        quantity:
          type: integer
        externalId:
          type: string
        metadata:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItemsMetadata
      required:
        - id
        - name
        - price
        - quantity
        - externalId
        - metadata
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItems
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsMetadata:
      type: object
      properties:
        key_0:
          type: integer
      required:
        - key_0
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsMetadata
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItems:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        quantity:
          type: integer
        unitPrice:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsUnitPrice
        externalId:
          type: string
        description:
          type: string
        totalPrice:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsTotalPrice
        modifiers:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsModifiersItems
        specialInstructions:
          type: string
        metadata:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItemsMetadata
      required:
        - id
        - name
        - quantity
        - unitPrice
        - externalId
        - description
        - totalPrice
        - modifiers
        - specialInstructions
        - metadata
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItems
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTotalAmount:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTotalAmount
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderCustomerAddress:
      type: object
      properties:
        street:
          type: string
        city:
          type: string
        state:
          type: string
        postalCode:
          type: string
        country:
          type: string
        latitude:
          type: number
          format: double
        longitude:
          type: number
          format: double
      required:
        - street
        - city
        - state
        - postalCode
        - country
        - latitude
        - longitude
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderCustomerAddress
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderCustomer:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        email:
          type: string
          format: email
        phone:
          type: string
        address:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderCustomerAddress
      required:
        - id
        - name
        - email
        - phone
        - address
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderCustomer
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderSubtotal:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderSubtotal
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTax:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTax
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTip:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTip
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderDeliveryFee:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
      required:
        - amount
        - currency
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderDeliveryFee
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderDeliveryAddress:
      type: object
      properties:
        street:
          type: string
        city:
          type: string
        state:
          type: string
        postalCode:
          type: string
        country:
          type: string
        latitude:
          type: number
          format: double
        longitude:
          type: number
          format: double
      required:
        - street
        - city
        - state
        - postalCode
        - country
        - latitude
        - longitude
      title: >-
        ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderDeliveryAddress
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderMetadata:
      type: object
      properties:
        key_0:
          type: string
      required:
        - key_0
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderMetadata
    ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrder:
      type: object
      properties:
        id:
          type: string
        storeId:
          type: string
        items:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderItemsItems
        totalAmount:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTotalAmount
        status:
          type: string
        externalId:
          type: string
        channelOrderId:
          type: string
        channelName:
          type: string
        customer:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderCustomer
        subtotal:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderSubtotal
        tax:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTax
        tip:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderTip
        deliveryFee:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderDeliveryFee
        orderType:
          type: string
        scheduledFor:
          type: string
          format: date-time
        estimatedDeliveryTime:
          type: string
          format: date-time
        pickupTime:
          type: string
          format: date-time
        deliveryAddress:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderDeliveryAddress
        notes:
          type: string
        metadata:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrderMetadata
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - storeId
        - items
        - totalAmount
        - status
        - externalId
        - channelOrderId
        - channelName
        - customer
        - subtotal
        - tax
        - tip
        - deliveryFee
        - orderType
        - scheduledFor
        - estimatedDeliveryTime
        - pickupTime
        - deliveryAddress
        - notes
        - metadata
        - createdAt
        - updatedAt
      title: ApiV1OrdersPostRequestBodyContentApplicationJsonSchemaOrder
    api_v1_orders_[Not Implemented] Create order_Response_202:
      type: object
      properties:
        jobId:
          type: string
        status:
          type: string
        submittedAt:
          type: string
          format: date-time
      required:
        - jobId
        - status
        - submittedAt
      title: api_v1_orders_[Not Implemented] Create order_Response_202
    ApiV1OrdersPostResponsesContentApplicationJsonSchemaError:
      type: object
      properties:
        code:
          type: integer
        message:
          type: string
        details:
          type: string
        field:
          type: string
      required:
        - code
        - message
        - details
        - field
      title: ApiV1OrdersPostResponsesContentApplicationJsonSchemaError
    PostApiV1OrdersRequestBadRequestError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostResponsesContentApplicationJsonSchemaError
      required:
        - error
      title: PostApiV1OrdersRequestBadRequestError
    PostApiV1OrdersRequestUnauthorizedError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostResponsesContentApplicationJsonSchemaError
      required:
        - error
      title: PostApiV1OrdersRequestUnauthorizedError
    PostApiV1OrdersRequestUnprocessableEntityError:
      type: object
      properties:
        error:
          $ref: >-
            #/components/schemas/ApiV1OrdersPostResponsesContentApplicationJsonSchemaError
      required:
        - error
      title: PostApiV1OrdersRequestUnprocessableEntityError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

```

## SDK Code Examples

```python api_v1_orders_[Not Implemented] Create order_example
import requests

url = "http://localhost:8080/api/v1/orders"

payload = {
    "posType": "DELIVERECT",
    "storeId": "string",
    "order": {
        "id": "string",
        "storeId": "string",
        "items": [
            {
                "id": "string",
                "name": "string",
                "quantity": 5839,
                "unitPrice": {
                    "amount": 1299,
                    "currency": "USD"
                },
                "externalId": "string",
                "description": "string",
                "totalPrice": {
                    "amount": 1299,
                    "currency": "USD"
                },
                "modifiers": [
                    {
                        "id": "string",
                        "name": "string",
                        "price": {
                            "amount": 1299,
                            "currency": "USD"
                        },
                        "quantity": 1,
                        "externalId": "string",
                        "metadata": { "key_0": 3429 }
                    },
                    {
                        "id": "string",
                        "name": "string",
                        "price": {
                            "amount": 1299,
                            "currency": "USD"
                        },
                        "quantity": 1,
                        "externalId": "string",
                        "metadata": { "key_0": 2256 }
                    }
                ],
                "specialInstructions": "string",
                "metadata": { "key_0": 6640 }
            },
            {
                "id": "string",
                "name": "string",
                "quantity": 2274,
                "unitPrice": {
                    "amount": 1299,
                    "currency": "USD"
                },
                "externalId": "string",
                "description": "string",
                "totalPrice": {
                    "amount": 1299,
                    "currency": "USD"
                },
                "modifiers": [
                    {
                        "id": "string",
                        "name": "string",
                        "price": {
                            "amount": 1299,
                            "currency": "USD"
                        },
                        "quantity": 1,
                        "externalId": "string",
                        "metadata": {
                            "key_0": 1,
                            "key_1": 7379,
                            "key_2": "string"
                        }
                    },
                    {
                        "id": "string",
                        "name": "string",
                        "price": {
                            "amount": 1299,
                            "currency": "USD"
                        },
                        "quantity": 1,
                        "externalId": "string",
                        "metadata": {
                            "key_0": 7864,
                            "key_1": "string",
                            "key_2": 3930.558840761544,
                            "key_3": "string",
                            "key_4": "string"
                        }
                    }
                ],
                "specialInstructions": "string",
                "metadata": {
                    "key_0": 1,
                    "key_1": 4626.262390778475,
                    "key_2": True,
                    "key_3": "string"
                }
            }
        ],
        "totalAmount": {
            "amount": 1299,
            "currency": "USD"
        },
        "status": "CONFIRMED",
        "externalId": "string",
        "channelOrderId": "string",
        "channelName": "string",
        "customer": {
            "id": "string",
            "name": "string",
            "email": "cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje",
            "phone": "string",
            "address": {
                "street": "123 Main St",
                "city": "New York",
                "state": "NY",
                "postalCode": "10001",
                "country": "US",
                "latitude": 3823.7132927288653,
                "longitude": 3858.1866618285308
            }
        },
        "subtotal": {
            "amount": 1299,
            "currency": "USD"
        },
        "tax": {
            "amount": 1299,
            "currency": "USD"
        },
        "tip": {
            "amount": 1299,
            "currency": "USD"
        },
        "deliveryFee": {
            "amount": 1299,
            "currency": "USD"
        },
        "orderType": "PREORDER",
        "scheduledFor": "1984-02-24T17:05:12.508Z",
        "estimatedDeliveryTime": "1971-03-02T15:37:37.022Z",
        "pickupTime": "1980-11-01T08:34:02.898Z",
        "deliveryAddress": {
            "street": "123 Main St",
            "city": "New York",
            "state": "NY",
            "postalCode": "10001",
            "country": "US",
            "latitude": 2628.675700176253,
            "longitude": 2362.338566860771
        },
        "notes": "string",
        "metadata": { "key_0": "string" },
        "createdAt": "1976-04-06T05:01:15.237Z",
        "updatedAt": "1963-03-09T03:31:37.668Z"
    },
    "tenantId": "string"
}
headers = {
    "X-Tenant-ID": "string",
    "X-Store-ID": "string",
    "X-Api-Key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript api_v1_orders_[Not Implemented] Create order_example
const url = 'http://localhost:8080/api/v1/orders';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-ID': 'string',
    'X-Store-ID': 'string',
    'X-Api-Key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"posType":"DELIVERECT","storeId":"string","order":{"id":"string","storeId":"string","items":[{"id":"string","name":"string","quantity":5839,"unitPrice":{"amount":1299,"currency":"USD"},"externalId":"string","description":"string","totalPrice":{"amount":1299,"currency":"USD"},"modifiers":[{"id":"string","name":"string","price":{"amount":1299,"currency":"USD"},"quantity":1,"externalId":"string","metadata":{"key_0":3429}},{"id":"string","name":"string","price":{"amount":1299,"currency":"USD"},"quantity":1,"externalId":"string","metadata":{"key_0":2256}}],"specialInstructions":"string","metadata":{"key_0":6640}},{"id":"string","name":"string","quantity":2274,"unitPrice":{"amount":1299,"currency":"USD"},"externalId":"string","description":"string","totalPrice":{"amount":1299,"currency":"USD"},"modifiers":[{"id":"string","name":"string","price":{"amount":1299,"currency":"USD"},"quantity":1,"externalId":"string","metadata":{"key_0":1,"key_1":7379,"key_2":"string"}},{"id":"string","name":"string","price":{"amount":1299,"currency":"USD"},"quantity":1,"externalId":"string","metadata":{"key_0":7864,"key_1":"string","key_2":3930.558840761544,"key_3":"string","key_4":"string"}}],"specialInstructions":"string","metadata":{"key_0":1,"key_1":4626.262390778475,"key_2":true,"key_3":"string"}}],"totalAmount":{"amount":1299,"currency":"USD"},"status":"CONFIRMED","externalId":"string","channelOrderId":"string","channelName":"string","customer":{"id":"string","name":"string","email":"cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje","phone":"string","address":{"street":"123 Main St","city":"New York","state":"NY","postalCode":"10001","country":"US","latitude":3823.7132927288653,"longitude":3858.1866618285308}},"subtotal":{"amount":1299,"currency":"USD"},"tax":{"amount":1299,"currency":"USD"},"tip":{"amount":1299,"currency":"USD"},"deliveryFee":{"amount":1299,"currency":"USD"},"orderType":"PREORDER","scheduledFor":"1984-02-24T17:05:12.508Z","estimatedDeliveryTime":"1971-03-02T15:37:37.022Z","pickupTime":"1980-11-01T08:34:02.898Z","deliveryAddress":{"street":"123 Main St","city":"New York","state":"NY","postalCode":"10001","country":"US","latitude":2628.675700176253,"longitude":2362.338566860771},"notes":"string","metadata":{"key_0":"string"},"createdAt":"1976-04-06T05:01:15.237Z","updatedAt":"1963-03-09T03:31:37.668Z"},"tenantId":"string"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go api_v1_orders_[Not Implemented] Create order_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:8080/api/v1/orders"

	payload := strings.NewReader("{\n  \"posType\": \"DELIVERECT\",\n  \"storeId\": \"string\",\n  \"order\": {\n    \"id\": \"string\",\n    \"storeId\": \"string\",\n    \"items\": [\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 5839,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 3429\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 2256\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 6640\n        }\n      },\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 2274,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 1,\n              \"key_1\": 7379,\n              \"key_2\": \"string\"\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 7864,\n              \"key_1\": \"string\",\n              \"key_2\": 3930.558840761544,\n              \"key_3\": \"string\",\n              \"key_4\": \"string\"\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 1,\n          \"key_1\": 4626.262390778475,\n          \"key_2\": true,\n          \"key_3\": \"string\"\n        }\n      }\n    ],\n    \"totalAmount\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"status\": \"CONFIRMED\",\n    \"externalId\": \"string\",\n    \"channelOrderId\": \"string\",\n    \"channelName\": \"string\",\n    \"customer\": {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje\",\n      \"phone\": \"string\",\n      \"address\": {\n        \"street\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"state\": \"NY\",\n        \"postalCode\": \"10001\",\n        \"country\": \"US\",\n        \"latitude\": 3823.7132927288653,\n        \"longitude\": 3858.1866618285308\n      }\n    },\n    \"subtotal\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tax\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tip\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"deliveryFee\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"orderType\": \"PREORDER\",\n    \"scheduledFor\": \"1984-02-24T17:05:12.508Z\",\n    \"estimatedDeliveryTime\": \"1971-03-02T15:37:37.022Z\",\n    \"pickupTime\": \"1980-11-01T08:34:02.898Z\",\n    \"deliveryAddress\": {\n      \"street\": \"123 Main St\",\n      \"city\": \"New York\",\n      \"state\": \"NY\",\n      \"postalCode\": \"10001\",\n      \"country\": \"US\",\n      \"latitude\": 2628.675700176253,\n      \"longitude\": 2362.338566860771\n    },\n    \"notes\": \"string\",\n    \"metadata\": {\n      \"key_0\": \"string\"\n    },\n    \"createdAt\": \"1976-04-06T05:01:15.237Z\",\n    \"updatedAt\": \"1963-03-09T03:31:37.668Z\"\n  },\n  \"tenantId\": \"string\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Tenant-ID", "string")
	req.Header.Add("X-Store-ID", "string")
	req.Header.Add("X-Api-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby api_v1_orders_[Not Implemented] Create order_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8080/api/v1/orders")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["X-Tenant-ID"] = 'string'
request["X-Store-ID"] = 'string'
request["X-Api-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"posType\": \"DELIVERECT\",\n  \"storeId\": \"string\",\n  \"order\": {\n    \"id\": \"string\",\n    \"storeId\": \"string\",\n    \"items\": [\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 5839,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 3429\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 2256\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 6640\n        }\n      },\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 2274,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 1,\n              \"key_1\": 7379,\n              \"key_2\": \"string\"\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 7864,\n              \"key_1\": \"string\",\n              \"key_2\": 3930.558840761544,\n              \"key_3\": \"string\",\n              \"key_4\": \"string\"\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 1,\n          \"key_1\": 4626.262390778475,\n          \"key_2\": true,\n          \"key_3\": \"string\"\n        }\n      }\n    ],\n    \"totalAmount\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"status\": \"CONFIRMED\",\n    \"externalId\": \"string\",\n    \"channelOrderId\": \"string\",\n    \"channelName\": \"string\",\n    \"customer\": {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje\",\n      \"phone\": \"string\",\n      \"address\": {\n        \"street\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"state\": \"NY\",\n        \"postalCode\": \"10001\",\n        \"country\": \"US\",\n        \"latitude\": 3823.7132927288653,\n        \"longitude\": 3858.1866618285308\n      }\n    },\n    \"subtotal\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tax\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tip\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"deliveryFee\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"orderType\": \"PREORDER\",\n    \"scheduledFor\": \"1984-02-24T17:05:12.508Z\",\n    \"estimatedDeliveryTime\": \"1971-03-02T15:37:37.022Z\",\n    \"pickupTime\": \"1980-11-01T08:34:02.898Z\",\n    \"deliveryAddress\": {\n      \"street\": \"123 Main St\",\n      \"city\": \"New York\",\n      \"state\": \"NY\",\n      \"postalCode\": \"10001\",\n      \"country\": \"US\",\n      \"latitude\": 2628.675700176253,\n      \"longitude\": 2362.338566860771\n    },\n    \"notes\": \"string\",\n    \"metadata\": {\n      \"key_0\": \"string\"\n    },\n    \"createdAt\": \"1976-04-06T05:01:15.237Z\",\n    \"updatedAt\": \"1963-03-09T03:31:37.668Z\"\n  },\n  \"tenantId\": \"string\"\n}"

response = http.request(request)
puts response.read_body
```

```java api_v1_orders_[Not Implemented] Create order_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("http://localhost:8080/api/v1/orders")
  .header("X-Tenant-ID", "string")
  .header("X-Store-ID", "string")
  .header("X-Api-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"posType\": \"DELIVERECT\",\n  \"storeId\": \"string\",\n  \"order\": {\n    \"id\": \"string\",\n    \"storeId\": \"string\",\n    \"items\": [\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 5839,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 3429\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 2256\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 6640\n        }\n      },\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 2274,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 1,\n              \"key_1\": 7379,\n              \"key_2\": \"string\"\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 7864,\n              \"key_1\": \"string\",\n              \"key_2\": 3930.558840761544,\n              \"key_3\": \"string\",\n              \"key_4\": \"string\"\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 1,\n          \"key_1\": 4626.262390778475,\n          \"key_2\": true,\n          \"key_3\": \"string\"\n        }\n      }\n    ],\n    \"totalAmount\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"status\": \"CONFIRMED\",\n    \"externalId\": \"string\",\n    \"channelOrderId\": \"string\",\n    \"channelName\": \"string\",\n    \"customer\": {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje\",\n      \"phone\": \"string\",\n      \"address\": {\n        \"street\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"state\": \"NY\",\n        \"postalCode\": \"10001\",\n        \"country\": \"US\",\n        \"latitude\": 3823.7132927288653,\n        \"longitude\": 3858.1866618285308\n      }\n    },\n    \"subtotal\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tax\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tip\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"deliveryFee\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"orderType\": \"PREORDER\",\n    \"scheduledFor\": \"1984-02-24T17:05:12.508Z\",\n    \"estimatedDeliveryTime\": \"1971-03-02T15:37:37.022Z\",\n    \"pickupTime\": \"1980-11-01T08:34:02.898Z\",\n    \"deliveryAddress\": {\n      \"street\": \"123 Main St\",\n      \"city\": \"New York\",\n      \"state\": \"NY\",\n      \"postalCode\": \"10001\",\n      \"country\": \"US\",\n      \"latitude\": 2628.675700176253,\n      \"longitude\": 2362.338566860771\n    },\n    \"notes\": \"string\",\n    \"metadata\": {\n      \"key_0\": \"string\"\n    },\n    \"createdAt\": \"1976-04-06T05:01:15.237Z\",\n    \"updatedAt\": \"1963-03-09T03:31:37.668Z\"\n  },\n  \"tenantId\": \"string\"\n}")
  .asString();
```

```php api_v1_orders_[Not Implemented] Create order_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'http://localhost:8080/api/v1/orders', [
  'body' => '{
  "posType": "DELIVERECT",
  "storeId": "string",
  "order": {
    "id": "string",
    "storeId": "string",
    "items": [
      {
        "id": "string",
        "name": "string",
        "quantity": 5839,
        "unitPrice": {
          "amount": 1299,
          "currency": "USD"
        },
        "externalId": "string",
        "description": "string",
        "totalPrice": {
          "amount": 1299,
          "currency": "USD"
        },
        "modifiers": [
          {
            "id": "string",
            "name": "string",
            "price": {
              "amount": 1299,
              "currency": "USD"
            },
            "quantity": 1,
            "externalId": "string",
            "metadata": {
              "key_0": 3429
            }
          },
          {
            "id": "string",
            "name": "string",
            "price": {
              "amount": 1299,
              "currency": "USD"
            },
            "quantity": 1,
            "externalId": "string",
            "metadata": {
              "key_0": 2256
            }
          }
        ],
        "specialInstructions": "string",
        "metadata": {
          "key_0": 6640
        }
      },
      {
        "id": "string",
        "name": "string",
        "quantity": 2274,
        "unitPrice": {
          "amount": 1299,
          "currency": "USD"
        },
        "externalId": "string",
        "description": "string",
        "totalPrice": {
          "amount": 1299,
          "currency": "USD"
        },
        "modifiers": [
          {
            "id": "string",
            "name": "string",
            "price": {
              "amount": 1299,
              "currency": "USD"
            },
            "quantity": 1,
            "externalId": "string",
            "metadata": {
              "key_0": 1,
              "key_1": 7379,
              "key_2": "string"
            }
          },
          {
            "id": "string",
            "name": "string",
            "price": {
              "amount": 1299,
              "currency": "USD"
            },
            "quantity": 1,
            "externalId": "string",
            "metadata": {
              "key_0": 7864,
              "key_1": "string",
              "key_2": 3930.558840761544,
              "key_3": "string",
              "key_4": "string"
            }
          }
        ],
        "specialInstructions": "string",
        "metadata": {
          "key_0": 1,
          "key_1": 4626.262390778475,
          "key_2": true,
          "key_3": "string"
        }
      }
    ],
    "totalAmount": {
      "amount": 1299,
      "currency": "USD"
    },
    "status": "CONFIRMED",
    "externalId": "string",
    "channelOrderId": "string",
    "channelName": "string",
    "customer": {
      "id": "string",
      "name": "string",
      "email": "cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje",
      "phone": "string",
      "address": {
        "street": "123 Main St",
        "city": "New York",
        "state": "NY",
        "postalCode": "10001",
        "country": "US",
        "latitude": 3823.7132927288653,
        "longitude": 3858.1866618285308
      }
    },
    "subtotal": {
      "amount": 1299,
      "currency": "USD"
    },
    "tax": {
      "amount": 1299,
      "currency": "USD"
    },
    "tip": {
      "amount": 1299,
      "currency": "USD"
    },
    "deliveryFee": {
      "amount": 1299,
      "currency": "USD"
    },
    "orderType": "PREORDER",
    "scheduledFor": "1984-02-24T17:05:12.508Z",
    "estimatedDeliveryTime": "1971-03-02T15:37:37.022Z",
    "pickupTime": "1980-11-01T08:34:02.898Z",
    "deliveryAddress": {
      "street": "123 Main St",
      "city": "New York",
      "state": "NY",
      "postalCode": "10001",
      "country": "US",
      "latitude": 2628.675700176253,
      "longitude": 2362.338566860771
    },
    "notes": "string",
    "metadata": {
      "key_0": "string"
    },
    "createdAt": "1976-04-06T05:01:15.237Z",
    "updatedAt": "1963-03-09T03:31:37.668Z"
  },
  "tenantId": "string"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Api-Key' => '<apiKey>',
    'X-Store-ID' => 'string',
    'X-Tenant-ID' => 'string',
  ],
]);

echo $response->getBody();
```

```csharp api_v1_orders_[Not Implemented] Create order_example
using RestSharp;

var client = new RestClient("http://localhost:8080/api/v1/orders");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Tenant-ID", "string");
request.AddHeader("X-Store-ID", "string");
request.AddHeader("X-Api-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"posType\": \"DELIVERECT\",\n  \"storeId\": \"string\",\n  \"order\": {\n    \"id\": \"string\",\n    \"storeId\": \"string\",\n    \"items\": [\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 5839,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 3429\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 2256\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 6640\n        }\n      },\n      {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"quantity\": 2274,\n        \"unitPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"externalId\": \"string\",\n        \"description\": \"string\",\n        \"totalPrice\": {\n          \"amount\": 1299,\n          \"currency\": \"USD\"\n        },\n        \"modifiers\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 1,\n              \"key_1\": 7379,\n              \"key_2\": \"string\"\n            }\n          },\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"price\": {\n              \"amount\": 1299,\n              \"currency\": \"USD\"\n            },\n            \"quantity\": 1,\n            \"externalId\": \"string\",\n            \"metadata\": {\n              \"key_0\": 7864,\n              \"key_1\": \"string\",\n              \"key_2\": 3930.558840761544,\n              \"key_3\": \"string\",\n              \"key_4\": \"string\"\n            }\n          }\n        ],\n        \"specialInstructions\": \"string\",\n        \"metadata\": {\n          \"key_0\": 1,\n          \"key_1\": 4626.262390778475,\n          \"key_2\": true,\n          \"key_3\": \"string\"\n        }\n      }\n    ],\n    \"totalAmount\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"status\": \"CONFIRMED\",\n    \"externalId\": \"string\",\n    \"channelOrderId\": \"string\",\n    \"channelName\": \"string\",\n    \"customer\": {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje\",\n      \"phone\": \"string\",\n      \"address\": {\n        \"street\": \"123 Main St\",\n        \"city\": \"New York\",\n        \"state\": \"NY\",\n        \"postalCode\": \"10001\",\n        \"country\": \"US\",\n        \"latitude\": 3823.7132927288653,\n        \"longitude\": 3858.1866618285308\n      }\n    },\n    \"subtotal\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tax\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"tip\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"deliveryFee\": {\n      \"amount\": 1299,\n      \"currency\": \"USD\"\n    },\n    \"orderType\": \"PREORDER\",\n    \"scheduledFor\": \"1984-02-24T17:05:12.508Z\",\n    \"estimatedDeliveryTime\": \"1971-03-02T15:37:37.022Z\",\n    \"pickupTime\": \"1980-11-01T08:34:02.898Z\",\n    \"deliveryAddress\": {\n      \"street\": \"123 Main St\",\n      \"city\": \"New York\",\n      \"state\": \"NY\",\n      \"postalCode\": \"10001\",\n      \"country\": \"US\",\n      \"latitude\": 2628.675700176253,\n      \"longitude\": 2362.338566860771\n    },\n    \"notes\": \"string\",\n    \"metadata\": {\n      \"key_0\": \"string\"\n    },\n    \"createdAt\": \"1976-04-06T05:01:15.237Z\",\n    \"updatedAt\": \"1963-03-09T03:31:37.668Z\"\n  },\n  \"tenantId\": \"string\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift api_v1_orders_[Not Implemented] Create order_example
import Foundation

let headers = [
  "X-Tenant-ID": "string",
  "X-Store-ID": "string",
  "X-Api-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "posType": "DELIVERECT",
  "storeId": "string",
  "order": [
    "id": "string",
    "storeId": "string",
    "items": [
      [
        "id": "string",
        "name": "string",
        "quantity": 5839,
        "unitPrice": [
          "amount": 1299,
          "currency": "USD"
        ],
        "externalId": "string",
        "description": "string",
        "totalPrice": [
          "amount": 1299,
          "currency": "USD"
        ],
        "modifiers": [
          [
            "id": "string",
            "name": "string",
            "price": [
              "amount": 1299,
              "currency": "USD"
            ],
            "quantity": 1,
            "externalId": "string",
            "metadata": ["key_0": 3429]
          ],
          [
            "id": "string",
            "name": "string",
            "price": [
              "amount": 1299,
              "currency": "USD"
            ],
            "quantity": 1,
            "externalId": "string",
            "metadata": ["key_0": 2256]
          ]
        ],
        "specialInstructions": "string",
        "metadata": ["key_0": 6640]
      ],
      [
        "id": "string",
        "name": "string",
        "quantity": 2274,
        "unitPrice": [
          "amount": 1299,
          "currency": "USD"
        ],
        "externalId": "string",
        "description": "string",
        "totalPrice": [
          "amount": 1299,
          "currency": "USD"
        ],
        "modifiers": [
          [
            "id": "string",
            "name": "string",
            "price": [
              "amount": 1299,
              "currency": "USD"
            ],
            "quantity": 1,
            "externalId": "string",
            "metadata": [
              "key_0": 1,
              "key_1": 7379,
              "key_2": "string"
            ]
          ],
          [
            "id": "string",
            "name": "string",
            "price": [
              "amount": 1299,
              "currency": "USD"
            ],
            "quantity": 1,
            "externalId": "string",
            "metadata": [
              "key_0": 7864,
              "key_1": "string",
              "key_2": 3930.558840761544,
              "key_3": "string",
              "key_4": "string"
            ]
          ]
        ],
        "specialInstructions": "string",
        "metadata": [
          "key_0": 1,
          "key_1": 4626.262390778475,
          "key_2": true,
          "key_3": "string"
        ]
      ]
    ],
    "totalAmount": [
      "amount": 1299,
      "currency": "USD"
    ],
    "status": "CONFIRMED",
    "externalId": "string",
    "channelOrderId": "string",
    "channelName": "string",
    "customer": [
      "id": "string",
      "name": "string",
      "email": "cZs8@wAHRILMREhMfdxLVVBecpisRHtUv.rje",
      "phone": "string",
      "address": [
        "street": "123 Main St",
        "city": "New York",
        "state": "NY",
        "postalCode": "10001",
        "country": "US",
        "latitude": 3823.7132927288653,
        "longitude": 3858.1866618285308
      ]
    ],
    "subtotal": [
      "amount": 1299,
      "currency": "USD"
    ],
    "tax": [
      "amount": 1299,
      "currency": "USD"
    ],
    "tip": [
      "amount": 1299,
      "currency": "USD"
    ],
    "deliveryFee": [
      "amount": 1299,
      "currency": "USD"
    ],
    "orderType": "PREORDER",
    "scheduledFor": "1984-02-24T17:05:12.508Z",
    "estimatedDeliveryTime": "1971-03-02T15:37:37.022Z",
    "pickupTime": "1980-11-01T08:34:02.898Z",
    "deliveryAddress": [
      "street": "123 Main St",
      "city": "New York",
      "state": "NY",
      "postalCode": "10001",
      "country": "US",
      "latitude": 2628.675700176253,
      "longitude": 2362.338566860771
    ],
    "notes": "string",
    "metadata": ["key_0": "string"],
    "createdAt": "1976-04-06T05:01:15.237Z",
    "updatedAt": "1963-03-09T03:31:37.668Z"
  ],
  "tenantId": "string"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8080/api/v1/orders")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```