POST /warehouses.json

POST /warehouses.json
application/json

Body Required

Responses

POST /warehouses.json
curl \
 -X POST http://api.example.com/v1/warehouses.json \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"addressLineOne":"string","addressLineTwo":"string","billingAddressLineOne":"string","billingAddressLineTwo":"string","billingCity":"string","billingCountry":"string","billingFirstName":"string","billingLastName":"string","billingName":"string","billingState":"string","billingZip":"string","city":"string","countries":[],"countriesFilter":"all","country":"string","defaultReturnStatus":"received","firstName":"string","includeLabelInPackingSlip":true,"labelFormat":"png","lastName":"string","name":"string","pdfLegal":"string","setInvoiceAddresss":true,"shippingRateId":42,"skipOnlineInventory":false,"state":"string","states":[],"statesFilter":"all","status":"active","zip":"string","zips":[],"zipsFilter":"all"}'
Request example
{
  "addressLineOne": "string",
  "addressLineTwo": "string",
  "billingAddressLineOne": "string",
  "billingAddressLineTwo": "string",
  "billingCity": "string",
  "billingCountry": "string",
  "billingFirstName": "string",
  "billingLastName": "string",
  "billingName": "string",
  "billingState": "string",
  "billingZip": "string",
  "city": "string",
  "countries": [],
  "countriesFilter": "all",
  "country": "string",
  "defaultReturnStatus": "received",
  "firstName": "string",
  "includeLabelInPackingSlip": true,
  "labelFormat": "png",
  "lastName": "string",
  "name": "string",
  "pdfLegal": "string",
  "setInvoiceAddresss": true,
  "shippingRateId": 42,
  "skipOnlineInventory": false,
  "state": "string",
  "states": [],
  "statesFilter": "all",
  "status": "active",
  "zip": "string",
  "zips": [],
  "zipsFilter": "all"
}
Response examples (200)
{
  "addressLineOne": "string",
  "addressLineTwo": "string",
  "billingAddressLineOne": "string",
  "billingAddressLineTwo": "string",
  "billingCity": "string",
  "billingCountry": "string",
  "billingFirstName": "string",
  "billingLastName": "string",
  "billingName": "string",
  "billingState": "string",
  "billingZip": "string",
  "city": "string",
  "countries": [],
  "countriesFilter": "all",
  "country": "string",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "defaultReturnStatus": "received",
  "firstName": "string",
  "id": 42,
  "includeLabelInPackingSlip": true,
  "labelFormat": "png",
  "lastName": "string",
  "name": "string",
  "pdfLegal": "string",
  "setInvoiceAddresss": true,
  "shippingRateId": 42,
  "skipOnlineInventory": false,
  "state": "string",
  "states": [],
  "statesFilter": "all",
  "status": "active",
  "updatedAt": "2024-05-04T09:42:00+00:00",
  "zip": "string",
  "zips": [],
  "zipsFilter": "all"
}