curl --request PATCH \
--url https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"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"
},
"quantity": 3
}
'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship"
payload = {
"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"
},
"quantity": 3
}
headers = {
"Authorization": "<authorization>",
"Accept": "<accept>",
"Content-Type": "<content-type>"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: '<authorization>',
Accept: '<accept>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({
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'
},
quantity: 3
})
};
fetch('https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship', 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}/ship",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'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'
],
'quantity' => 3
]),
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship"
payload := strings.NewReader("{\n \"shipping_information\": {\n \"date_shipping\": \"2012-08-28T00:00:00Z\",\n \"date_estimated_delivery\": \"2023-11-07T05:31:56Z\",\n \"return_tracking_number\": \"<string>\",\n \"return_tracking_url\": \"<string>\",\n \"return_carrier_name\": \"<string>\",\n \"return_reason\": \"<string>\",\n \"return_key\": \"<string>\",\n \"document_url\": \"<string>\",\n \"tracking_number\": \"TestWS1-1-Order001-TrackingNumber-8205835\",\n \"shipper_id\": \"<string>\",\n \"shipping_mode\": \"<string>\",\n \"carrier_name\": \"TestWS1-1-Order001-TrackingInfo-8205835\",\n \"tracking_url\": \"TestWS1-1-Order001-TrackingURL-8205835\"\n },\n \"quantity\": 3\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship")
.header("Authorization", "<authorization>")
.header("Accept", "<accept>")
.header("Content-Type", "<content-type>")
.body("{\n \"shipping_information\": {\n \"date_shipping\": \"2012-08-28T00:00:00Z\",\n \"date_estimated_delivery\": \"2023-11-07T05:31:56Z\",\n \"return_tracking_number\": \"<string>\",\n \"return_tracking_url\": \"<string>\",\n \"return_carrier_name\": \"<string>\",\n \"return_reason\": \"<string>\",\n \"return_key\": \"<string>\",\n \"document_url\": \"<string>\",\n \"tracking_number\": \"TestWS1-1-Order001-TrackingNumber-8205835\",\n \"shipper_id\": \"<string>\",\n \"shipping_mode\": \"<string>\",\n \"carrier_name\": \"TestWS1-1-Order001-TrackingInfo-8205835\",\n \"tracking_url\": \"TestWS1-1-Order001-TrackingURL-8205835\"\n },\n \"quantity\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<authorization>'
request["Accept"] = '<accept>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"shipping_information\": {\n \"date_shipping\": \"2012-08-28T00:00:00Z\",\n \"date_estimated_delivery\": \"2023-11-07T05:31:56Z\",\n \"return_tracking_number\": \"<string>\",\n \"return_tracking_url\": \"<string>\",\n \"return_carrier_name\": \"<string>\",\n \"return_reason\": \"<string>\",\n \"return_key\": \"<string>\",\n \"document_url\": \"<string>\",\n \"tracking_number\": \"TestWS1-1-Order001-TrackingNumber-8205835\",\n \"shipper_id\": \"<string>\",\n \"shipping_mode\": \"<string>\",\n \"carrier_name\": \"TestWS1-1-Order001-TrackingInfo-8205835\",\n \"tracking_url\": \"TestWS1-1-Order001-TrackingURL-8205835\"\n },\n \"quantity\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"order_lines": {
"order_line_id": 10402404,
"status": {
"message": "Message description",
"code": 400,
"title": "Message Title"
}
}
},
"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"
}
]
}
}{
"data": {
"order_lines": {
"order_line_id": 10402404,
"status": {
"message": "Message description",
"code": 400,
"title": "Message Title"
}
}
},
"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"
}{
"message": "Message description",
"code": 400,
"title": "Message Title"
}Ship a single Marketplace order line.
Request a shipped status update for a specific order_line. This process is asynchroneous : The request must be processed by the Marketplace before the status of the order_line is updated.
curl --request PATCH \
--url https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship \
--header 'Accept: <accept>' \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"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"
},
"quantity": 3
}
'import requests
url = "https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship"
payload = {
"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"
},
"quantity": 3
}
headers = {
"Authorization": "<authorization>",
"Accept": "<accept>",
"Content-Type": "<content-type>"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: '<authorization>',
Accept: '<accept>',
'Content-Type': '<content-type>'
},
body: JSON.stringify({
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'
},
quantity: 3
})
};
fetch('https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship', 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}/ship",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'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'
],
'quantity' => 3
]),
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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship"
payload := strings.NewReader("{\n \"shipping_information\": {\n \"date_shipping\": \"2012-08-28T00:00:00Z\",\n \"date_estimated_delivery\": \"2023-11-07T05:31:56Z\",\n \"return_tracking_number\": \"<string>\",\n \"return_tracking_url\": \"<string>\",\n \"return_carrier_name\": \"<string>\",\n \"return_reason\": \"<string>\",\n \"return_key\": \"<string>\",\n \"document_url\": \"<string>\",\n \"tracking_number\": \"TestWS1-1-Order001-TrackingNumber-8205835\",\n \"shipper_id\": \"<string>\",\n \"shipping_mode\": \"<string>\",\n \"carrier_name\": \"TestWS1-1-Order001-TrackingInfo-8205835\",\n \"tracking_url\": \"TestWS1-1-Order001-TrackingURL-8205835\"\n },\n \"quantity\": 3\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship")
.header("Authorization", "<authorization>")
.header("Accept", "<accept>")
.header("Content-Type", "<content-type>")
.body("{\n \"shipping_information\": {\n \"date_shipping\": \"2012-08-28T00:00:00Z\",\n \"date_estimated_delivery\": \"2023-11-07T05:31:56Z\",\n \"return_tracking_number\": \"<string>\",\n \"return_tracking_url\": \"<string>\",\n \"return_carrier_name\": \"<string>\",\n \"return_reason\": \"<string>\",\n \"return_key\": \"<string>\",\n \"document_url\": \"<string>\",\n \"tracking_number\": \"TestWS1-1-Order001-TrackingNumber-8205835\",\n \"shipper_id\": \"<string>\",\n \"shipping_mode\": \"<string>\",\n \"carrier_name\": \"TestWS1-1-Order001-TrackingInfo-8205835\",\n \"tracking_url\": \"TestWS1-1-Order001-TrackingURL-8205835\"\n },\n \"quantity\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-neteven.mylectra.com/merchant/orders/{order-id}/lines/{order-line-id}/ship")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<authorization>'
request["Accept"] = '<accept>'
request["Content-Type"] = '<content-type>'
request.body = "{\n \"shipping_information\": {\n \"date_shipping\": \"2012-08-28T00:00:00Z\",\n \"date_estimated_delivery\": \"2023-11-07T05:31:56Z\",\n \"return_tracking_number\": \"<string>\",\n \"return_tracking_url\": \"<string>\",\n \"return_carrier_name\": \"<string>\",\n \"return_reason\": \"<string>\",\n \"return_key\": \"<string>\",\n \"document_url\": \"<string>\",\n \"tracking_number\": \"TestWS1-1-Order001-TrackingNumber-8205835\",\n \"shipper_id\": \"<string>\",\n \"shipping_mode\": \"<string>\",\n \"carrier_name\": \"TestWS1-1-Order001-TrackingInfo-8205835\",\n \"tracking_url\": \"TestWS1-1-Order001-TrackingURL-8205835\"\n },\n \"quantity\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"order_lines": {
"order_line_id": 10402404,
"status": {
"message": "Message description",
"code": 400,
"title": "Message Title"
}
}
},
"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"
}
]
}
}{
"data": {
"order_lines": {
"order_line_id": 10402404,
"status": {
"message": "Message description",
"code": 400,
"title": "Message Title"
}
}
},
"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"
}{
"message": "Message description",
"code": 400,
"title": "Message Title"
}Headers
Bearer JWT token, used to authenticate.
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q"
Path Parameters
Body
An OrderLineShipRequest object is send along with a PATCH /order_lines/ship to update specific lines, including optional paramters.

