Skip to navigation

List invoice lines

Lists an invoice’s lines in the order it prints them. When rate card details are enabled for the account, those lines show the rate, version, unit price and discounts recorded when they were billed. {invoice} takes the invoice’s inv_ ID.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

invoicestringRequired1-255 characters

The invoice’s inv_ ID.

Headers

Paid-BetaenumRequired

This endpoint is in the invoices=v1 beta. Send this header to use it.

Allowed values:

Query parameters

cursorstringOptional

The nextCursor of the previous page. Omit it for the first page.

limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects
The lines on this page, in the order the invoice prints them.
hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error