Addresses

Retrieving customer addresses

get

Retrieves a list of addresses for a specified customer.

Required scopes
This endpoint requires the following scopes:
  • : Needed to retrieve customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Responses
200

OK

application/json
get
/customer/{tenant}/customers/{customerNumber}/addresses

Adding a customer address

post

Adds an address to a specified customer profile.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstring · min: 3 · max: 16Required

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Body
idstringOptional

Custom customer address identifier. If not provided, it is automatically generated.

contactNamestringRequired
companyNamestringOptional
streetstringOptional
streetNumberstringOptional
streetAppendixstringOptional
extraLine1stringOptional
extraLine2stringOptional
extraLine3stringOptional
extraLine4stringOptional
zipCodestringOptional
citystringOptional
countrystring · min: 2 · max: 2Optional
statestringOptional
contactPhonestringOptional
isDefaultbooleanOptional

Flag indicating whether the address is the customer default address.

Default: false
tagsstring[]Optional
Responses
post
/customer/{tenant}/customers/{customerNumber}/addresses

Retrieving a customer address

get

Retrieves a specified customer address and its details.

Required scopes
This endpoint requires the following scopes:
  • : Needed to retrieve customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
addressIdstringRequired

Address unique identifier generated when the address is added to a customer profile.

customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Responses
200

OK

application/json
get
/customer/{tenant}/customers/{customerNumber}/addresses/{addressId}

Upserting a customer address

put

Updates a specified customer address or creates a new one if it doesn't exist yet.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
addressIdstringRequired

Address unique identifier generated when the address is added to a customer profile.

customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Body
Responses
put
/customer/{tenant}/customers/{customerNumber}/addresses/{addressId}

Deleting a customer address

delete

Deletes a specified customer address.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
addressIdstringRequired

Address unique identifier generated when the address is added to a customer profile.

customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Responses
delete
/customer/{tenant}/customers/{customerNumber}/addresses/{addressId}

No content

Partially updating a customer address

patch

Updates a specified customer address.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
addressIdstringRequired

Address unique identifier generated when the address is added to a customer profile.

customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Body
Responses
200

OK

No content

patch
/customer/{tenant}/customers/{customerNumber}/addresses/{addressId}

No content

Adding tags to a customer address

post

Adds tags to a specified customer address.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Available scopes:
  • : Needed to retrieve customer profiles.
  • : Needed by customer to retrieve customer profiles from the same company.
  • : Needed to manage customer profiles.
  • : Needed by customer to manage customer profiles from the same company.
Path parameters
addressIdstringRequired

Address unique identifier generated when the address is added to a customer profile.

customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Query parameters
tagsstringRequired

List of address tags, separated by commas.

Example: BILLING,SHIPPING
Responses
post
/customer/{tenant}/customers/{customerNumber}/addresses/{addressId}/tags

No content

Deleting tags from a customer address

delete

Deletes tags from a specified customer address.

Required scopes
This endpoint requires the following scopes:
  • : Needed to manage customer profiles.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
addressIdstringRequired

Address unique identifier generated when the address is added to a customer profile.

customerNumberstringRequired

Customer unique identifier generated when the customer profile is created.

tenantstringRequired

Your Emporix tenant name.

Note: The tenant should always be written in lowercase.

Query parameters
tagsstringRequired

List of address tags, separated by commas.

Example: BILLING,SHIPPING
Responses
delete
/customer/{tenant}/customers/{customerNumber}/addresses/{addressId}/tags

No content

Last updated

Was this helpful?