v1

latestOpenAPI 3.0.32026-07-248519153.1 KB

Create a subscription invoice

Create a single invoice record for an existing subscription in the current project. The subscription must belong to the project identified by the API key.

post/subscription/invoice

Request body

subscription_idinteger required

ID of the subscription (must belong to the current project).

invoice_idstring nullable

External invoice/charge ID.

status0 | 1 | 2 | 3 | 4 required

0=Processing, 1=Paid, 2=Unpaid, 3=Refund, 4=Unknown

is_refundboolean
datestring required

Invoice date (e.g. timestamp string).

amountnumber required
amount_usdnumber nullable

Response

Invoice created successfully.

successinteger
dataobject

Created subscription invoice (id, subscription_id, invoice_id, status, date, amount, amount_usd, is_refund, etc.)

Example response

{
  "success": 1
}