> For the complete documentation index, see [llms.txt](https://edrus.gitbook.io/appgregator-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edrus.gitbook.io/appgregator-api-docs/appgregators/payment-gateway/stripe/api/invoices/list-all-invoice-items.md).

# List all invoice items

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/stripe/invoices-items/`

#### Query Parameters

| Name                                               | Type   | Description |
| -------------------------------------------------- | ------ | ----------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4        |
| connection\_name<mark style="color:red;">\*</mark> | String | stripe-1    |
| limit                                              | 1      |             |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | XXX         |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "object": "list",
    "data": [
        {
            "id": "ii_1MYnh7Iyq0PiFIhUkVrsWrLC",
            "object": "invoiceitem",
            "amount": 2000,
            "currency": "usd",
            "customer": "cus_MQqeLuPp19Qbk8",
            "date": 1675762953,
            "description": null,
            "discountable": true,
            "discounts": [],
            "invoice": "in_1MYnhJIyq0PiFIhUFeI3wMrp",
            "livemode": false,
            "metadata": {},
            "period": {
                "end": 1675762953,
                "start": 1675762953
            },
            "plan": null,
            "price": {
                "id": "price_1MYnh7Iyq0PiFIhUOssRW0Js",
                "object": "price",
                "active": false,
                "billing_scheme": "per_unit",
                "created": 1675762953,
                "currency": "usd",
                "custom_unit_amount": null,
                "livemode": false,
                "lookup_key": null,
                "metadata": {},
                "nickname": null,
                "product": "prod_NJQYBIRDcjz2jR",
                "recurring": null,
                "tax_behavior": "unspecified",
                "tiers_mode": null,
                "transform_quantity": null,
                "type": "one_time",
                "unit_amount": 2000,
                "unit_amount_decimal": "2000"
            },
            "proration": false,
            "quantity": 1,
            "subscription": null,
            "tax_rates": [],
            "test_clock": null,
            "unit_amount": 2000,
            "unit_amount_decimal": "2000"
        }
    ],
    "has_more": true,
    "url": "/v1/invoiceitems"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/stripe/invoices-items?name=ft-4&connection_name=stripe-1&limit=1' \
--header 'x-api-key: XXX'
```

{% endtab %}

{% tab title="NodeJS - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/stripe/invoices-items?name=ft-4&connection_name=stripe-1&limit=1',
  headers: { 
    'x-api-key': 'XXX'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/stripe/invoices-items?name=ft-4&connection_name=stripe-1&limit=1',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: XXX'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
