Admin

Send Enterprise Invoice

Create and send a Stripe invoice to an enterprise customer.

Flow:

  1. Admin enters customer email + amount + plan
  2. Backend creates/retrieves Stripe customer
  3. Creates an invoice with one-off line item
  4. Finalizes and sends the invoice
  5. Customer pays via Stripe-hosted invoice page
  6. When paid, webhook (invoice.paid) activates their enterprise plan

The invoice metadata stores plan_id and auto_activate flag so the webhook handler knows which plan to assign when payment succeeds.

post/admin/send-invoice

Request

  • Base URL
    https://api.oxlo.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.oxlo.ai/admin/send-invoice
  • Auth
    HTTP bearer

Request body

emailstring email required
amount_centsinteger required
descriptionstring required
plan_idstring required
due_daysinteger
auto_activateboolean

Response

Successful Response

invoice_idstring required
amount_displaystring required
customer_emailstring required
plan_idstring required
due_datestring required
hosted_urlstring nullable required
messagestring required

Changes

No recorded changes to this operation across all 1 revision of this API.