Send Invoice
POST/api/stripe/invoices
Creates, finalizes, and sends a Stripe Invoice for a sales order. Stripe emails the customer the hosted invoice link automatically. If a payable open invoice already exists for the sales order it is returned instead of creating a new one (idempotent).
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Fields:
integration_instance_id(required, integer) — the Stripe integration to charge throughsales_order_id(required, integer) — the sales order being invoicedamount_in_cents(optional, integer, min 1) — override the order outstanding balance; if omitted the full outstanding balance is invoicedcustomer_email(optional, email) — override the customer email on file (defaults to the sales order's customer email)
Rate limited: 30 requests/minute.
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
- 502
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.
Bad Gateway