#mtanzi - invoices

1 messages ยท Page 1 of 1 (latest)

sullen flame
#

Can you share the failing request ID where you get that error?

dense lava
#

one second I am trying to find it ๐Ÿ™‚

#

what is teh best way to find the request_id form the dashbord?

#

there we go: req_f8SjCQVkm5JJkO

sullen flame
#

Nice, thanks

#

Can you share the invoice ID that's still draft?

dense lava
#

it should be this one in_1Kj7X3JfYi7qv89imCcbA4u4

#

mm that's odd... I just retrieved and it says paid.. ๐Ÿค”

sullen flame
#

That would do it

dense lava
#

Could it be that is because I am using test clock?

#

that the paid event went through even if the draft hasn't finished yet

#

the invoice.create webhook is not immediate because it need to do a couple of API calls... could it be that test clock process the invoice.paid before the invoice.create is finished?

sullen flame
#

Yea it looks like you advanced the clock and the invoice advanced forward

#

You likely want to wait until after you handle invoice.created before advancing the clock

dense lava
#

I am testing the subscription cycle so it's not to easy to get the right moment when the invoice.create is sent ๐Ÿ™‚

#

do you have any tips on how to do so?

sullen flame
#

The billing period end date should do that

dense lava
#

the exact time of the anchor?

sullen flame
#

that's my expectation, or within 1hr following it

#

(assuming you reply to the created event the draft should advance after 1hr)

dense lava
#

ok let me give it a try!

#

thanks a lot for the help!

#

The Time Clock is a life saver ๐Ÿ™‚

#

It worked! ๐Ÿš€

sullen flame
#

Woohoo!