← All types
In Input object

UpsertAddressInput

Input for creating or updating an address

Fields

Known IANA timezone at this address; no geographic inference. Omit to retain on patch updates.

id

AddressIDOptional

ID for update; omit for create

Owner customer ID

Associated contact ID

Owner supplier ID (for supplier addresses)

External system identifier (unique per tenant when set)

HTTP(S) link to this record in the external system. Requires an external identity. Omit to preserve the existing link, or pass null to clear it. Removing the external identity also removes its link.

Type of address (required)

Possible values (3)
BILLING

Billing address for invoices

SHIPPING

Shipping/delivery address

BOTH

Address used for both billing and shipping

street1

String!Required

Street address line 1 (required)

Street address line 2

city

String!Required

City (required)

state

StringOptional

State or province

ZIP or postal code

country

String!Required

Country code (required)

Whether this is the default address

Referenced by (3)
Exact type SDL
"""Input for creating or updating an address"""
input UpsertAddressInput {
  """
  Known IANA timezone at this address; no geographic inference. Omit to retain on patch updates.
  """
  timezone: String
  """ID for update; omit for create"""
  id: AddressID
  """Owner customer ID"""
  customerId: CustomerID
  """Associated contact ID"""
  contactId: ContactID
  """Owner supplier ID (for supplier addresses)"""
  supplierId: SupplierID
  """External system identifier (unique per tenant when set)"""
  externalId: String
  """
  HTTP(S) link to this record in the external system. Requires an external identity. Omit to preserve the existing link, or pass null to clear it. Removing the external identity also removes its link.
  """
  externalUrl: String
  """Type of address (required)"""
  addressType: AddressType!
  """Street address line 1 (required)"""
  street1: String!
  """Street address line 2"""
  street2: String
  """City (required)"""
  city: String!
  """State or province"""
  state: String
  """ZIP or postal code"""
  postalCode: String
  """Country code (required)"""
  country: String!
  """Whether this is the default address"""
  isDefault: Boolean
}