Pending vs invoiced items
Invoice items are returned before they are consolidated onto an invoice, so you can reconcile expected spend in near real-time.- Invoiced items have
invoice_idset, along withtaxandtax_rate. - Pending items have
invoice_id,tax, andtax_rateset tonull. Tax is only computed when the item is invoiced.
Item types and subtypes
Every item has atype (for example shipment, surcharge, or subscription). Some types are further specified by a
subtype: surcharge and surcharge refund items carry the surcharge that was applied (for example dimensional), so you
can tell surcharges apart without parsing the description. Items without a subtype have subtype set to null.
Subtype values
The subtypes below are the values you can expect today. Sendcloud maintains this list and adds new subtypes when carriers introduce new surcharges or new services are launched, so treatsubtype as an open string: handle values you
do not recognise gracefully rather than rejecting them.
Surcharges come in pairs. The refund of a surcharge is a surcharge_refund item whose subtype is the surcharge’s
subtype with a _refund suffix (for example dimensional and dimensional_refund).
Each of the above also exists with a
_refund suffix.
Items for add-ons and services (for example addon, notification or subscription items) use these subtypes:
Filtering
Filter the list withcreated_after / created_before (compared against the item’s billing date, both inclusive), parcel_id, invoice_id, or type. See the Retrieve a list of invoice items endpoint for the full list of supported parameters.
Pagination
This endpoint uses cursor-based pagination viaLink response headers. See Pagination for details.