Skip to main content

Create an Customer Address

POST 

/v2/customers/:customerID/addresses/:addressID

Create an Customer Address

Request

Path Parameters

    customerID stringrequired

    The ID of the customer you want to create an address for.

Body

    data Addressrequired
    type string

    Default value: address

    Specifies the the type of object. Set this value to address.

    first_name string

    The first name of the recipient on this address.

    last_name string

    The last name of the recipient on this address.

    name string

    The name for the address saved, such as home, work or wife’s office.

    phone_number string

    A phone number for this address.

    instructions string

    Any delivery instructions for this address.

    company_name string

    The company name at this address.

    line_1 string

    The first portion of the address, usually the street address.

    line_2 string

    The second portion of the address, usually an apartment or unit number.

    city string

    The city for this address.

    county string

    The county for this address.

    region string

    The state, province, territory, etc. for this address.

    postcode string

    The ZIP Code, Postcode, or other postal reference string for this delivery address.

    country string

    A two digit code for the country this address is in, expressed as per the ISO 3166-2 standard.

Responses

OK

Schema
    data object
    type string

    Default value: address

    Specifies the the type of object. Set this value to address.

    first_name string

    The first name of the recipient on this address.

    last_name string

    The last name of the recipient on this address.

    name string

    The name for the address saved, such as home, work or wife’s office.

    phone_number string

    A phone number for this address.

    instructions string

    Any delivery instructions for this address.

    company_name string

    The company name at this address.

    line_1 string

    The first portion of the address, usually the street address.

    line_2 string

    The second portion of the address, usually an apartment or unit number.

    city string

    The city for this address.

    county string

    The county for this address.

    region string

    The state, province, territory, etc. for this address.

    postcode string

    The ZIP Code, Postcode, or other postal reference string for this delivery address.

    country string

    A two digit code for the country this address is in, expressed as per the ISO 3166-2 standard.

    id string

    The unique identifier for an Address.

    meta object
    timestamps object
    created_at string

    The date the address is created.

    updated_at string

    The date the address is updated.

    links object
    self string

    A URL to the specific resource.

    relationships object
    customer object
    id string

    The ID of the customer.

    type string

    The type of object being returned.

Loading...