question

ymoregola avatar image
ymoregola asked Dan answered

Clover API not giving me the data that is in an Expandable Field. Why? How can I get it?

Hello,I'm having trouble using the Clover API.I'm not getting the "Expandable Fields".Here is an image of the Model Schema. I want to get for example the email address. I can get the fields that are not expandable, but the expandable fields don't show when I make a call. Inline image 1
Inline image 2

This is what I'm using to make the call (it works and I get data, but only the ones that are not an "Expandable Field"):
https://api.clover.com/v3/merchants/{merchantId}/customers?access_token={token}

Is there a reason why I'm not getting the data that is in an Expandable Field?Please let me know.Thank you,
REST API
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Dan avatar image
Dan answered
Based on your link, you are not expanding on any of the expandable fields.
Try https://api.clover.com/v3/merchants/{merchantId}/customers?expand=emailAddresses&access_token={token}
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community