Billing
List invoice line items
List paginated line items for an invoice. Defaults to 50 per page, sorted by created_at ascending.
Authorization
authorization AuthorizationBearer <token>
In: header
Path Parameters
id*string
Invoice ID
Format
uuidQuery Parameters
page?integer
Page number
page_size?integer
Page size
Response Body
application/json
application/json
curl -X GET "https://api.parsel.app/billing/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/line_items?page=1&page_size=50"{
"data": [
{
"carrier": "UPS",
"created_at": {},
"description": null,
"postage_cents": 1250,
"surcharges_cents": 250,
"total_cents": 1500,
"tracking_code": "1Z999AA10123456784"
},
{
"carrier": "UPS",
"created_at": {},
"description": "Address correction fee",
"postage_cents": 800,
"surcharges_cents": 0,
"total_cents": 800,
"tracking_code": "1Z999AA10123456785"
}
],
"metadata": {
"current_page": 1,
"page_size": 50,
"total_count": 287,
"total_pages": 6
}
}{
"errors": {
"message": "The requested resource could not be found",
"status": "Not Found"
}
}Get invoice GET
Get a specific invoice by ID. Includes the first 250 line items inline; use the line_items endpoint to paginate beyond that.
Create shipment POST
Create a shipment with origin, destination, and parcel details, and retrieve available rates. If buy_cheapest_rate is true, the cheapest rate will be bought and a shipping label will be created.