---
title: "Gets the customer set on a completed standard order or completed gift shop order"
method: GET
path: "/ocapi/v1/orders/completed/{orderId}/customer"
tags: ["Completed Orders"]
---

# Gets the customer set on a completed standard order or completed gift shop order

`GET /ocapi/v1/orders/completed/{orderId}/customer`

## Request

- Base URL: `https://developer.vista.co` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.vista.co/ocapi/v1/orders/completed/{orderId}/customer`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vista/apis/vista-digital-platform/docs/ocapi/v1/orders/completed/:orderId/customer/get.ts> (a function with typed inputs; its response is checked against the schema)

As order customer contains Personally Identifiable Information (PII),
the client is responsible for storing this data securely and for as little time as possible.

#### Licenses Required


- Vista.Ocapi

## Path parameters

- `orderId` string, required

## Headers

- `Connect-Region-Code` string

## Response `200`

Success

- OcapiV1OrdersCustomersOrderCustomerDetails: Represents the details of a customer set against an order base
  - `customer` OcapiV1OrdersCustomersOrderCustomer: Represents the details of a customer set against an order base
    - `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, if known
    - `preferences` OcapiV1OrdersCustomersOrderCustomerPreferences, required: Represents the preferences of an order customer
      - `languageTag` string, nullable: Gets the IETF (RFC 4646) language tag
    - `taxDetails` OcapiV1OrdersCustomersOrderCustomerTaxDetails, required: 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

## Other responses

- `400`: Invalid order type.
- `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.dev/vista/apis/vista-digital-platform/revisions/c46f30854000?raw)
