Skip to main content
POST
Create Address

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user.

Body

application/json
country_code
string
required

The code of an existing record in the countries table.

Example:

"omnis"

company_name
string
required

Must match the regex /^[A-Za-z0-9.()[],'"_/@&!*+-, ]+$/. Must not be greater than 150 characters.

Example:

"jzsownjgx"

line_one
string
required

Must be at least 2 characters. Must not be greater than 100 characters.

Example:

"cofimzvpd"

city
string
required

Must not be greater than 90 characters.

Example:

"ilxwsdnlbwvytaawwo"

postcode
string
required

Must not be greater than 20 characters.

Example:

"ktuh"

vat_number
string | null
Example:

"aliquid"

first_name
string | null

Must not be greater than 20 characters.

Example:

"ozodbspvpeamhjxiqp"

last_name
string | null

Must not be greater than 30 characters.

Example:

"vjurrvwix"

company_code
string | null

Must be at least 3 characters. Must not be greater than 20 characters.

Example:

"neozbpfavqkkd"

line_two
string | null

Must not be greater than 100 characters.

Example:

"vrtcwet"

line_three
string | null

Must not be greater than 100 characters.

Example:

"ckihroigi"

province_code
string | null

The code of an existing record in the provinces table. Must not be greater than 20 characters.

Example:

"jjpjopnpgfckrsusjqrd"

contact_email
string | null

Must be a valid email address. Must not be greater than 255 characters.

contact_phone
string | null

Must not be greater than 20 characters.

Example:

"jfjlexnewcauvhbudw"

Response

200 - application/json
data
object