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": []
}
]
}
}退货库存
获取 RMA 图片
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": []
}
]
}
}此页面由 AI 自动翻译。API
技术规格以英文呈现为标准。如有任何疑问,请参阅英文版本。
请求
在rmaList 中提供 1 至 500 个 RMA 代码。此上限按去重前提交的条目数计算。
匹配不区分大小写,并且必须完全一致。重复的代码(包括大小写不同的代码)只返回一次。匹配的 RMA 使用其存储时的大小写,并按其在请求中首次出现的顺序返回。
响应
data.rmaImageList包含已认证账户中匹配的 Return Inventory RMA。imageUrlList包含与匹配 RMA 关联的有效原始图片 URL。如果匹配的 RMA 没有符合条件的图片,其imageUrlList为空。- 不存在的 RMA 和已认证账户无法访问的 RMA 会被省略。如果没有匹配项,
rmaImageList为空。 - 结果不分页,在一个响应中返回。API 不会通过关联的父级或根 RMA 查找图片。
响应示例
{
"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": []
}
]
}
}
授权
请求体
application/json