Update Warehouse

Updates an existing Ship From Location (formerly known as 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".

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

Example Request

PUT /warehouses/warehouseId HTTP/1.1
Host: https://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
}