Order
List returns
Get all returns on an order.
GET/API/Order/{orderId}/Return/List
Request Example
curl -X GET 'https://mgmtapi.geins.io/API/Order/{orderId}/Return/List' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic [USER-CREDENTIALS-BASE64-ENCODED]' \
-H 'X-ApiKey: {MGMT_API_KEY}'
import axios from 'axios';
const config = {
method: 'GET',
url: 'https://mgmtapi.geins.io/API/Order/{orderId}/Return/List',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic [USER-CREDENTIALS-BASE64-ENCODED]',
'X-ApiKey': '{MGMT_API_KEY}'
},
};
axios.request(config)
.then(response => response.data)
.catch(error => console.error(error));
fetch('https://mgmtapi.geins.io/API/Order/{orderId}/Return/List', {
method: 'GET',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic [USER-CREDENTIALS-BASE64-ENCODED]',
'X-ApiKey': '{MGMT_API_KEY}'
}
})
.then(res => res.json())
.then((response) => response)
.catch(console.error);
import requests
url = "https://mgmtapi.geins.io/API/Order/{orderId}/Return/List"
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic [USER-CREDENTIALS-BASE64-ENCODED]',
'X-ApiKey': '{MGMT_API_KEY}'
}
response = requests.GET(url, headers=headers)
print(response.json())
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
url := "https://mgmtapi.geins.io/API/Order/{orderId}/Return/List"
payload := []byte{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "application/json")
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Basic [USER-CREDENTIALS-BASE64-ENCODED]")
req.Header.Add("X-ApiKey", "{MGMT_API_KEY}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
using System.Text;
using System.Text.Json;
using System.Net.Http;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Basic [USER-CREDENTIALS-BASE64-ENCODED]");
client.DefaultRequestHeaders.Add("X-ApiKey", "{MGMT_API_KEY}");
var response = await client.GETAsync("https://mgmtapi.geins.io/API/Order/{orderId}/Return/List", null);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
Response
{
"Resource": [
{
"ReturnId": 0,
"OrderId": 0,
"CreatedOn": "string",
"ReturnRows": [
{
"ReturnId": 0,
"ReturnRowId": 0,
"OrderRowId": 0,
"ReturnCode": 0,
"ReturnAction": 0
}
],
"OrderRows": [
{
"OrderRowId": 0,
"ItemId": 0,
"ProductId": 0,
"Price": 0,
"PriceExVat": 0,
"Name": "string",
"ProductName": "string",
"Variant": "string",
"Brand": "string",
"PrimaryImage": "string",
"ArticleNumber": "string",
"Shelf": "string",
"CampaignNames": "string",
"Discount": 0,
"SuggestedRefundAmount": 0,
"AverageDiscount": 0,
"PriceBeforeDiscount": 0
}
]
}
],
"Message": "string",
"Details": [
"string"
]
}
{
"Message": "string",
"Details": [
"string"
]
}
{
"Message": "string",
"Details": [
"string"
]
}