Create invoice preview
documentedCreate an invoice preview.
POST /v1/invoices/create_previewBillingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.stripe.com/v1/invoices/create_preview" \
-X POST \
-u "{{STRIPE_API_KEY}}:" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
-d "customer={{$customer_id}}" \
-d "invoice_items[0][price]={{$price_item_1}}" \
-d "invoice_items[0][quantity]={{$qty1}}" \
-d "invoice_items[1][price]={{$price_item_2}}" \
-d "invoice_items[1][quantity]={{$qty2}}" \
-d "discounts[0][promotion_code]={{$promo_code}}" \
-d "automatic_tax[enabled]={{$automatic_tax_enabled}}"