curl --request GET \
--url https://api.yorlet.com/v1/invoice_items \
--header 'Authorization: <api-key>'{
"count": 1,
"has_more": false,
"object": "list",
"data": [
{
"id": "<string>",
"created": 123,
"object": "invoice_item",
"amount": 123,
"apply_after": 123,
"credit_amount": 123,
"currency": "<string>",
"customer": "<string>",
"description": "<string>",
"discount_amount": 123,
"invoice": "<string>",
"price_data": {
"amount": 123,
"currency": "<string>",
"recurring": {
"interval": "<string>",
"interval_count": 123
},
"tax_percent": 50,
"type": "recurring"
},
"price": "<string>",
"proration_amount": 123,
"tax_percent": 50,
"total_credit_grant_amount": 123,
"transfer_destination": "<string>",
"type": "charge",
"unit": "<string>",
"account": "<string>",
"deleted": false,
"metadata": {},
"transfer_behavior": "automatic"
}
]
}List all invoice items
curl --request GET \
--url https://api.yorlet.com/v1/invoice_items \
--header 'Authorization: <api-key>'{
"count": 1,
"has_more": false,
"object": "list",
"data": [
{
"id": "<string>",
"created": 123,
"object": "invoice_item",
"amount": 123,
"apply_after": 123,
"credit_amount": 123,
"currency": "<string>",
"customer": "<string>",
"description": "<string>",
"discount_amount": 123,
"invoice": "<string>",
"price_data": {
"amount": 123,
"currency": "<string>",
"recurring": {
"interval": "<string>",
"interval_count": 123
},
"tax_percent": 50,
"type": "recurring"
},
"price": "<string>",
"proration_amount": 123,
"tax_percent": 50,
"total_credit_grant_amount": 123,
"transfer_destination": "<string>",
"type": "charge",
"unit": "<string>",
"account": "<string>",
"deleted": false,
"metadata": {},
"transfer_behavior": "automatic"
}
]
}API Key authentication. Use "Bearer YOUR_API_KEY".
Was this page helpful?