Parselv1.0.0
Billing

List invoice line items

List paginated line items for an invoice. Defaults to 50 per page, sorted by created_at ascending.

GET
/billing/invoices/{id}/line_items

Authorization

authorization
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Invoice ID

Formatuuid

Query 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,
      "purchased_at": {},
      "retail_cents": 1995,
      "service": "Ground",
      "shipping_label_status": "PRE_TRANSIT",
      "surcharges": [
        {
          "surcharge": {
            "amount": 2.5,
            "currency": "USD"
          },
          "surcharge_type": "DAS"
        }
      ],
      "surcharges_cents": 250,
      "total_cents": 1500,
      "tracking_code": "1Z999AA10123456784",
      "type": "postage"
    },
    {
      "carrier": "UPS",
      "created_at": {},
      "description": "Address correction fee",
      "postage_cents": 800,
      "purchased_at": null,
      "retail_cents": 1295,
      "service": null,
      "shipping_label_status": null,
      "surcharges": [],
      "surcharges_cents": 0,
      "total_cents": 800,
      "tracking_code": "1Z999AA10123456785",
      "type": "fee"
    }
  ],
  "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"
  }
}