Update Warehouse

Updates an existing Ship From Location (formerly known as a warehouse). This call does not currently support partial updates. The entire resource must be provided in the body of the request. If a "returnAddress" object is not specified, your "originAddress" will be used as your "returnAddress".

NOTE In the API, the endpoint is called warehouse, but the process actually affects Ship From locations in the UI on the application side of operations.

Name Data Type Description
warehouseId number A unique ID generated by ShipStation and assigned to each Ship From Location (formerly known as a warehouse).

Optional

Example Request

PUT /warehouses/warehouseId HTTP/1.1
Host: ssapi.shipstation.com
Authorization: __YOUR_AUTH_HERE__
Content-Type: application/json

{
  "warehouseId": 12345,
  "warehouseName": "API Ship From Location",
  "originAddress": {
    "name": "API Warehouse",
    "company": "ShipStation",
    "street1": "2815 Exposition Blvd",
    "street2": null,
    "street3": null,
    "city": "Austin",
    "state": "TX",
    "postalCode": "78703",
    "country": "US",
    "phone": "512-555-5555",
    "residential": true,
    "addressVerified": null
  },
  "returnAddress": {
    "name": "API Ship From Location",
    "company": "ShipStation",
    "street1": "2815 Exposition Blvd",
    "street2": null,
    "street3": null,
    "city": "Austin",
    "state": "TX",
    "postalCode": "78703",
    "country": "US",
    "phone": "512-555-5555",
    "residential": null,
    "addressVerified": null
  },
  "createDate": "2015-07-02T08:38:31.4870000",
  "isDefault": true
}

Example Response

{
  "warehouseId": 12345,
  "warehouseName": "API Ship From Location",
  "originAddress": {
    "name": "API Warehouse",
    "company": "ShipStation",
    "street1": "2815 Exposition Blvd",
    "street2": null,
    "street3": null,
    "city": "Austin",
    "state": "TX",
    "postalCode": "78703",
    "country": "US",
    "phone": "512-555-5555",
    "residential": true,
    "addressVerified": null
  },
  "returnAddress": {
    "name": "API Ship From Location",
    "company": "ShipStation",
    "street1": "2815 Exposition Blvd",
    "street2": null,
    "street3": null,
    "city": "Austin",
    "state": "TX",
    "postalCode": "78703",
    "country": "US",
    "phone": "512-555-5555",
    "residential": null,
    "addressVerified": null
  },
  "createDate": "2015-07-02T08:38:31.4870000",
  "isDefault": true
}