May someone please let me know how to correlate a cart checkout session with a subscription contract? More specifically, when I redirect clients to the checkout URL from the cart create mutation and they complete the purchase, how do I correlate the webhook event subscription contracts create webhook event with that checkout session? I am looking to pass some context around and have not found a way to link the two steps. Please let me know.
Hey @jmr1 , the subscription_contracts/create webhook does not have any information directly related to a checkout session, but from the contract, you could inspect the order that has been generated. Does that help you retrieve the information you are seeking ?
I think I found a solution that meets my needs. The cart create mutation checkout url path ends with the cart token. I am using that cart token as a filter when querying for an order.