Ship From a Warehouse
You likely have one or more warehouse locations that you frequently ship from, in which case it would be annoying to have to specify the ship_from
and return_to
addresses on every shipment. The solution is to Create a Warehouse, then you can simply pass the warehouse_id
instead.
Using warehouses also allows you to Create Manifests of everything you're shipping from each warehouse.
Origin Address vs. Return Address
The Create a Warehouse request will include both an origin address and a return address. These two addresses serve different purposes when shipping.
The origin address is used to calculate shipping costs. This address lets the carrier know where your packages are shipping from and allows the carrier to accurately determine rates.
The return address is the address that will be printed on your outgoing label. This address determines where any packages will be returned to in the event that the package cannot reach its destination.
These addresses are often the same. However, there are times when packages ship from one location and need to be returned to a different location. Creating and using a warehouse allows unique addresses to be specified for each of these purposes.
Example
POST /v1/shipments/
The following example demonstrates how to create a shipment using a warehouse_id
instead of a ship_from
address. Other than that, it's the same as the normal Create a Shipment workflow.
Example Request
Example Response
Overriding the Return Address
By default, specifying a warehouse_id
will automatically set ship_from
and return_to
addresses of the shipment. But there are some scenarios where you may want to override the return address that's printed on the shipping label. ShipEngine allows you to do that by specifying a return_to
address in addition to the warehouse_id
.
This feature is currently only supported for Stamps.com, Endicia, FedEx, UPS, DHL E-Commerce, and FirstMile. Please let us know if you need support for additional carriers.