Skip to main content
POST
/
settings
/
shipping
/
warehouses
Add Warehouse
curl --request POST \
  --url https://staging-api.puppetvendors.com/settings/shipping/warehouses \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "name": "<string>",
  "address1": "<string>",
  "address2": "<string>",
  "city": "<string>",
  "province": "<string>",
  "zip": "<string>",
  "country": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt

Use this file to discover all available pages before exploring further.

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Add a new warehouse / location. The server assigns a new numeric locationId (one greater than the current max on this vendor). Vendor scope required.

Request Body

name
string
required
Warehouse name (max 200 chars).
address1
string
Street address line 1 (max 500 chars).
address2
string
Street address line 2 (max 500 chars).
city
string
City (max 200 chars).
province
string
State / province (max 200 chars).
zip
string
Postal code (max 50 chars).
country
string
Country (max 200 chars).

Response

200
{
  "success": true,
  "data": {
    "locationId": 2,
    "name": "Main Warehouse",
    "address1": "123 Main St",
    "city": "Austin",
    "province": "TX",
    "zip": "78701",
    "country": "US"
  }
}

Example

curl -X POST "https://staging-api.puppetvendors.com/settings/shipping/warehouses" \
  -H "x-access-token: YOUR_VENDOR_JWT" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Main Warehouse",
    "address1": "123 Main St",
    "city": "Austin",
    "province": "TX",
    "zip": "78701",
    "country": "US"
  }'

More Examples

Create a US warehouse
curl -X POST "https://staging-api.puppetvendors.com/settings/shipping/warehouses" \
  -H "Content-Type: application/json" \
  -H "x-access-token: YOUR_VENDOR_JWT" \
  -d '{
    "name": "East Coast Warehouse",
    "address1": "456 Industrial Blvd",
    "address2": "Unit 7B",
    "city": "Newark",
    "province": "NJ",
    "zip": "07102",
    "country": "US",
    "phone": "+1-555-0123",
    "email": "warehouse@acmeco.com",
    "defaultShippingAddress": true
  }'