#lucas9886
1 messages · Page 1 of 1 (latest)
Hello! The only way I can think of would be to delete the invoice item before it's pulled into an invoice, or add the invoice item to a different invoice so it's not automatically pulled in
Ah hmm. Okay. Our use case is - we've been adding expedited shipping charges to a particular subscription and allowing them to move the next upcoming invoice around using trial
Would the smart solution be to delete the current upcoming / draft invoice and allow it to be recreated, or what do you think there?
Well let me back up for a minute- when you say "upcoming", do you mean an invoice that's actually already been created but is currently a draft? Or are you talking about previewed upcoming invoice you get back from using the upcoming invoices api?
It's kind of a weird use case (expedited shipping + scheduled shipment) so I'm okay dropping it honestly
I think previewed - using upcoming API. But there is also a draft. Maybe I should switch away from the upcoming API?
If there's a draft can you send me the invoice ID there?
Using the upcoming invoice api is fine - I'm just a bit confused here because there shouldn't be a draft
Ah sorry I'm afk, was just hoping to sneak my q in before you guys go dark for the weekend 🙂 I suppose you're probably right, no draft, just an upcoming in the ui
Oh
I remember the error - no invoice item and the id was similar to "il_tmp_xxxx" if that rings a bell
Yeah if it's got the "tmp" in there that means it doesn't actually exist yet
With upcoming invoices we're just showing you a preview of what we'll create when it's actually time for the subscription to cycle- the invoice itself hasn't actually been created yet.
Feel free to come back later w/ a subcsription ID - it'll probably be easiest to look at it on our end and you can tell us specifically which line you're trying to remove.
Sure I'll do that. So there's a path to deleting them, in any case?
It depends - if it's a real invoice item then you'd do what I mentioned (delete the invoice item or invoice it separately). But if there's no invoice item there's likely something else happening that I'd want to look into closer