Which field checkout_* field in the orders/create webhook body is associated to a checkout?

New Member
2 0 0

Hi, we are storing the checkout id from the `cancel_url` field in the payments initiation request found here: https://shopify.dev/apps/payments/processing-a-payment#initiate-the-payment-flow.


We want to be able to find an order in our database via this checkout id when an order is created in Shopify by listening to the orders/create webhook but it is unclear which field it could be in the body found here: https://shopify.dev/api/admin/rest/reference/events/webhook.


Would it be the checkout_token or the checkout_id in the orders/create body? What is the difference between them? The example body's have them as null. Is there any time the webhook would return with those fields empty? Thanks!