PROJECTED. You cannot approve, pay or download it.
Each projected invoice has an id that stays the same between requests. You can’t fetch it by id, though. GET /v2/invoices/{id} returns 404 for a projected invoice.
Request projected invoices
CallGET /v2/invoices/projected with the subscriptionId. Use from and to to filter on the invoice moment. Use limit and offset to page through the results.
If the subscription has a test clock, “now” is the test-clock time. For the full list of parameters and responses, see the List projected invoices API reference.
lineItems.
What a projected invoice includes
Paygentic returns one projected invoice for each invoice moment. Charges that fall due at the same moment are on the same invoice. A charge with its own billing cadence can fall due at a different moment, and so it is on a different invoice. A projected invoice includes:- Fee charges from the subscription’s timeline, including future changes that are already scheduled.
- Manual line items that no invoice has claimed yet.
- Percentage discounts, and quantity minimums and maximums, as Paygentic applies them when it closes the invoice.
Limits
Tax,
sequenceNumber and dueAt are estimates. The real invoice can have different values. For example, an invoice that waits for a manual approval is due from the day it is approved.How tax is estimated
Paygentic does not ask the tax authority for a projected invoice. It estimates the tax rate of each charge with the first of these rates that it finds:- The rate of the latest issued invoice on the same subscription that has the same charge.
- The rate of the latest issued invoice for the same customer that has the same item.
- The default tax rate of the plan.
0. A charge that is out of scope for tax gets no tax. A discount or a credit reduces the amount that the rate applies to, and the discount line has no tax of its own.