Webhook payment fields

We use both Square Payments and Square for Restaurants in different areas of the business. We did the new Square for Restaurants update last week. Prior to the update, notes entered by a Square user in either the Payments app or the Restaurant app was coming through the webhook JSON body in the following node: data/object/payment/external_detail/source. This may not have been Square’s intention but that’s where it has been for the last couple of years when we use OTHER_GIFT_CARD as the payment type. After the Restaurants app update, the note is now found in data/object/payment/note which does seem more logical. However, now the two applications Payments vs Restaurant are not behaving the same. I suppose someone might want to look at this to make sure things are consistent across the APIs.

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Release Notes Overview
Gift Card Payments
Take Payments

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

For payments made on any of our POS apps the note has never been guaranteed to be in the payload of the webhook body. With that said do you have a few payment_ids where it was returned in the response so we can take a look? :slight_smile: