Calculate invoice tax
Computes automatic sales tax for the invoice with Stripe Tax against its tax (ship-to) address, writes each line's tax, and rolls it up into the invoice totals. Requires a connected Stripe account with charges enabled and a tax address on the invoice.
Computes automatic sales tax for the invoice with Stripe Tax against its tax (ship-to) address, writes each line's tax, and rolls it up into the invoice totals. Requires a connected Stripe account with charges enabled and a tax address on the invoice.
Authorization
bearerAuth sales:createA gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).
In: header
Scope: sales:create
Path Parameters
Query Parameters
Value in
- "none"
- "customer_exempt"
- "reverse_charge"
Header Parameters
Optional. Send a unique key per logical operation to make retries safe: a retry with the same key replays the stored success for 14 days instead of re-running the write. Reusing a key with a different body returns 400.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
{ "id": "string", "sale_id": "string", "invoice_number": "string", "status": "unpaid", "issued_date": "string", "due_date": "string", "subtotal_cents": -9007199254740991, "discount_cents": -9007199254740991, "discount_bps": -9007199254740991, "tax_cents": -9007199254740991, "shipping_cents": -9007199254740991, "shipping_tax_cents": -9007199254740991, "total_cents": -9007199254740991, "amount_paid_cents": -9007199254740991, "accepted_payment_methods": [ "card" ], "currency": "string", "fx_as_of": "string", "fx_usd_per_unit": 0, "fx_base_currency": "string", "fx_base_usd_per_unit": 0, "base_amount_cents": -9007199254740991, "billing_name": "string", "billing_address": "string", "shipping_name": "string", "shipping_address": "string", "tax_address_line1": "string", "tax_address_city": "string", "tax_address_state": "string", "tax_address_postal_code": "string", "tax_address_country": "string", "tax_calculated_at": "string", "taxability_override": "none", "notes": "string", "archived_at": "string", "template_id": "string", "metadata": { "property1": "string", "property2": "string" }, "created_at": "string", "updated_at": "string"}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "code": "string", "retry": "permanent", "details": null}Set a invoice's tags PATCH
Replaces the full set of tags on this invoice with the supplied `tag_ids` (an empty array clears them). Returns the resulting tag set.
Create a card-present payment intent POST
Creates a card-present Stripe PaymentIntent on the gallery's connected account for the invoice's outstanding balance (or a partial amount) and returns its client secret for the Terminal SDK. Requires a connected Stripe account with charges enabled.