POST
/
invoices
curl --request POST \
  --url https://api.chargeapi.co/v1/invoices
{
  "id": null,
  "object": null,
  "amount_due": null,
  "amount_paid": null,
  "created": null,
  "currency": null,
  "due_date": null,
  "line_items": null,
  "paid_at": null,
  "period_end": null,
  "period_start": null,
  "status": null
}

Response

200 - application/json
A newly created invoice.

An Invoice represents a billing statement issued to an account or fleet. It contains line items, payment status, total amounts, and the billing period it covers.

id
string

Unique identifier for the invoice object.

Example:

null

object
string

String representing the object’s type. Always invoice.

Example:

null

amount_due
integer | null

Total amount due on the invoice, in the smallest currency unit (e.g., cents).

Example:

null

amount_paid
integer | null

Total amount paid toward the invoice.

Example:

null

created
integer

Time at which the invoice was created.

Example:

null

currency
string

ISO 4217 three-letter currency code (e.g., usd).

Example:

null

due_date
integer | null

Timestamp when the invoice is due.

Example:

null

line_items
object[] | null

Array of individual line items included in the invoice.

Example:

null

paid_at
integer | null

Timestamp when the invoice was fully paid, if applicable.

Example:

null

period_end
integer | null

End of the billing period this invoice covers.

Example:

null

period_start
integer | null

Start of the billing period this invoice covers.

Example:

null

status
enum<string> | null

Current status of the invoice.

Available options:
draft,
open,
paid,
overdue,
void
Example:

null