---
title: "Assign user to order"
method: POST
path: "/orders/assignuser"
tags: ["orders"]
---

# Assign user to order

`POST /orders/assignuser`

Assigns a user to an order. If ANY of the orders within the array are not found, no orders will have a user assigned to them.

## Request body

- object
  - `orderIds` integer[], required — Array of order IDs to assign
  - `userId` string, required — User GUID to assign to orders

## Response `200`

User assigned successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — Bad Request - The request could not be understood or was missing required parameters
- `401` — Unauthorized - Authentication credentials are missing or invalid
- `500` — Internal Server Error - An error occurred on the server

---

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