List all invoice items
GET
https://us-central1-appgregator.cloudfunctions.net/stripe/invoices-items/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
stripe-1
limit
1
Headers
Name
Type
Description
x-api-key*
String
XXX
{
"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"
}
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'
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);
});
<?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;
Last updated