---
title: "Upsert an order"
method: PUT
path: "/unstable/order"
tags: ["Order"]
---

# Upsert an order

`PUT /unstable/order`

## Request

- Base URL: `https://api.authentified.co`
- URL: `https://api.authentified.co/unstable/order`
- Auth: API key in header `X-Authentified-API-Key`

Upsert an order

## Request body

- object
  - `id` string, required: The Unique Identifier of the order in your system
  - `customerId` string, required: The Unique Identifier of the customer who placed the order
  - `paidStatus` 'PENDING' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'PAID' | 'REFUNDED' | 'VOIDED', required: The financial status of the order
  - `total` number: The total amount of the order
  - `currencyCode` string: The currency code of the order total
  - `createdAt` string, date-time: The date and time when the order was created in your system
  - `updatedAt` string, date-time: The date and time when the order was updated in your system

## Response `200`

Order updated successfully

- object: Order updated successfully
  - `id` string, required: The Unique Identifier of the order in your system
  - `customerId` string, required: The Unique Identifier of the customer who placed the order
  - `paidStatus` 'PENDING' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'PAID' | 'REFUNDED' | 'VOIDED', required: The financial status of the order
  - `total` number: The total amount of the order
  - `currencyCode` string: The currency code of the order total
  - `createdAt` string, date-time: The date and time when the order was created in your system
  - `updatedAt` string, date-time: The date and time when the order was updated in your system

## Other responses

- `201`: Order created successfully
- `400`: Bad Request - Invalid parameters
- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - API key does not have access to this resource

---

[API](https://skmtc.dev/authentified/apis/authentified-rest-api.md) - [All operations](https://skmtc.dev/authentified/apis/authentified-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/authentified/apis/authentified-rest-api/revisions/1c72a50690bf?raw)
