Get RMA images
curl --request POST \
--url https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages \
--header 'Content-Type: application/json' \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>' \
--data '
{
"rmaList": [
"RMA-1001",
"RMA-1002",
"RMA-MISSING"
]
}
'import requests
url = "https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages"
payload = { "rmaList": ["RMA-1001", "RMA-1002", "RMA-MISSING"] }
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-rr-apikey': '<api-key>',
'x-rr-apitoken': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({rmaList: ['RMA-1001', 'RMA-1002', 'RMA-MISSING']})
};
fetch('https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages', 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/ReturnInventory/getRmaImages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rmaList' => [
'RMA-1001',
'RMA-1002',
'RMA-MISSING'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages"
payload := strings.NewReader("{\n \"rmaList\": [\n \"RMA-1001\",\n \"RMA-1002\",\n \"RMA-MISSING\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"rmaList\": [\n \"RMA-1001\",\n \"RMA-1002\",\n \"RMA-MISSING\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rmaList\": [\n \"RMA-1001\",\n \"RMA-1002\",\n \"RMA-MISSING\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"rmaImageList": [
{
"rma": "RMA-1001",
"imageUrlList": [
"https://images.example.com/returns/front.jpg",
"https://images.example.com/returns/back.jpg"
]
},
{
"rma": "RMA-1002",
"imageUrlList": []
}
]
}
}ReturnInventory
Get RMA images
POST
/
api
/
ReturnInventory
/
getRmaImages
Get RMA images
curl --request POST \
--url https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages \
--header 'Content-Type: application/json' \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>' \
--data '
{
"rmaList": [
"RMA-1001",
"RMA-1002",
"RMA-MISSING"
]
}
'import requests
url = "https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages"
payload = { "rmaList": ["RMA-1001", "RMA-1002", "RMA-MISSING"] }
headers = {
"x-rr-apikey": "<api-key>",
"x-rr-apitoken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-rr-apikey': '<api-key>',
'x-rr-apitoken': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({rmaList: ['RMA-1001', 'RMA-1002', 'RMA-MISSING']})
};
fetch('https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages', 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/ReturnInventory/getRmaImages",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'rmaList' => [
'RMA-1001',
'RMA-1002',
'RMA-MISSING'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages"
payload := strings.NewReader("{\n \"rmaList\": [\n \"RMA-1001\",\n \"RMA-1002\",\n \"RMA-MISSING\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-rr-apikey", "<api-key>")
req.Header.Add("x-rr-apitoken", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages")
.header("x-rr-apikey", "<api-key>")
.header("x-rr-apitoken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"rmaList\": [\n \"RMA-1001\",\n \"RMA-1002\",\n \"RMA-MISSING\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.returnshelper.com/uat/user/api/ReturnInventory/getRmaImages")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-rr-apikey"] = '<api-key>'
request["x-rr-apitoken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rmaList\": [\n \"RMA-1001\",\n \"RMA-1002\",\n \"RMA-MISSING\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"rmaImageList": [
{
"rma": "RMA-1001",
"imageUrlList": [
"https://images.example.com/returns/front.jpg",
"https://images.example.com/returns/back.jpg"
]
},
{
"rma": "RMA-1002",
"imageUrlList": []
}
]
}
}Retrieves the original images associated with up to 500 return inventory RMAs in one request. Each image is returned as a full HTTPS URL.
Request
ProvidermaList with 1 to 500 RMA codes. The limit applies to the number of submitted entries before duplicates are removed.
Matching is case-insensitive and exact. Duplicate codes, including case variants, are returned once. Each matching RMA is returned using its stored capitalization, in the order in which it first appeared in the request.
Response
data.rmaImageListcontains matching return inventory RMAs for the authenticated account.imageUrlListcontains URLs for active original images associated with the matching RMA. A matching RMA with no eligible images has an emptyimageUrlList.- Missing RMAs and RMAs that are not accessible to the authenticated account are omitted. If none match,
rmaImageListis empty. - Results are returned in one response without pagination. The API does not look up images through related parent or root RMAs.
Example response
{
"correlationId": "example-trace-id",
"meta": {
"status": 200,
"data": {},
"errorCode": null,
"error": {}
},
"data": {
"rmaImageList": [
{
"rma": "RMA-1001",
"imageUrlList": ["https://images.example.com/returns/front.jpg"]
},
{
"rma": "RMA-1002",
"imageUrlList": []
}
]
}
}
Authorizations
Body
application/json