sponsorships.invoice.preview
Preview a sponsorship invoice from its package and optional existing invoice template, using the existing customer's legal/billing identity and project. Choose currency, price, service dates, terms and explicit tax treatment; unknown tax remains unconfirmed, country alone never selects tax. Preview does not create, issue or send an invoice.
/api/v1/accounting/sponsorships.invoice.previewPermissions
Who can call it
Retries
MCP
accounting_sponsorships_invoice_previewFields
idstring (ID)RequiredThe record's ID.
expectedRevisionintegerRequiredThe record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again.
0 to 9007199254740991
additionalInvoiceReasonstring or nullDefault null
issueDatestring or nullThe date the document was issued, as YYYY-MM-DD.
dueDatestring or nullThe date payment is due, as YYYY-MM-DD.
taxTreatmentenumRequiredunknownhstgstgst_qstzero_ratedexemptnonecustomtaxRateCodestring or nulltaxReasonstringat most 2000 characters · Default ""
termsobjectNo other fields
priceMinorstringAn amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50.
Matches ^(?:0|[1-9]\d{0,18})$
currencystringThree-letter currency code, such as CAD or USD.
Example
curl -G https://app.getoatmilk.com/api/v1/accounting/sponsorships.invoice.preview \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
--data-urlencode 'expectedRevision=3' \
--data-urlencode 'taxTreatment=unknown'{
"data": { … }
}Try it
Try it
Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.
curl -G https://app.getoatmilk.com/api/v1/accounting/sponsorships.invoice.preview \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d' \
--data-urlencode 'expectedRevision=3' \
--data-urlencode 'taxTreatment=unknown'More in Invoicing.