Cards point to old customer after merge

There seems to be some weirdness around the ways cards are handled in the API.

After merging customers it seems like the customer_id in the Card object is not updated and so points to a non-existent customer. However when you retrieve the newly created Customer object it contains an element ‘cards’ that includes the card id.

The ‘cards’ element for Customer objects only seems to be returned when using the .get endpoint, not when using list or search but it doesn’t appear in the documentation anywhere that I can see.

Is this expected behaviour?

: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

Customers API
Customers API
Customers API

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.

Do you have an example customer_id that your seeing this behavior? :slight_smile:

Sure, here’s a few…

old_id / new_id
1M133P6JTVS4PTN6DVWXATYPJR / CTSY2W0VFD5B5CPG6T9X9XYDR0

QDH0GVHP19C618BA0B3EQ4N2TR / XMGT4S9RM54CQ1CZHQC26G5F7M

6H40CEMRV54KDE0NGESR0GVDQ4 / T42C3YHN2P0NTCCGWGEPWQQ8NM

30WQTGF2DFR1BBA90RWN5ASN5R / CTQ3HK6J0H3VN5J6N6F0Q60K08

Any progress on this issue?

What’s your application ID? :slight_smile:

sq0idp-amvFIRI3Mvn7lkEMaDrAgA