Endpoints relating to BookingLineItem objects. The Booking Line Item endpoints need special permission to access. Please contact your Flexport Sales representative if you are interested in using these endpoints.
Returns a list of booking line items linked to submitted bookings
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/api/collections/paginated",
- "next": null,
- "data": [
- {
- "_object": "/purchase_orders/booking_line_item",
- "id": 123456,
- "booking": {
- "_object": "/api/refs/object",
- "ref_type": "/booking",
- "id": 9876
}, - "purchase_order_line_item": {
- "_object": "/api/refs/object",
- "ref_type": "/purchase_orders/line_item",
- "id": 112358
}, - "units": 200
}
]
}
}
Creates and returns a booking line item
The created booking line item
error
{- "purchase_order_line_item_id": 112358,
- "booking_id": 9876,
- "units": 200
}
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/purchase_orders/booking_line_item",
- "id": 123456,
- "booking": {
- "_object": "/api/refs/object",
- "ref_type": "/booking",
- "id": 9876
}, - "purchase_order_line_item": {
- "_object": "/api/refs/object",
- "ref_type": "/purchase_orders/line_item",
- "id": 112358
}, - "units": 200
}
}
Returns a list of booking line items
A collection of booking line items
error
Success
{- "_object": "/api/response",
- "version": 2,
- "data": {
- "_object": "/purchase_orders/booking_line_item",
- "id": 123456,
- "booking": {
- "_object": "/api/refs/object",
- "ref_type": "/booking",
- "id": 9876
}, - "purchase_order_line_item": {
- "_object": "/api/refs/object",
- "ref_type": "/purchase_orders/line_item",
- "id": 112358
}, - "units": 200
}
}