Retrieve the status of an asynchroneous status update request.
curl --request GET \
--url https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/status \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/status"
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/{order-id}/lines/{order-line-id}/status', 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/{order-id}/lines/{order-line-id}/status",
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/{order-id}/lines/{order-line-id}/status"
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/{order-id}/lines/{order-line-id}/status")
.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/{order-id}/lines/{order-line-id}/status")
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": {
"order_line_status": {
"order_line_id": 10402404,
"marketplace_order_line_id": "SANDBOX_8205835_4",
"merchant_order_line_id": "<string>",
"sku": "D4",
"ean": "1234567891230",
"status_current": "SHIPPED",
"status_request": {
"action_id": 342090635,
"action_label": "CONFIRMATION REQUEST",
"date_start": "2023-11-07T05:31:56Z",
"date_end": "2023-11-07T05:31:56Z",
"state": "SUCCESS",
"message": "<string>"
}
}
},
"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"
}OrderLines
Retrieve the status of an asynchroneous status update request.
This endpoint is used to check the status of the asynchroneous status update request send previously via the PATCH confirm, cancel, ship, refund endpoints.
GET
/
merchant
/
orders
/
{order-id}
/
lines
/
{order-line-id}
/
status
Retrieve the status of an asynchroneous status update request.
curl --request GET \
--url https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/status \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/status"
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/{order-id}/lines/{order-line-id}/status', 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/{order-id}/lines/{order-line-id}/status",
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/{order-id}/lines/{order-line-id}/status"
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/{order-id}/lines/{order-line-id}/status")
.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/{order-id}/lines/{order-line-id}/status")
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": {
"order_line_status": {
"order_line_id": 10402404,
"marketplace_order_line_id": "SANDBOX_8205835_4",
"merchant_order_line_id": "<string>",
"sku": "D4",
"ean": "1234567891230",
"status_current": "SHIPPED",
"status_request": {
"action_id": 342090635,
"action_label": "CONFIRMATION REQUEST",
"date_start": "2023-11-07T05:31:56Z",
"date_end": "2023-11-07T05:31:56Z",
"state": "SUCCESS",
"message": "<string>"
}
}
},
"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.
Example:
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q"

