Retrieve a customer
All field references · Customers
GET /v1/customers/{id}
Returns a customer of the organization. Unknown IDs and IDs of other organizations return 404, never 403. Requires the one-time approval of the organization.
Required scopes: "customers:read".
#Parameters
#path: id
Required. Meykt ID of the customer.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#Request body
No request body is defined for this operation.
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.customer | object | Required when parent is present | Not allowed | Customer contact or master data authorized for this response. Additional properties are not allowed. |
| data.customer.id | string | Required when parent is present | Not allowed | Stable entry identifier. format: "uuid". |
| data.customer.code | string | Required when parent is present | Not allowed | Customer number, unique within your organization. |
| data.customer.name | string | Required when parent is present | Not allowed | Display name. |
| data.customer.salutation | string or null | Required when parent is present | Allowed by schema | Salutation code for this person. |
| data.customer.first_name | string or null | Required when parent is present | Allowed by schema | Given name of this person. |
| data.customer.last_name | string or null | Required when parent is present | Allowed by schema | Family name of this person. |
| data.customer.email | string or null | Required when parent is present | Allowed by schema | Contact email address. |
| data.customer.phone | string or null | Required when parent is present | Allowed by schema | Contact telephone number, including international prefix where applicable. |
| data.customer.mobile | string or null | Required when parent is present | Allowed by schema | Mobile telephone number, including international prefix where applicable. |
| data.customer.company | string or null | Required when parent is present | Allowed by schema | Company or organization name. |
| data.customer.customer_type | string | Required when parent is present | Not allowed | Customer classification: consumer, business or wholesale as indicated by the code. |
| data.customer.billing_address | object | Required when parent is present | Not allowed | Customer billing address; absent member values are returned as null. Additional properties are not allowed. |
| data.customer.billing_address.street | string or null | Required when parent is present | Allowed by schema | Street name; house number is provided separately in house_number. |
| data.customer.billing_address.house_number | string or null | Required when parent is present | Allowed by schema | House number including any suffix. |
| data.customer.billing_address.address_line2 | string or null | Required when parent is present | Allowed by schema | Additional address information such as floor, department or care-of recipient. |
| data.customer.billing_address.postal_code | string or null | Required when parent is present | Allowed by schema | Postal code as text, preserving leading zeroes. |
| data.customer.billing_address.city | string or null | Required when parent is present | Allowed by schema | City or locality. |
| data.customer.billing_address.country | string or null | Required when parent is present | Allowed by schema | Country recorded for the address; use the format documented for this endpoint. |
| data.customer.website_url | string or null | Required when parent is present | Allowed by schema | Customer website address. |
| data.customer.company_size | string or null | Required when parent is present | Allowed by schema | Company size classification or description. |
| data.customer.preferred_content_language | string or null | Required when parent is present | Allowed by schema | Preferred two-character content-language code such as de or en. |
| data.customer.is_active | boolean | Required when parent is present | Not allowed | Whether this entry is currently active and available for ordinary use. |
| data.customer.custom_fields | object | Required when parent is present | Not allowed | Customer fields keyed by their configured field identifiers. |
| data.customer.custom_fields.{key} | any JSON value | Every additional entry | Allowed by schema | Value stored for the configured customer field. Discover its declared type and options through GET /v1/customers/fields. |
| data.customer.delivery_address | alternative (anyOf) | Required when parent is present | Allowed by schema | Default shipping address, or null when none is recorded. |
| data.customer.delivery_address | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Default shipping address, or null when none is recorded. Additional properties are not allowed. |
| data.customer.delivery_address.street | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Street name; house number is provided separately in house_number. |
| data.customer.delivery_address.house_number | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. House number including any suffix. |
| data.customer.delivery_address.address_line2 | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Additional address information such as floor, department or care-of recipient. |
| data.customer.delivery_address.postal_code | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| data.customer.delivery_address.city | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. City or locality. |
| data.customer.delivery_address.country | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Country recorded for the address; use the format documented for this endpoint. |
| data.customer.delivery_address.company | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Company or organization name. |
| data.customer.delivery_address.first_name | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Given name of this person. |
| data.customer.delivery_address.last_name | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Family name of this person. |
| data.customer.delivery_address | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Default shipping address, or null when none is recorded. |
| data.customer.contacts | array | Required when parent is present | Not allowed | Customer contacts, primary first and then in creation order. |
| data.customer.contacts[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| data.customer.contacts[].salutation | string or null | Required when parent is present | Allowed by schema | Salutation code for this person. |
| data.customer.contacts[].first_name | string | Required when parent is present | Not allowed | Given name of this person. |
| data.customer.contacts[].last_name | string | Required when parent is present | Not allowed | Family name of this person. |
| data.customer.contacts[].position | string or null | Required when parent is present | Allowed by schema | Job title or role of this contact. |
| data.customer.contacts[].email | string or null | Required when parent is present | Allowed by schema | Contact email address. |
| data.customer.contacts[].phone | string or null | Required when parent is present | Allowed by schema | Contact telephone number, including international prefix where applicable. |
| data.customer.contacts[].mobile | string or null | Required when parent is present | Allowed by schema | Mobile telephone number, including international prefix where applicable. |
| data.customer.contacts[].is_primary | boolean | Required when parent is present | Not allowed | Whether this is the primary contact. |
| data.customer.created_at | string | Required when parent is present | Not allowed | Created at, with time-zone offset. format: "date-time". |
| data.customer.updated_at | string | Required when parent is present | Not allowed | Last changed at, with time-zone offset. format: "date-time". |
#Response 401, 403, 404, 429, 500, 503
401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: "uri". |
Machine-readable version of this page: https://www.meykt.com/developers/fields-get-customer.md