Skip to main content

customerCreateAddress

Requires a customer (portal or buyer app) session.

Add a partner delivery address (partner-scoped Address row, mirrors mobile-bff). screen 17.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation CustomerCreateAddress($input: CustomerAddressInput!) {
customerCreateAddress(input: $input) {
id
postalCode
type
city
contactPhone
country
}
}

Variables:

{
"input": {
"city": "string",
"country": "string",
"postalCode": "string",
"street1": "string"
}
}

Response:

{
"data": {
"customerCreateAddress": {
"id": "id",
"postalCode": "string",
"type": "BILLING",
"city": "string",
"contactPhone": "string",
"country": "string"
}
}
}
customerCreateAddress(
input: CustomerAddressInput!
): CustomerAddress!

Arguments​

customerCreateAddress.input ● CustomerAddressInput! non-null input​

The details of the customer address request.

Type​

CustomerAddress object​

An address of the customer.