Skip to main content
POST
/
warehouse
/
create_v2
Warehouse - Create V2
curl --request POST \
  --url https://api.skulabs.com/warehouse/create_v2 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Main Warehouse",
  "type": "<string>",
  "address": {
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>",
    "country_code": "<string>",
    "phone": "<string>",
    "company": "<string>",
    "name": "<string>"
  },
  "is_default": true
}
'
{
  "success": true,
  "_id": "507f1f77bcf86cd799439011"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Warehouse name

Example:

"Main Warehouse"

type
string

Warehouse type

address
object

Warehouse address

is_default
boolean

Set as default warehouse

Response

Warehouse created

success
boolean
required

Whether the operation succeeded

_id
string
required

ID of the created resource

Example:

"507f1f77bcf86cd799439011"