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.
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /api/v1/open/address | Create an address |
| GET | /api/v1/open/address | List 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}.
| Field | Required | Description |
|---|---|---|
name | Required | Max 100 characters. Unique within your company, including deleted addresses. |
location_type | Optional | WAREHOUSE, STORE, DISTRIBUTION_CENTER, OFFICE, HOME or OTHER. |
contact_name | Required | The person at the pickup point. |
phone | Required | 10 digits starting with 6 to 9. |
email | Required | A valid email (required here, unlike on orders). |
address | Required | Same rules as order addresses. |
is_default | Optional | Default 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. Setis_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_uidreturns 404.
Stuck on an integration?
Your account manager can put you in touch with our tech team.