Skip to content

Update a company address

PATCH
/addresses/{address_id}
address_id
required

Address id

string
/^[1-9]\d*$/
Example
42
object
first_name
string
>= 1 characters
last_name
string
>= 1 characters
phone
string
>= 1 characters
phone_country
string
>= 1 characters
address1
string
>= 1 characters <= 70 characters
address2
string
<= 70 characters
zip
string
>= 1 characters
city
string
>= 1 characters
country

ISO 3166-1 alpha-2 country code

string
Example
FR
type
string
label
string
>= 1 characters
comment
string
is_default
boolean

Updated address

object
data
required
object
id
required
integer
first_name
required
string
nullable
last_name
required
string
nullable
phone
required
string
nullable
phone_country
required
string
nullable
address1
required
string
nullable
address2
required
string
nullable
type
required
string
nullable
zip
required
string
nullable
city
required
string
nullable
country
required

ISO 3166-1 alpha-2 country code

string
nullable
Example
FR
label
required
string
nullable
comment
required
string
nullable
is_default
required
boolean
is_hq
required
boolean

Validation error

object
error
required
string

Forbidden

object
error
required
string
Allowed values: INSUFFICIENT_SCOPE

Resource not found

object
error
required
string
Allowed values: COMPANY_NOT_FOUND ADDRESS_NOT_FOUND DELIVERY_COUNTRY_NOT_FOUND

Internal server error

object
error
required
string
Allowed values: INTERNAL_ERROR