GET
/
api
/
external
/
v2
/
billing_subscriptions
/
{billing_subscription_id}
/
invoice_lines
List invoice lines for a billing subscription
curl --request GET \
  --url https://app.pennylane.com/api/external/v2/billing_subscriptions/{billing_subscription_id}/invoice_lines \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
  "items": [
    {
      "id": 444,
      "label": "Demo label",
      "unit": "piece",
      "quantity": "12",
      "amount": "50.4",
      "currency_amount": "50.4",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor",
      "product": {
        "id": 3049,
        "url": "https://app.pennylane.com/api/external/v2/products/42"
      },
      "vat_rate": "FR_200",
      "currency_amount_before_tax": "30",
      "currency_tax": "10",
      "tax": "10",
      "raw_currency_unit_price": "5",
      "discount": {
        "type": "absolute",
        "value": 25
      },
      "section_rank": 1,
      "imputation_dates": {
        "start_date": "2020-06-30",
        "end_date": "2021-06-30"
      },
      "created_at": "2023-08-30T10:08:08.146343Z",
      "updated_at": "2023-08-30T10:08:08.146343Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

billing_subscription_id
integer
required

Query Parameters

cursor
string

Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.

Example:

"dXBkYXRlZF9hdDoxNjc0MTIzNDU2"

limit
integer

Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.

Required range: 1 <= x <= 100
Example:

20

sort
string
default:-id

You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id

Response

200
application/json

Returns the list of invoice lines for a billing subscription

The response is of type object.