Get Shopify return by return request ID
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId"
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId', 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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId",
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId"
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId")
.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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId")
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{
"data": {
"shopifyReturnId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"apiId": 123,
"sellerReferenceNumber": "<string>",
"returnRequestId": 123,
"shipmentId": 123,
"returnRequestNumber": "<string>",
"shipmentNumber": "<string>",
"totalValue": 123,
"totalValueCurrency": "<string>",
"remarks": "<string>",
"labelRequestStatusCode": "<string>",
"trackingNumber": "<string>",
"labelUrl": "<string>",
"error": "<string>",
"warehouseId": 123,
"shipmentServiceType": "<string>",
"shipmentCountryCode": "<string>",
"shipmentName": "<string>",
"shipmentPhone": "<string>",
"shipmentFax": "<string>",
"shipmentEmail": "<string>",
"shipmentStreet1": "<string>",
"shipmentStreet2": "<string>",
"shipmentStreet3": "<string>",
"shipmentState": "<string>",
"shipmentCity": "<string>",
"shipmentPostalCode": "<string>",
"costCurrencyCode": "<string>",
"cost": 123,
"boxType": "<string>",
"weight": 123,
"weightUom": "<string>",
"dimension1": 123,
"dimension2": 123,
"dimension3": 123,
"dimensionUom": "<string>",
"shopifyShopId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyOrderId": "<string>",
"shopifyOrderNumber": "<string>",
"shopifyOrderName": "<string>",
"shopifyReturnStatusCode": "<string>"
}
}ShopifyReturn
Get Shopify return by return request ID
GET
/
api
/
shopify
/
ShopifyReturn
/
getShopifyReturnByReturnRequestId
Get Shopify return by return request ID
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId"
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId', 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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId",
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId"
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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId")
.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/shopify/ShopifyReturn/getShopifyReturnByReturnRequestId")
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{
"data": {
"shopifyReturnId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"apiId": 123,
"sellerReferenceNumber": "<string>",
"returnRequestId": 123,
"shipmentId": 123,
"returnRequestNumber": "<string>",
"shipmentNumber": "<string>",
"totalValue": 123,
"totalValueCurrency": "<string>",
"remarks": "<string>",
"labelRequestStatusCode": "<string>",
"trackingNumber": "<string>",
"labelUrl": "<string>",
"error": "<string>",
"warehouseId": 123,
"shipmentServiceType": "<string>",
"shipmentCountryCode": "<string>",
"shipmentName": "<string>",
"shipmentPhone": "<string>",
"shipmentFax": "<string>",
"shipmentEmail": "<string>",
"shipmentStreet1": "<string>",
"shipmentStreet2": "<string>",
"shipmentStreet3": "<string>",
"shipmentState": "<string>",
"shipmentCity": "<string>",
"shipmentPostalCode": "<string>",
"costCurrencyCode": "<string>",
"cost": 123,
"boxType": "<string>",
"weight": 123,
"weightUom": "<string>",
"dimension1": 123,
"dimension2": 123,
"dimension3": 123,
"dimensionUom": "<string>",
"shopifyShopId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyOrderId": "<string>",
"shopifyOrderNumber": "<string>",
"shopifyOrderName": "<string>",
"shopifyReturnStatusCode": "<string>"
}
}Retrieves the Shopify return associated with a Return Helper
returnRequestId.
If no matching return is found for the authenticated account, data is null.