{
"id": "INVOICE_ID",
"issued_at": "2024-10-02T00:00:00+00:00",
"start_timestamp": "2024-09-01T00:00:00+00:00",
"end_timestamp": "2024-10-01T00:00:00+00:00",
"customer_id": "CUSTOMER_ID",
"customer_custom_fields": {},
"type": "USAGE",
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"status": "DRAFT",
"total": 3000,
"external_invoice": null,
"contract_id": "CONTRACT_ID",
"contract_custom_fields": {},
"custom_fields": {},
"billable_status": "billable",
"line_items": [
{
"product_id": "PRODUCT_ID",
"product_type": "UsageProductListItem",
"product_custom_fields": {},
"name": "Tokens Consumed",
"total": 5000,
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"starting_at": "2024-09-01T00:00:00+00:00",
"ending_before": "2024-10-01T00:00:00+00:00",
"commit_id": "COMMIT_ID",
"commit_segment_id": "COMMIT_SEGMENT_ID",
"commit_type": "PrepaidCommit",
"commit_custom_fields": {},
"unit_price": 100,
"quantity": 50
},
{
"product_id": "PRODUCT_ID",
"product_type": "UsageProductListItem",
"product_custom_fields": {},
"name": "Prepaid Tokens applied",
"total": -5000,
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"starting_at": "2024-09-01T00:00:00+00:00",
"ending_before": "2024-10-01T00:00:00+00:00",
"commit_id": "COMMIT_ID",
"commit_segment_id": "COMMIT_SEGMENT_ID",
"commit_type": "PrepaidCommit",
"commit_custom_fields": {}
},
{
"product_id": "PRODUCT_ID",
"product_type": "UsageProductListItem",
"product_custom_fields": {},
"name": "Tokens Consumed",
"total": 3000,
"credit_type": {
"id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
"name": "USD (cents)"
},
"starting_at": "2024-09-01T00:00:00+00:00",
"ending_before": "2024-10-01T00:00:00+00:00",
"unit_price": 100,
"quantity": 30
}
]
}