#rbole

1 messages · Page 1 of 1 (latest)

sharp gustBOT
weak hatch
#

Hi! Let me help you with this.

#

What do you mean by "same TS"?

#

Could you please share the Invoice ID?

crude cedar
#

timestamp

#

in_1NNCHUKxrILBeGDx9OBKn6df

#

it's within a test clock

weak hatch
#

Still looking, please give me a moment.

tawdry ferry
#

Looks like this was the initial Invoice on a Subscription? If so, this is expected

sharp gustBOT
tawdry ferry
#

Our invoice period start/end are always for the previous period (opposite for subscriptions). As this is the initial invoice, it's expected that the dates be the same – the creation timestamp

crude cedar
#

ah this period means invoice period not subscription period ?

#

how can I get the current subscription period from this payment ?

#

because the invoice.paid is first on hook and later the subscription.update event happens. So I have to know during the invoice.paid event what is the next subscription period_end timestamp.

tawdry ferry
crude cedar
#

ok, how can I do this for the hook event? or I have to retrieve the invoice again ?

tawdry ferry
#

You'll need to retrieve the Invoice (or Subscription) directly from the API in your webhook