Billing Invoices
Billing Invoices represent charges for a customer over a specified billing period. Invoices can include line items and support different collection methods for payment.
The Billing Invoice Object
Attributes
Unique identifier for the invoice.
The invoice number.
The ID of the customer this invoice belongs to.
The status of the invoice (e.g., "draft").
Three-letter ISO currency code (e.g., "USD").
Total amount for the invoice.
The method used to collect payment (e.g., "request_payment").
List of line items included in the invoice.
The date on which payment is due, in ISO 8601 format.
Number of days until payment is due.
Description of the invoice.
Additional memo for the invoice.
Additional information attached to the invoice.
The object type, always "invoice".
Indicates if this is in live mode (true) or sandbox/testing (false).
Unix timestamp when the invoice was created.
Unix timestamp when the invoice was last updated.
{
"id": "5550e6b3-3fdb-4c73-99a8-d836211a6f19",
"invoice_number": "F081FE64-DRAFT",
"currency": "USD",
"livemode": false,
"created": 1762982952,
"updated": 1762982952,
"metadata": {
"test": "test"
},
"customer": "5c5286be-ca91-47d7-92d1-4f211963fce9",
"line_items": [],
"collection_method": "request_payment",
"status": "draft",
"due_date": null,
"description": null,
"memo": null,
"net_terms": 0,
"object": "invoice",
"total": 113500000
}
Create Billing Invoice
Creates a new billing invoice for a customer.
Parameters
The ID of the customer to invoice.
Start date for the invoice period in ISO 8601 format.
End date for the invoice period in ISO 8601 format.
The method used to collect payment (e.g., "request_payment").
List of line items to include in the invoice.
Additional information to attach to the invoice.
Returns
Returns the created billing invoice object if successful. Returns an error if the request is invalid.
curl -X POST "https://api.framepayments.com/v1/billing/invoices" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer API_KEY" \
-d '{
"customer": "5c5286be-ca91-47d7-92d1-4f211963fce9",
"collection_method": "request_payment",
"metadata": {
"test": "test"
},
"start_date": "2025-08-01",
"end_date": "2025-09-01"
}'
{
"id": "5550e6b3-3fdb-4c73-99a8-d836211a6f19",
"invoice_number": "F081FE64-DRAFT",
"currency": "USD",
"livemode": false,
"created": 1762982952,
"updated": 1762982952,
"metadata": {
"test": "test"
},
"customer": "5c5286be-ca91-47d7-92d1-4f211963fce9",
"line_items": [],
"collection_method": "request_payment",
"status": "draft",
"due_date": null,
"description": null,
"memo": null,
"net_terms": 0,
"object": "invoice",
"total": 113500000
}