We’ve encountered a discrepancy between the REST and GraphQL APIs regarding abandonment creation for existing customers.
When user creates an abandonment for their existing customer in store (matched by email), and they check SMS marketing consent and provide a phone number:
In the REST API, the phone field is populated as expected.
In the GraphQL API, we can’t find any field that contains the phone number provided for SMS marketing consent.
We do need access to the phone number that was filled in during this process. Has anyone else run into this issue? Are we missing something in the GraphQL API, or is this a known limitation?
Any advice or workarounds would be greatly appreciated!
Thanks in advance for your help!
Unfortunatelly, it doesn’t have abandoned checkout’s phone.
I understand for security mesures customers’ data isn’t updated by creation of abandonment, get updated likely only by creation of order after paying for it.
That’s why we can’t use customer’s data for this scenario.
Hey @SviatoslavSafronov - is your app a public app (or a draft public app) by any chance? I can’t say for sure what the issue is here definitively, but I’m wondering if you are using a public app and if so, have you requested access to private customer data? That’s the common reason for phone numbers, etc to be nullified. More info here: Work with protected customer data
If you do have access to the protected data though, just let me know and I can do some more digging on my end here for sure. Hope this helps!