EnterpriseBilling
Schema Properties
Section titled “Schema Properties”invoiceId string The unique identifier for the invoice.
status 'draft' | 'open' | 'paid' | 'void' | 'uncollectible' The current status of the invoice.
totalAmount number Total invoice amount in cents.
currency string Three-letter ISO currency code.
customer object Details about the customer being billed.
View Properties
customerId string Stripe customer ID.
billingAddress object The primary billing address for tax purposes.
View Properties
line1 string Address line 1 (e.g., street, PO Box).
line2 string Address line 2 (e.g., apartment, suite).
city string City, district, suburb, town, or village.
country string Two-letter country code (ISO 3166-1 alpha-2).
lineItems object[] The individual items or subscriptions included in this invoice.
Array Item Properties
itemId string Unique identifier for the line item.
description string A brief description of the product or service.
quantity number The quantity purchased.
unitAmount number Cost per unit in cents.
metadata Record<string, string> Arbitrary key-value metadata attached to the invoice.
SDK Code Samples
Section titled “SDK Code Samples”Copy these snippets to integrate the EnterpriseBilling API into your application.
curl -X POST "https://api.cloudstart.dev/v1/enterprisebillings" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{"invoiceId":"...","status":"...","totalAmount":"...","currency":"...","customer":"...","lineItems":"...","metadata":"..."}'const options = { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify({ "invoiceId": "...", "status": "...", "totalAmount": "...", "currency": "...", "customer": "...", "lineItems": "...", "metadata": "..." })};
fetch('https://api.cloudstart.dev/v1/enterprisebillings', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));import requests
url = "https://api.cloudstart.dev/v1/enterprisebillings"
headers = { "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_KEY"}
payload = { "invoiceId": "...", "status": "...", "totalAmount": "...", "currency": "...", "customer": "...", "lineItems": "...", "metadata": "..."}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)Interactive Testing
Section titled “Interactive Testing”Use the playground below to simulate creating a new EnterpriseBilling object. This executes a live fetch request directly from your browser.
https://api.cloudstart.dev/v1/enterprisebillings