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
- Base URL: https://carbonarc.ai (the document declares no server; this is the origin it was published from)
- URL: https://carbonarc.ai/api/v1/stripe-invoices/create
- Auth: OAuth 2 (authorization code, authorization URL authorize, token URL token)
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 4 revisions of this API.