Get Shopify return details
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturn \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturn"
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/getShopifyReturn', 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/getShopifyReturn",
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/getShopifyReturn"
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/getShopifyReturn")
.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/getShopifyReturn")
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{
"shopifyReturn": {
"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>"
},
"returnShipmentCustomField": {
"shipmentId": "<string>",
"customFieldType": "<string>",
"customFieldMap": {}
},
"shopifyReturnLineItemList": [
{
"shopifyReturnLineItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyReturnId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"apiId": 123,
"sellerReferenceNumber": "<string>",
"description": "<string>",
"quantity": 123,
"sku": "<string>",
"weight": 123,
"weightUom": "<string>",
"value": 123,
"valueCurrencyCode": "<string>",
"returnReasonCode": "<string>",
"returnReason": "<string>",
"shopifyProductId": 123,
"buyerNotes": "<string>",
"customFieldMap": {},
"isDeclined": true,
"declinedOn": "2023-11-07T05:31:56Z",
"shopifyReturnLineItemImageList": [
{
"shopifyReturnLineItemImageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyReturnLineItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyLineItemImageUrl": "<string>",
"fileName": "<string>",
"fileExt": "<string>"
}
]
}
]
}ShopifyReturn
Get Shopify return details
GET
/
api
/
shopify
/
ShopifyReturn
/
getShopifyReturn
Get Shopify return details
curl --request GET \
--url https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturn \
--header 'x-rr-apikey: <api-key>' \
--header 'x-rr-apitoken: <api-key>'import requests
url = "https://api.returnshelper.com/uat/user/api/shopify/ShopifyReturn/getShopifyReturn"
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/getShopifyReturn', 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/getShopifyReturn",
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/getShopifyReturn"
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/getShopifyReturn")
.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/getShopifyReturn")
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{
"shopifyReturn": {
"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>"
},
"returnShipmentCustomField": {
"shipmentId": "<string>",
"customFieldType": "<string>",
"customFieldMap": {}
},
"shopifyReturnLineItemList": [
{
"shopifyReturnLineItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyReturnId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"apiId": 123,
"sellerReferenceNumber": "<string>",
"description": "<string>",
"quantity": 123,
"sku": "<string>",
"weight": 123,
"weightUom": "<string>",
"value": 123,
"valueCurrencyCode": "<string>",
"returnReasonCode": "<string>",
"returnReason": "<string>",
"shopifyProductId": 123,
"buyerNotes": "<string>",
"customFieldMap": {},
"isDeclined": true,
"declinedOn": "2023-11-07T05:31:56Z",
"shopifyReturnLineItemImageList": [
{
"shopifyReturnLineItemImageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyReturnLineItemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"shopifyLineItemImageUrl": "<string>",
"fileName": "<string>",
"fileExt": "<string>"
}
]
}
]
}Retrieves a Shopify return by its
shopifyReturnId.
If the return cannot be found for the authenticated account, the API reports a not-found error.