List Locations
curl --request GET \
--url https://api.launchmystore.io/warehouse/get-all-warehouses \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/warehouse/get-all-warehouses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/warehouse/get-all-warehouses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/warehouse/get-all-warehouses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/warehouse/get-all-warehouses"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/warehouse/get-all-warehouses")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/warehouse/get-all-warehouses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"state": "success",
"message": "Warehouses retrieved successfully",
"data": [
{
"warehouseId": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"warehouseName": "Main Warehouse",
"warehouseType": "Primary",
"contactPerson": "Jane Roe",
"mobileNumber": "+15551234567",
"address": "123 Commerce St, Suite 100",
"area": "Downtown",
"city": "Los Angeles",
"state": "California",
"pinCode": "90001",
"localPickupEnabled": true,
"pickupHours": "Mon-Sat 10am-7pm",
"storeId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"inventories": [],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"count": null,
"pagination": null
}
Locations
List Locations
List inventory locations (warehouses)
GET
/
warehouse
/
get-all-warehouses
List Locations
curl --request GET \
--url https://api.launchmystore.io/warehouse/get-all-warehouses \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/warehouse/get-all-warehouses"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/warehouse/get-all-warehouses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/warehouse/get-all-warehouses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/warehouse/get-all-warehouses"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/warehouse/get-all-warehouses")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/warehouse/get-all-warehouses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"state": "success",
"message": "Warehouses retrieved successfully",
"data": [
{
"warehouseId": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"warehouseName": "Main Warehouse",
"warehouseType": "Primary",
"contactPerson": "Jane Roe",
"mobileNumber": "+15551234567",
"address": "123 Commerce St, Suite 100",
"area": "Downtown",
"city": "Los Angeles",
"state": "California",
"pinCode": "90001",
"localPickupEnabled": true,
"pickupHours": "Mon-Sat 10am-7pm",
"storeId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"inventories": [],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"count": null,
"pagination": null
}
There is no
GET /api/v1/locations.json endpoint, and the OAuth App
API exposes no location/warehouse listing. Inventory locations are read
only through the merchant dashboard surface documented below, which is
authenticated with a merchant session (JWT) — not with an OAuth app
access token. Installed apps cannot list locations.List Locations
Inventory locations are modeled as warehouses. List them through the merchant endpointGET /warehouse/get-all-warehouses.
Authentication: merchant session, allowed roles MERCHANT,
STAFF_ADMIN, SUPER_ADMIN, MANAGER, STAFF.
Response
The warehouses for the store are returned as an array underdata, each with
its associated inventory rows. When the store has no warehouses, the endpoint
returns a 404 with state: "info" and message Warehouses for this store not found.
{
"status": 200,
"state": "success",
"message": "Warehouses retrieved successfully",
"data": [
{
"warehouseId": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
"warehouseName": "Main Warehouse",
"warehouseType": "Primary",
"contactPerson": "Jane Roe",
"mobileNumber": "+15551234567",
"address": "123 Commerce St, Suite 100",
"area": "Downtown",
"city": "Los Angeles",
"state": "California",
"pinCode": "90001",
"localPickupEnabled": true,
"pickupHours": "Mon-Sat 10am-7pm",
"storeId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"inventories": [],
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"count": null,
"pagination": null
}
⌘I