---
title: "Create an order/cart"
method: POST
path: "/data/v1/orders"
tags: ["Sales data"]
---

# Create an order/cart

`POST /data/v1/orders`

Create an order or an abandoned cart.

## Request body

- object
  - `external_id` string, required
  - `contact_id` string, required
  - `card_code` string
  - `store_external_id` string, required
  - `ordered_at` string — When the order was purchased (local timezone).
  - `discount_amount` number
  - `shipping_amount` number
  - `total_price` number
  - `tax_amount` number
  - `completed` boolean — Order is purchased or not
  - `sales_person` string
  - `currency` string
  - `products` object[]
    - `product_id` string
    - `unit_price` number
    - `quantity` integer
    - `discount_amount` number
    - `tax_amount` number
    - `currency` string
    - `total_line_amount` number
  - `custom_fields` object[]
    - `id` integer
    - `name` string
    - `value` string

## Response `201`

Order creation is successful.

## Other responses

- `400` — The request validation failed.
- `401` — Authentication failed.
- `403` — Forbidden.

---

[API](https://skmtc.net/splio/apis/splio-customer-platform.md) · [All operations](https://skmtc.net/splio/apis/splio-customer-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/splio/splio-customer-platform/revisions/2ff4735f665c/schema)
