Skip to main content
GET
/
api
/
rest
/
shipment_line_items
/
{id}
Get One Shipment Line Item
curl --request GET \
  --url https://api.upwell.com/api/rest/shipment_line_items/{id}
import requests

url = "https://api.upwell.com/api/rest/shipment_line_items/{id}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.upwell.com/api/rest/shipment_line_items/{id}', 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.upwell.com/api/rest/shipment_line_items/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$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.upwell.com/api/rest/shipment_line_items/{id}"

req, _ := http.NewRequest("GET", url, nil)

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.upwell.com/api/rest/shipment_line_items/{id}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.upwell.com/api/rest/shipment_line_items/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "shipmentLineItem": {
    "commodityDescription": "<string>",
    "createdAt": "<unknown>",
    "deliveryLocationName": "<string>",
    "dimensionUnit": "<string>",
    "freightClass": "<string>",
    "handlingUnit": "<string>",
    "handlingUnitQty": "<unknown>",
    "hazmatFlag": true,
    "height": "<unknown>",
    "id": "<string>",
    "length": "<unknown>",
    "lineNumber": 123,
    "nmfcClass": "<string>",
    "nmfcNumber": "<string>",
    "packageQty": "<unknown>",
    "packageUnit": "<string>",
    "pickupLocationName": "<string>",
    "referenceNumber": "<string>",
    "shipmentId": "<string>",
    "sourceSystem": "<string>",
    "sourceSystemId": "<string>",
    "updatedAt": "<unknown>",
    "weight": "<unknown>",
    "weightUnit": "<string>",
    "width": "<unknown>"
  }
}

Headers

authorization
string

Your API key will be used for authentication of the request. Authorization: YOUR_API_KEY

Path Parameters

id
string
required

"id" is required (enter it either in parameters or request body)

Response

200 - application/json

Responses for GET /api/rest/shipment_line_items/{id}

shipmentLineItem
ShipmentLineItems Ā· object | null

Shipment Line Items