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"
}Create a new warehouse using the latest creation endpoint with enhanced options.
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"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.