Retrieve Marketplace order returns.
curl --request GET \
--url https://api-neteven.mylectra.com/merchant/orders/returns \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/returns"
headers = {
"Authorization": "<authorization>",
"Accept": "<accept>",
"Content-Type": "<content-type>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Authorization: '<authorization>',
Accept: '<accept>',
'Content-Type': '<content-type>'
}
};
fetch('https://api-neteven.mylectra.com/merchant/orders/returns', 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-neteven.mylectra.com/merchant/orders/returns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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-neteven.mylectra.com/merchant/orders/returns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("Content-Type", "<content-type>")
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-neteven.mylectra.com/merchant/orders/returns")
.header("Authorization", "<authorization>")
.header("Accept", "<accept>")
.header("Content-Type", "<content-type>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-neteven.mylectra.com/merchant/orders/returns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["Accept"] = '<accept>'
request["Content-Type"] = '<content-type>'
response = http.request(request)
puts response.read_body{
"data": {
"returns": [
{
"marketplace_id": 7,
"marketplace_name": "amazon_fr",
"order_id": 8205835,
"marketplace_order_id": "SANDBOX_8205835",
"marketplace_return_id": "AHBC1289-B35",
"return_status": "PENDING",
"date_created": "2014-12-30T17:51:00Z",
"date_updated": "2014-12-30T17:51:25Z",
"stock_location": {
"stock_location_id": 1,
"name": "My own stock location",
"additional_information": {}
},
"return_address": {
"title": "M.",
"first_name": "Jeanne",
"last_name": "Martin",
"street1": "1, Grand rue",
"street2": " - ",
"city": "PARIS",
"state": " - ",
"country_code": "FR",
"country": "FRANCE",
"postcode": "75018",
"phone1": "07 99 88 77 66",
"phone2": "01 22 33 44 55",
"fax": " - ",
"email": "",
"login": "jmartin99",
"company_name1": " - ",
"company_name2": " - "
},
"additional_information": {},
"return_lines": [
{
"order_line_id": 123,
"marketplace_order_line_id": "abc-123",
"returned_quantity": 2,
"item": {
"sku": "ABCDX123_XS",
"ean": "1234567891230",
"marketplace_product_identifier": "SANDBOX_PRODUCT_3029_D4",
"additional_information": {}
}
}
]
}
]
},
"metadata": {
"number_of_results": 123,
"total_count": 123,
"limit": 123,
"offset": 123,
"api_version": 123,
"api_version_expiration_date": "2023-12-25",
"messages": [
{
"type": "INFO",
"description": "This is the last update"
}
]
}
}{
"status": "error",
"errors": [
{
"location": "querystring",
"name": "bad-query-param-name",
"description": {
"0": {
"quantity": [
"Not a valid integer."
]
}
}
}
]
}Orders
Retrieve Marketplace order returns.
Retrieve multiple orders returns based on user filters. Only for marktplaces which support it.
GET
/
merchant
/
orders
/
returns
Retrieve Marketplace order returns.
curl --request GET \
--url https://api-neteven.mylectra.com/merchant/orders/returns \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/returns"
headers = {
"Authorization": "<authorization>",
"Accept": "<accept>",
"Content-Type": "<content-type>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
Authorization: '<authorization>',
Accept: '<accept>',
'Content-Type': '<content-type>'
}
};
fetch('https://api-neteven.mylectra.com/merchant/orders/returns', 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-neteven.mylectra.com/merchant/orders/returns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$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-neteven.mylectra.com/merchant/orders/returns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Accept", "<accept>")
req.Header.Add("Content-Type", "<content-type>")
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-neteven.mylectra.com/merchant/orders/returns")
.header("Authorization", "<authorization>")
.header("Accept", "<accept>")
.header("Content-Type", "<content-type>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-neteven.mylectra.com/merchant/orders/returns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["Accept"] = '<accept>'
request["Content-Type"] = '<content-type>'
response = http.request(request)
puts response.read_body{
"data": {
"returns": [
{
"marketplace_id": 7,
"marketplace_name": "amazon_fr",
"order_id": 8205835,
"marketplace_order_id": "SANDBOX_8205835",
"marketplace_return_id": "AHBC1289-B35",
"return_status": "PENDING",
"date_created": "2014-12-30T17:51:00Z",
"date_updated": "2014-12-30T17:51:25Z",
"stock_location": {
"stock_location_id": 1,
"name": "My own stock location",
"additional_information": {}
},
"return_address": {
"title": "M.",
"first_name": "Jeanne",
"last_name": "Martin",
"street1": "1, Grand rue",
"street2": " - ",
"city": "PARIS",
"state": " - ",
"country_code": "FR",
"country": "FRANCE",
"postcode": "75018",
"phone1": "07 99 88 77 66",
"phone2": "01 22 33 44 55",
"fax": " - ",
"email": "",
"login": "jmartin99",
"company_name1": " - ",
"company_name2": " - "
},
"additional_information": {},
"return_lines": [
{
"order_line_id": 123,
"marketplace_order_line_id": "abc-123",
"returned_quantity": 2,
"item": {
"sku": "ABCDX123_XS",
"ean": "1234567891230",
"marketplace_product_identifier": "SANDBOX_PRODUCT_3029_D4",
"additional_information": {}
}
}
]
}
]
},
"metadata": {
"number_of_results": 123,
"total_count": 123,
"limit": 123,
"offset": 123,
"api_version": 123,
"api_version_expiration_date": "2023-12-25",
"messages": [
{
"type": "INFO",
"description": "This is the last update"
}
]
}
}{
"status": "error",
"errors": [
{
"location": "querystring",
"name": "bad-query-param-name",
"description": {
"0": {
"quantity": [
"Not a valid integer."
]
}
}
}
]
}Headers
Bearer JWT token, used to authenticate.
Example:
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q"

