Create Warehouses

POST /v1/warehouses

Create Warehoses for an account. Can be done in batch.

Body Required

  • ID string

    ID of the warehouse

  • If the warehouse is a central warehouse

    Default value is false.

  • externalId string Required

    External ID of the warehouse

  • name string Required

    Name of the warehouse

Responses

  • OK

    Hide response attributes Show response attributes object
    • ID string

      ID of the warehouse

    • If the warehouse is a central warehouse

      Default value is false.

    • externalId string Required

      External ID of the warehouse

    • name string Required

      Name of the warehouse

  • All errors will return the same object with a describing code & message

    Hide response attributes Show response attributes object
POST /v1/warehouses
curl \
 -X POST https://ma-api.maddenanalytics.com/v1/warehouses \
 -H "Authorization: $API_KEY" \
 -d '[{"ID":"string","centralWarehouse":false,"externalId":"flagship","name":"Flagship"}]'
Request example
[
  {
    "ID": "string",
    "centralWarehouse": false,
    "externalId": "flagship",
    "name": "Flagship"
  }
]
Response examples (200)
[
  {
    "ID": "string",
    "centralWarehouse": false,
    "externalId": "flagship",
    "name": "Flagship"
  }
]
Response examples (default)
{
  "error": "Error Type (if any)",
  "message": "Message describing the error",
  "statusCode": 400
}