latestOpenAPI 3.1.02026-08-218667571.2 MB
a8ca30023371
User APIs
stripe-invoices
stripe-invoices
Create Invoice
Create a Stripe invoice for token purchase
This endpoint implements the complete invoice flow:
- Creates Stripe Invoice (open) with line item amount
- Metadata: client_id, user_id, token_amount
- Create local Payment record (status=PENDING, link to Invoice id)
- Optionally emails hosted invoice URL to customer's billing email
The token granting happens automatically via webhook when the invoice is paid.
post/api/v1/stripe-invoices/create
Request body
Response
Successful Response