When I include a value for reference_id in my terminal checkout request, the terminal.checkout.created and terminal.checkout.updated events include this value in [data]->[object]->[reference_id]. However, it is not returned in the payment.created or payment.updated events.
The description of the reference_id field in terminal.checkout.created Webhook - Square API Reference states:
" An optional user-defined reference ID which can be used to associate this
TerminalCheckout to another entity in an external system. For example, an order ID generated by a third-party shopping cart. Will also be associated with any payments used to complete the checkout."
Is this a bug or is there something that I’m not aware of? The payment objects included in payment.created and payment.updated events include the terminal_checkout_id value and therefore the API on your end knows the relationship between the checkout and the payment objects.
I know that I can lookup the checkout object and then retrieve the reference_id from there. However, I would prefer not to make that extra call.
Thanks for your feedback.