Create a Warehouse
Use this API request call to create a warehouse location in ShipEngine. The response will generate and return the warehouse_id
that serves as an identifier for that warehouse, for example, "warehouse_id": "se-123456".
You can use a warehouse_id
to enable many special features in ShipEngine. They're necessary to create manifests, and they help to more efficiently and reliably indicate Ship From information. If you generate and print return shipping labels, use a warehouse_id
to provide the address of your returns department. This is especially helpful if that Returns Location exists at a separate address from your primary warehouse.
If you do not supply the return address in the request body, then ShipEngine assumes that the origin address and return address are both the same.
Example
CLICK TO OPEN: Table with Parameter Requirements to Create a Warehouse. For samples of a full request, see the EXAMPLE REQUEST section below.
NOTE: The symbol
-->
in this table means thatproperty
is part of an object.
Property Name | Required | Type | Description |
---|---|---|---|
is_default | boolean | Nullable. Default: false Designates which single warehouse is the default on the account. | |
name | ✔ | string | non-empty Name of the warehouse. |
origin_address | ✔ | object | The origin address of the warehouse. |
--> name | ✔ | string | non-empty The name of a contact person at this address. This field may be set instead of, or in addition to, the company_name field. |
--> phone | ✔ | string | non-empty The phone number of a contact person at this address. The format of this phone number varies depending on the country. |
--> email | string | Nullable Email for the address owner. | |
--> company_name | string | Nullable non-empty If this is a business address, then specify the company name here. | |
--> address_line1 | ✔ | string | non-empty The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines. |
--> address_line2 | string | Nullable non-empty The second line of the street address. For some addresses, this line may not be needed. | |
--> address_line3 | string | Nullable non-empty The third line of the street address. For some addresses, this line may not be needed. | |
--> city_locality | ✔ | string | non-empty The name of the city or locality. |
--> state_province | ✔ | string | non-empty The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation. |
--> postal_code | ✔ | string | non-empty postal code |
--> country_code | ✔ | string | 2 characters The two-letter ISO 3166-1 country code. |
--> address_residential_indicator | ✔ | string | Default: "unknown" Enum: "unknown" "yes" "no" Indicates whether or not this is a residential address. |
return_address | object | The return address of the warehouse. | |
--> name | ✔ | string | non-empty The name of a contact person at this address. This field may be set instead of, or in addition to, the company_name field. |
--> phone | ✔ | string | non-empty The phone number of a contact person at this address. The format of this phone number varies depending on the country. |
--> email | string | Nullable Email for the address owner. | |
--> company_name | string | Nullable non-empty If this is a business address, then specify the company name here. | |
--> address_line1 | ✔ | string | non-empty The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines. |
--> address_line2 | string | non-empty Nullable | |
--> address_line3 | string | non-empty Nullable | |
--> city_locality | ✔ | string | non-empty The name of the city or locality. |
--> state_province | ✔ | string | non-empty The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation. |
--> postal_code | ✔ | string | non-empty postal code |
--> country_code | ✔ | string | 2 characters The two-letter ISO 3166-1 country code. |
--> address_residential_indicator | ✔ | string | Default: "unknown" Enum: "unknown" "yes" "no" Indicates whether or not this is a residential address. |
POST /v1/warehouses
Example Request
Example Response
CLICK TO OPEN: Table with 200 Response Schema when you Create a Warehouse. For samples of a full request, see the EXAMPLE RESPONSE section below.
NOTE: The symbol
-->
in this table means thatproperty
is part of an object.
Property Name | Required | Type | Description |
---|---|---|---|
warehouse_id | ✔ | string | [ 1 .. 25 ] characters A string that uniquely identifies the warehouse. |
is_default | boolean | Nullable. Default: false Designates which single warehouse is the default on the account. | |
name | ✔ | string | non-empty Name of the warehouse. |
created_at | ✔ | string | <date-time> non-empty Timestamp that indicates when the warehouse was created. |
origin_address | ✔ | object | The origin address of the warehouse |
--> name | ✔ | string | non-empty The name of a contact person at this address. This field may be set instead of, or in addition to, the company_name field. |
--> phone | ✔ | string | non-empty The phone number of a contact person at this address. The format of this phone number varies depending on the country. |
--> email | string | Nullable Email for the address owner. | |
--> company_name | string | Nullable non-empty If this is a business address, then specify the company name here. | |
--> address_line1 | ✔ | string | non-empty The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines. |
--> address_line2 | string | Nullable non-empty The second line of the street address. For some addresses, this line may not be needed. | |
--> address_line3 | string | Nullable non-empty The third line of the street address. For some addresses, this line may not be needed. | |
--> city_locality | ✔ | string | non-empty The name of the city or locality. |
--> state_province | ✔ | string | non-empty The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation. |
--> postal_code | ✔ | string | non-empty postal code |
--> country_code | ✔ | string | 2 characters The two-letter ISO 3166-1 country code |
--> address_residential_indicator | ✔ | string | Default: "unknown" Enum: "unknown" "yes" "no" Indicates whether or not this is a residential address. |
return_address | object | The return address of the warehouse. | |
--> name | ✔ | string | non-empty The name of a contact person at this address. This field may be set instead of, or in addition to, the company_name field. |
--> phone | ✔ | string | non-empty The phone number of a contact person at this address. The format of this phone number varies depending on the country. |
--> email | string | Nullable Email for the address owner. | |
--> company_name | string | Nullable non-empty If this is a business address, then specify the company name here. | |
--> address_line1 | ✔ | string | non-empty The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines. |
--> address_line2 | string | non-empty Nullable | |
--> address_line3 | string | non-empty Nullable | |
--> city_locality | ✔ | string | non-empty The name of the city or locality. |
--> state_province | ✔ | string | non-empty The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation. |
--> postal_code | ✔ | string | non-empty postal code |
--> country_code | ✔ | string | 2 characters The two-letter ISO 3166-1 country code. |
--> address_residential_indicator | ✔ | string | Default: "unknown" Enum: "unknown" "yes" "no" Indicates whether or not this is a residential address. |