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
Changes
No recorded changes to this endpoint across all 4 revisions of this API.