#rubens-nobre_code

1 messages · Page 1 of 1 (latest)

minor runeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215110767763005561

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

carmine moonBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

uneven loom
#

Hi Orakaro.

river matrix
#

Hi, yes the resend webook feature only resend the “snapshot” of the event at the previous time. We don’t rebuild it with latest data. It’s to avoid discrepancies when merchant need to deal with their server downtime and backfill

uneven loom
#

ok. great..
But just let me know.
To fix a wrong behaviour, I add some metadata to the price. ok?

#

Now every customer.subscription... event
will bring the price.metadata?

river matrix
#

It should. You can test in Test mode

uneven loom
#

can you confirm the path on object for price.metadata?
is it:

data.object.items.data[0].price.metadata

???

river matrix
#

looks ok but you can look at API References or just inspect the returning object

uneven loom
#

do you have a link for api reference for customer.subscription events?

#

I can't find any reference to the price object construction.

#

the only thing I have is the current event I have, but the metadata is missing. cus it's a old failed event.

#

can you check, If the path I show you:

data.object.items.data[0].price.metadata

is the correct path were I'll find the price.metadata?

we_1OMc7iChHlHBFg3wb1fjkfjD

evt_1OrStEChHlHBFg3w2ZGkMm1r

river matrix
#

It's the Subscription object

uneven loom
#

Yes

#

I'm on a rush here...
Just need to know If I can reach the recent metadata created on Price, using this object path

#

This way next events wont fail.

river matrix
#

Alright, have you looked at the object inside the event? It's a Subscription which you can see the items.data as an array

#

inside there you have each Subscription Item which has the price object

uneven loom
river matrix
#

It doesn't have metadata, but I guess you set metadata after that event?

uneven loom
#

Exactly...
Just need to know it 'That's the place'
where metadata will retunr

river matrix
#

Yep you set it on Mar 7. The event was on Mar 6

uneven loom
#

I trigger it mannualy... just trying to fix.

river matrix
#

All the events generated after Mar 7 should have it

uneven loom
#

but I only set a Retry... for a failed event. is not a new event

All I need to know is if the price metadatas, will return into this path:
data.object.items.data[0].price.metadata

#

Can you confirm this? or am I wrong?

river matrix
#

No it won't, because you are just receiving the snapshot of it generated on Mar 6, which is before you set the metada

uneven loom
#

I Wanna know if in the future events.
the price metadata will live at this path...

#

only in future events

#

data.object.items.data[0].price.metadata

river matrix
#

Should be yes

#

You can test it in Test mode

#

using Test clock

#

you can simulate time flies to future and look at the generated event

uneven loom
#

mmmm can I ?

#

there documentation about that?

#

simulate an event? How to do that?

#

from dashboard?

#

or using code?

river matrix
uneven loom
#

ok. man...

#

If you can help me to confirm a simple object path... then I'll read everything and lost a few conversions until there's tested and implemented.
Thanks anyway

warm jetty
minor runeBOT
#

@warm jetty looks like you're in the wrong place, this thread is for someone else's question.

Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.

river matrix
#

data.object.items.data[0].price.metadata looks ok @uneven loom

#

But you should rely on yourself inspecting the object and testing, not just confirmation from someone else

uneven loom
#

I know. just need to give a fast shot.

#

Thank you.

#

In this meatime, I'll do all homework and test...

#

Thank you @river matrix

river matrix
#

np and good luck!