Get salesShipmentLines

Retrieve the properties and relationships of a salesShipmentLine object for Business Central.

HTTP request

Replace the URL prefix for Business Central depending on environment following the guideline.

GET businesscentralPrefix/companies({id})/salesShipments({id})/salesShipmentLines({salesShipmentLineId})
GET businesscentralPrefix/companies({id})/salesShipmentLines({salesShipmentLineId})

Request headers

Header Value
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and an salesShipmentLines object in the response body.

Example

Request

Here is an example of the request.

GET https://{businesscentralPrefix}/api/v2.0/companies({id})/salesShipments({id})/salesShipmentLines({salesShipmentLineId})

Response

Here is an example of the response.

{
   "id": "238cb9c0-44e3-ea11-bb43-000d3a2feca1",
   "documentId": "9e0f5c9c-44e3-ea11-bb43-000d3a2feca1",
   "documentNo": "829482",
   "sequence": 10000,
   "lineType": "NAV.salesLineType",
   "lineObjectNumber": "1928-S",
   "description": "AMSTERDAM Lamp",
   "unitOfMeasureCode": "PCS",
   "unitPrice":  54.9,
   "quantity": 3,
   "discountPercent": 0,
   "taxPercent": 20,
   "shipmentDate": "2020-08-21"
}

See also

Tips for working with the APIs
salesShipmentLine