ShiftDocs

Addresses

Pickup addresses

Save your pickup addresses once and reference them by address_uid in pickup_location.address_uid when creating SELF orders. Returns always need a full address.

MethodEndpointPurpose
POST/api/v1/open/addressCreate an address
GET/api/v1/open/addressList active addresses, default first
GET/api/v1/open/address/{address_uid}Get one active address
PUT/api/v1/open/address/{address_uid}Update an address
DELETE/api/v1/open/address/{address_uid}Delete an address

Create or update an address

curl -X POST 'https://wms.shift.in/api/v1/open/address' \
  -H 'X-API-Key: <your api key>' \
  -H 'Content-Type: application/json' \
  --data '{
    "name": "Branch Store",
    "location_type": "STORE",
    "contact_name": "Narmada",
    "phone": "9000000003",
    "email": "narmada@example.com",
    "address": {
      "addressLine1": "77 Market Road",
      "city": "Delhi",
      "state": "Delhi",
      "pincode": 110001
    },
    "is_default": false
  }'

To update, send the same body with PUT /address/{address_uid}.

FieldRequiredDescription
nameRequiredMax 100 characters. Unique within your company, including deleted addresses.
location_typeOptionalWAREHOUSE, STORE, DISTRIBUTION_CENTER, OFFICE, HOME or OTHER.
contact_nameRequiredThe person at the pickup point.
phoneRequired10 digits starting with 6 to 9.
emailRequiredA valid email (required here, unlike on orders).
addressRequiredSame rules as order addresses.
is_defaultOptionalDefault false. true makes this the default and removes the flag from the previous one.

The response data has address_uid, name, location_type, contact_name, phone, email, address and is_default. Delete returns data: true.

List, get and delete

curl 'https://wms.shift.in/api/v1/open/address' -H 'X-API-Key: <your api key>'
curl 'https://wms.shift.in/api/v1/open/address/214' -H 'X-API-Key: <your api key>'
curl -X DELETE 'https://wms.shift.in/api/v1/open/address/214' -H 'X-API-Key: <your api key>'

Rules

  • Your first address always becomes the default.
  • PUT needs the same required fields as create, so send the full body. Optional fields you leave out (addressLine2, location_type) keep their old values.
  • is_default: false does not remove the default flag. Set is_default: true on another address instead. Existing orders are not changed.
  • Delete is a soft delete: the address disappears from GET and can't be used for new orders, but existing orders keep it. A deleted address's name can't be reused.
  • The default address can't be deleted; make another address the default first.
  • You only see your own company's addresses. Another company's address_uid returns 404.

Stuck on an integration?

Your account manager can put you in touch with our tech team.

Talk to us