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

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
Request
path Parameters
orderId
required
string

The unique identifier of the in progress standard order or in progress gift shop order being modified

header Parameters
Connect-Region-Code
string

Region Code

Request Body schema:
required

The customer's details

object (PersonName)

Represents the parts of a person's name

email
required
string [ 0 .. 255 ] characters

Gets the email address

phoneNumber
string or null [ 0 .. 25 ] characters

Gets the phone number

object (OrderCustomerPreferences)

Represents the preferences of an order customer

object (OrderCustomerTaxDetails)

Represents the tax details of an order customer

Responses
204

Order customer updated.

400

Request property is invalid or missing, or customer cannot be set.

404

Order does not exist.

put/ocapi/v1/orders/{orderId}/customer
Request samples
{
  • "name": {
    },
  • "email": "string",
  • "phoneNumber": "string",
  • "preferences": {
    },
  • "taxDetails": {
    }
}