---
title: "Update an order's external IDs"
method: PUT
path: "/shop/orders/{orderId}/external-ids"
tags: ["Orders"]
---

# Update an order's external IDs

`PUT /shop/orders/{orderId}/external-ids`

Use this endpoint to update one or more of an order's external IDs

## Request body

- object
  - `external_ids` object[]
    - `key` string, required — The key of the ID.
    - `value` integer, required — The value of the ID for this order

## Response `200`

Contains details of the external IDs applied to an order.

- object
  - `data` OrderExternalId[]
    - `key` string, required — The key of the external ID.
    - `name` string, required — The name of the external ID type.
    - `value` string, required — The value of the external ID for this order.

## Other responses

- `404` — The resource couldn't be found
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
