---
title: "Add customer to an order"
method: POST
path: "/shop/orders/{orderId}/customer"
tags: ["Orders"]
---

# Add customer to an order

`POST /shop/orders/{orderId}/customer`

Use this endpoint to add a customer to an order.

## Request body

- object
  - `id` string, required — Identifier of the customer to attach as the lead booker on this order. Where `source` is `trybe` this is the Trybe customer UUID; for third-party sources it's the external customer reference from the PMS or CRM.
  - `source` string — The source of the customer addition

## Response `201`

A summary of a customer

- object
  - `data` SchemasCustomerSummary2 — A lightweight projection of a `Customer` containing only the fields needed to display the guest in an order context (name, contact, ID). Use the full `Customer` endpoint when you need addresses, memberships, marketing preferences or payment methods.
    - `id` string, required — The ID of the customer.
    - `first_name` string, required — The first name of the customer.
    - `last_name` string, required — The last name of the customer.
    - `full_name` string, required — The full name of the customer.
    - `email` string, required — The email address of the customer.
    - `phone` string, required — The phone number of the customer.
    - `labels` SchemasCustomerLabel2[], required — A list of labels assigned to the customer.
      - `id` string, required — The ID of the label.
      - `color` string — The color of the label.
      - `name` string, required — The name of the label.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `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)
