Stripe

Add tax to a Stripe invoice

Calculates tax for a draft Stripe invoice and writes it onto the invoice's line items, replacing the sequence of Stripe calls you would otherwise make yourself. Hold the draft (auto_advance: false) before calling, and finalize it once this returns. Safe to retry: an invoice that already carries the same calculation comes back as unchanged.

post/stripe/calculate_invoice_tax

Request

  • Base URL: https://api.getsphere.com/v1
  • URL: https://api.getsphere.com/v1/stripe/calculate_invoice_tax
  • Auth: API key in header X-API-KEY

Request body

external_idstring required
stripe_account_idstring nullable

Response

external_idstring required
stripe_account_idstring required
status'applied' | 'unchanged' | 'no_tax' required
reasonstring required
calculation_idstring nullable

Changes

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