POST
/
invoices
curl --request POST \
  --url https://api.chargeapi.co/v1/invoices \
  --header 'Content-Type: application/json' \
  --data '{
  "period_start": 1711929600,
  "period_end": 1714608000
}'
{
  "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
}

Body

application/json

Response

200
application/json

Returns the newly created Invoice object with status set to draft. Line items are generated from the transactions in the requested period, but the invoice isn’t payable until you finalize it.