curl --request GET \
--url https://api-neteven.mylectra.com/merchant/orders/new \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/new"
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/new', 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/new",
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/new"
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/new")
.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/new")
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": {
"orders": [
{
"marketplace_id": 7,
"marketplace_name": "amazon_fr",
"order_id": 8205835,
"marketplace_order_id": "SANDBOX_8205835",
"merchant_order_id": "MyOwnOrderID__8205835",
"order_lines_count": 1,
"date_creation": "2014-12-30T17:51:00Z",
"date_sale": "2014-12-30T17:51:25Z",
"date_payment": "2014-12-30T17:51:25Z",
"payment_method": "CREDIT CARD",
"payment_transaction_id": "ABCX452",
"marketplace_invoice_id": "102__xa_f",
"invoice_id": 1234,
"marketplace_customer_id": "cust_102_xa",
"is_test_order": false,
"is_gift": false,
"fulfillment_type": "FulfilledByMerchant",
"prices": {
"currency_id": "EUR",
"total_price_including_taxes_excluding_shipping": 94.26,
"total_price_excluding_taxes_excluding_shipping": 78.55,
"total_shipping_cost_including_taxes": 15.21,
"total_shipping_cost_excluding_taxes": 12.32,
"total_insurance_amount_excluding_taxes": 12.32,
"total_insurance_amount_including_taxes": 12.32,
"processing_fee": 12.95,
"total_vat_amount_excluding_shipping": 12.32,
"total_vat_amount_for_shipping_cost": 12.32
},
"shipping_information": {
"carrier_name": "TestWS1-1-Order001-TrackingInfo-8205835",
"tracking_url": "TestWS1-1-Order001-TrackingURL-8205835",
"delivery_instructions": "<string>",
"shipping_mode": "<string>",
"delivery_method": "<string>",
"comment": "<string>",
"date_shipping": "2012-08-28T00:00:00Z",
"document_url": "<string>",
"tracking_number": "TestWS1-1-Order001-TrackingNumber-8205835"
},
"address_delivery": {
"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": "6hf9hdkpfd0ç_@marketplace-order.com",
"login": "jmartin99",
"company_name1": " - ",
"company_name2": " - ",
"delivery_relay_name": "<string>",
"delivery_relay_contractlevel": "<string>",
"delivery_relay_id": "<string>"
},
"address_invoice": {
"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": "6hf9hdkpfd0ç_@marketplace-order.com",
"login": "jmartin99",
"company_name1": " - ",
"company_name2": " - "
},
"order_lines": [
{
"order_line_id": 10402404,
"marketplace_order_line_id": "SANDBOX_8205835_4",
"merchant_order_line_id": "<string>",
"date_canceled": "2023-11-07T05:31:56Z",
"date_refund": "2021-01-20T08:51:00Z",
"status_current": "RETURNED",
"stock_released": true,
"additional_information": {},
"fulfillment_type": "FulfilledByMerchant",
"item": {
"sku": "ABCDX123_XS",
"ean": "1234567891230",
"marketplace_product_id": "SANDBOX_PRODUCT_3029_D4",
"quantity": 3,
"warehouse_name": "My Warehouse",
"warehouse_id": 3,
"merchant_item_serial_number": "ABCDX123"
},
"prices": {
"currency_id": "EUR",
"total_price_including_taxes_excluding_shipping": 94.26,
"total_price_excluding_taxes_excluding_shipping": 78.55,
"total_shipping_cost_including_taxes": 15.21,
"total_shipping_cost_excluding_taxes": 12.32,
"total_insurance_amount_excluding_taxes": 15.21,
"total_insurance_amount_including_taxes": 12.32,
"amount_refunded": 10.1,
"fee": 10.1,
"ecotax": 10.1,
"is_vat_calculated_by_marketplace": true,
"total_vat_amount_excluding_shipping": 12.32,
"total_vat_amount_for_shipping_cost": 12.32
},
"shipping_information": {
"date_shipping": "2012-08-28T00:00:00Z",
"date_estimated_delivery": "2023-11-07T05:31:56Z",
"return_tracking_number": "<string>",
"return_tracking_url": "<string>",
"return_carrier_name": "<string>",
"return_reason": "<string>",
"return_key": "<string>",
"document_url": "<string>",
"tracking_number": "TestWS1-1-Order001-TrackingNumber-8205835",
"shipper_id": "<string>",
"shipping_mode": "<string>",
"carrier_name": "TestWS1-1-Order001-TrackingInfo-8205835",
"tracking_url": "TestWS1-1-Order001-TrackingURL-8205835"
}
}
]
}
]
},
"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."
]
}
}
}
]
}{
"message": "Message description",
"code": 400,
"title": "Message Title"
}Retrieve unprocessed Marketplace orders.
Returns orders that are not yet completed (shipped/canceled/returned) and not yet flagged as retrieved by the merchant via the PATCH /orders/lines/ack.
IMPORTANT - an order will show in the response if there is at least one of its order_lines that corresponds to the above definition. The order_lines that are already acknowledged or already completed will not be returned, even if their corresponding order is.
curl --request GET \
--url https://api-neteven.mylectra.com/merchant/orders/new \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/new"
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/new', 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/new",
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/new"
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/new")
.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/new")
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": {
"orders": [
{
"marketplace_id": 7,
"marketplace_name": "amazon_fr",
"order_id": 8205835,
"marketplace_order_id": "SANDBOX_8205835",
"merchant_order_id": "MyOwnOrderID__8205835",
"order_lines_count": 1,
"date_creation": "2014-12-30T17:51:00Z",
"date_sale": "2014-12-30T17:51:25Z",
"date_payment": "2014-12-30T17:51:25Z",
"payment_method": "CREDIT CARD",
"payment_transaction_id": "ABCX452",
"marketplace_invoice_id": "102__xa_f",
"invoice_id": 1234,
"marketplace_customer_id": "cust_102_xa",
"is_test_order": false,
"is_gift": false,
"fulfillment_type": "FulfilledByMerchant",
"prices": {
"currency_id": "EUR",
"total_price_including_taxes_excluding_shipping": 94.26,
"total_price_excluding_taxes_excluding_shipping": 78.55,
"total_shipping_cost_including_taxes": 15.21,
"total_shipping_cost_excluding_taxes": 12.32,
"total_insurance_amount_excluding_taxes": 12.32,
"total_insurance_amount_including_taxes": 12.32,
"processing_fee": 12.95,
"total_vat_amount_excluding_shipping": 12.32,
"total_vat_amount_for_shipping_cost": 12.32
},
"shipping_information": {
"carrier_name": "TestWS1-1-Order001-TrackingInfo-8205835",
"tracking_url": "TestWS1-1-Order001-TrackingURL-8205835",
"delivery_instructions": "<string>",
"shipping_mode": "<string>",
"delivery_method": "<string>",
"comment": "<string>",
"date_shipping": "2012-08-28T00:00:00Z",
"document_url": "<string>",
"tracking_number": "TestWS1-1-Order001-TrackingNumber-8205835"
},
"address_delivery": {
"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": "6hf9hdkpfd0ç_@marketplace-order.com",
"login": "jmartin99",
"company_name1": " - ",
"company_name2": " - ",
"delivery_relay_name": "<string>",
"delivery_relay_contractlevel": "<string>",
"delivery_relay_id": "<string>"
},
"address_invoice": {
"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": "6hf9hdkpfd0ç_@marketplace-order.com",
"login": "jmartin99",
"company_name1": " - ",
"company_name2": " - "
},
"order_lines": [
{
"order_line_id": 10402404,
"marketplace_order_line_id": "SANDBOX_8205835_4",
"merchant_order_line_id": "<string>",
"date_canceled": "2023-11-07T05:31:56Z",
"date_refund": "2021-01-20T08:51:00Z",
"status_current": "RETURNED",
"stock_released": true,
"additional_information": {},
"fulfillment_type": "FulfilledByMerchant",
"item": {
"sku": "ABCDX123_XS",
"ean": "1234567891230",
"marketplace_product_id": "SANDBOX_PRODUCT_3029_D4",
"quantity": 3,
"warehouse_name": "My Warehouse",
"warehouse_id": 3,
"merchant_item_serial_number": "ABCDX123"
},
"prices": {
"currency_id": "EUR",
"total_price_including_taxes_excluding_shipping": 94.26,
"total_price_excluding_taxes_excluding_shipping": 78.55,
"total_shipping_cost_including_taxes": 15.21,
"total_shipping_cost_excluding_taxes": 12.32,
"total_insurance_amount_excluding_taxes": 15.21,
"total_insurance_amount_including_taxes": 12.32,
"amount_refunded": 10.1,
"fee": 10.1,
"ecotax": 10.1,
"is_vat_calculated_by_marketplace": true,
"total_vat_amount_excluding_shipping": 12.32,
"total_vat_amount_for_shipping_cost": 12.32
},
"shipping_information": {
"date_shipping": "2012-08-28T00:00:00Z",
"date_estimated_delivery": "2023-11-07T05:31:56Z",
"return_tracking_number": "<string>",
"return_tracking_url": "<string>",
"return_carrier_name": "<string>",
"return_reason": "<string>",
"return_key": "<string>",
"document_url": "<string>",
"tracking_number": "TestWS1-1-Order001-TrackingNumber-8205835",
"shipper_id": "<string>",
"shipping_mode": "<string>",
"carrier_name": "TestWS1-1-Order001-TrackingInfo-8205835",
"tracking_url": "TestWS1-1-Order001-TrackingURL-8205835"
}
}
]
}
]
},
"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."
]
}
}
}
]
}{
"message": "Message description",
"code": 400,
"title": "Message Title"
}Headers
Bearer JWT token, used to authenticate.
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q"
Query Parameters
if FulfilledByMarketplace, only Marketplace fulfilled orders are included in the response. if FulfilledByMerchant, only orders you fulfill are included in the response. if All, both yours and Marketplace fulfilled orders are included in the response.
All, FulfilledByMarketplace, FulfilledByMerchant 
