Skip to Content
Omnibase

Create a Stripe invoice

POST
/api/v1/payments/invoices

Authorization

ServiceKeyAuth
headerX-Service-Key<token>

Admin service-to-service key. Trusted for all routes and skips permission checks.

Request Body

application/json
  1. body
auto_advance?boolean
collection_method?string
Value in"charge_automatically""send_invoice"
currency*string
Length3 <= length <= 3
days_until_due?integer
Formatint64
Range0 <= value <= 365
description?string
metadata?

Response Body

OK

application/json
  1. response
amount_due*integer
Formatint64
currency*string
customer_id*string
hosted_invoice_url?string
id*string
invoice_pdf?string
status*string
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/payments/invoices' \  -H 'Content-Type: application/json' \  -d '{  "currency": "str"}'
Example Response
{  "amount_due": 0,  "currency": "string",  "customer_id": "string",  "hosted_invoice_url": "string",  "id": "string",  "invoice_pdf": "string",  "status": "string"}