---
title: "Sets the customer for an in progress standard order or in progress gift shop order"
method: PUT
path: "/ocapi/v1/orders/{orderId}/customer"
tags: ["Orders"]
---

# Sets the customer for an in progress standard order or in progress gift shop order

`PUT /ocapi/v1/orders/{orderId}/customer`

This endpoint is not available for in progress subscription order entities, as the order customer is
automatically set based on the details of the authenticated member

#### Licenses Required


- Vista.Ocapi

## Path parameters

- `orderId` string, required

## Headers

- `Connect-Region-Code` string

## Request body

- OcapiV1OrdersCustomersRequestsOrderCustomerUpdate — Represents the properties required to update the details of an order customer
  - `name` OcapiV1PersonName — Represents the parts of a person's name
    - `givenName` string, nullable — Gets the given name
    - `familyName` string, nullable — Gets the family name
    - `middleName` string, nullable — Gets the middle or any additional name
  - `email` string, required — Gets the email address
  - `phoneNumber` string, nullable — Gets the phone number
  - `preferences` OcapiV1OrdersCustomersOrderCustomerPreferences — Represents the preferences of an order customer
    - `languageTag` string, nullable — Gets the IETF (RFC 4646) language tag
  - `taxDetails` OcapiV1OrdersCustomersOrderCustomerTaxDetails — Represents the tax details of an order customer
    - `name` string, nullable — Gets the tax name, if known
    - `number` string, nullable — Gets the tax number, if known
  - `deliveryAddress` OcapiV1OrdersCustomersOrderCustomerAddress — Represents the details of a postal/billing address of an order customer
    - `name` OcapiV1PersonName — Represents the parts of a person's name
      - `givenName` string, nullable — Gets the given name
      - `familyName` string, nullable — Gets the family name
      - `middleName` string, nullable — Gets the middle or any additional name
    - `companyName` string, nullable — Gets the name of the company, if applicable
    - `phoneNumber` string, nullable — Gets the phone number of the recipient, if applicable
    - `line1` string, nullable — Gets the first line
    - `suburb` string, nullable — Gets the suburb
    - `city` string, nullable — Gets the city
    - `state` string, nullable — Gets the state
    - `postCode` string, nullable — Gets the post code
    - `country` string, nullable — Gets the country
  - `billingAddress` OcapiV1OrdersCustomersOrderCustomerAddress — Represents the details of a postal/billing address of an order customer
    - `name` OcapiV1PersonName — Represents the parts of a person's name
      - `givenName` string, nullable — Gets the given name
      - `familyName` string, nullable — Gets the family name
      - `middleName` string, nullable — Gets the middle or any additional name
    - `companyName` string, nullable — Gets the name of the company, if applicable
    - `phoneNumber` string, nullable — Gets the phone number of the recipient, if applicable
    - `line1` string, nullable — Gets the first line
    - `suburb` string, nullable — Gets the suburb
    - `city` string, nullable — Gets the city
    - `state` string, nullable — Gets the state
    - `postCode` string, nullable — Gets the post code
    - `country` string, nullable — Gets the country

## Response `204`

Order customer updated.

## Other responses

- `400` — Request property is invalid or missing, or customer cannot be set.
- `404` — Order does not exist.

---

[API](https://skmtc.dev/vista/apis/vista-digital-platform.md) · [All operations](https://skmtc.dev/vista/apis/vista-digital-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vista/vista-digital-platform/revisions/e1216e3df445/schema)
