Get all warehouses accessible to user
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse"
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-rr-apikey': '<api-key>', 'x-rr-apitoken': '<api-key>'}
};
fetch('https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse', 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.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rr-apikey: <api-key>",
"x-rr-apitoken: <api-key>"
],
]);
$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.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
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.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"warehouses": [
{
"warehouseId": 123,
"countryCode": "<string>",
"contactName": "<string>",
"companyName": "<string>",
"phone": "<string>",
"email": "<string>",
"fax": "<string>",
"street1": "<string>",
"street2": "<string>",
"street3": "<string>",
"state": "<string>",
"city": "<string>",
"postalCode": "<string>",
"addressType": "<string>",
"description": "<string>",
"warehouseRmaPrefix": "<string>",
"isConsolidateShippingDestination": true
}
]
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}Warehouse
Get all warehouses accessible to user
GET
/
api
/
Warehouse
/
GetAllWarehouse
Get all warehouses accessible to user
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse"
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-rr-apikey': '<api-key>', 'x-rr-apitoken': '<api-key>'}
};
fetch('https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse', 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.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rr-apikey: <api-key>",
"x-rr-apitoken: <api-key>"
],
]);
$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.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
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.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/Warehouse/GetAllWarehouse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"warehouses": [
{
"warehouseId": 123,
"countryCode": "<string>",
"contactName": "<string>",
"companyName": "<string>",
"phone": "<string>",
"email": "<string>",
"fax": "<string>",
"street1": "<string>",
"street2": "<string>",
"street3": "<string>",
"state": "<string>",
"city": "<string>",
"postalCode": "<string>",
"addressType": "<string>",
"description": "<string>",
"warehouseRmaPrefix": "<string>",
"isConsolidateShippingDestination": true
}
]
}{
"correlationId": "<string>",
"meta": {
"status": 123,
"data": {},
"errorCode": "<string>",
"error": {}
}
}Lists every warehouse your account has access to, including address, contact details, and capability metadata. Most integrations call this once during setup to map warehouses to display names and to discover the
warehouseId values needed elsewhere in the API.
Please be reminded that the warehouseId in production and sandbox environment are NOT the same.
When to call
- During integration setup, to populate a warehouse picker in your seller-facing UI.
- After your account is granted access to a new warehouse (e.g. during onboarding to a new region), to refresh your local cache.
Response notes
countryCodeis returned in lowercase ISO3 (e.g.usa,gbr,chn). Use these exact values when populatingshipFromCountryorfromCountryCodefields elsewhere.- The full address (
street1,street2,street3,city,state,postalCode) is exposed so you can pre-fill destination details on return slips and customer-facing labels. descriptionis a human-readable name and may change. TreatwarehouseId(integer) as the stable reference key in your database.isConsolidateShippingDestinationistruefor a warehouse you can use as thedestinationWarehouseIdof anRH_WAREHOUSEconsolidate shipping order.
Related
- Get warehouses by origin country — same data filtered to a specific origin country.
- Get warehouse details by ID — fetch a single warehouse record by
warehouseId.