Create invoice
POST
Create a manual invoice for a customer.
apiKeyHeaderheader
x-api-key<token>API key for authentication. Generate from the dashboard or via POST /v1/api-keys.
x-api-key*stringAPI key for authentication
Length
1 <= length- body
customer_id*stringID of the customer this invoice is billed to
amount*numberTotal invoice amount in minor units (santim). 1 ETB = 100 santim
Range
1 <= valuecurrency?stringISO 4217 currency code
Default
"ETB"line_items*unknowndue_date*stringInvoice due date in ISO 8601 format. Must be a future date.
metadata*|nullsubscription_id?stringOptional subscription this invoice belongs to. Leave it out for a one-off invoice.
Response for status 200
application/json- response
id*stringamount*numbercurrency*stringstatus*stringissued_at*stringdue_date*stringmetadata*|nullcreated_at*stringupdated_at*stringcurl -X POST 'https://api.tryaccess.xyz/api/v1/invoices/' \ -H 'x-api-key: string' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cus_01J9Z8K2P3Q4R5S6T7U8V9W0X1", "amount": 9900, "line_items": null, "due_date": "2025-12-31T00:00:00.000Z", "metadata": {}}'{ "id": "string", "amount": 0, "currency": "string", "status": "string", "issued_at": "string", "due_date": "string", "metadata": {}, "created_at": "string", "updated_at": "string"}How is this guide?