---
title: "Update order data"
method: PUT
path: "/orders/{id}"
tags: ["Orders API"]
---

# Update order data

`PUT /orders/{id}`

Updates unsubmitted order and optionally submits it for the fulfillment.

 Note that you need to post only the fields that need to be changed, not all required fields.

 If items array is given in the update data, the items will be:

 a) updated, if the update data contains the item id or external_id parameter that alreay exists

 b) deleted, if the request doesn't contain the item with previously existing id

 c) created as new if the id is not given or does not already exist

## Path parameters

- `id` union, required
  - string
  - integer

## Query parameters

- `confirm` boolean

## Headers

- `X-PF-Store-Id` string

## Request body

- Order — unresolved $ref

## Response `200`

OK

- object
  - `code` integer — Response status code `200`
  - `result` Order — unresolved $ref

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/printful/apis/api-documentation-printful.md) · [All operations](https://skmtc.net/printful/apis/api-documentation-printful/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printful/api-documentation-printful/revisions/18e2f2e178dd/schema)
