POST
Create invoice

Authorizations

x-api-key
string
header
required

Server-side merchant API key. Never expose it in browser code.

Headers

Idempotency-Key
string

Retry-safe key for create operations.

Body

application/json
customerId
string
required
amountDue
object
required
subscriptionId
string
dueDate
string<date>
metadata
object

Response

Resource created

id
string
required
customerId
string
required
status
enum<string>
required
Available options:
draft,
open,
paid,
uncollectible,
void
amountDue
object
required
subscriptionId
string
hostedInvoiceUrl
string<uri>
dueDate
string<date>
metadata
object