customer by country
how can I display my customer list by country ?
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Meghan Turner on 27 Sep, 2017 02:13 PM
Hi Tom,
You can display your customer search in XML or JSON (see the buttons at the bottom of the customer search page) to get full customer details, including the country code of the billing address, for each customer record returned by the search. To find the country for each customer record in the JSON or XML files, just search for the
ccCountry
param.The JSON and XML files only display the current page of your search results. If your customer search is multiple pages, make sure to get the XML or JSON for each page of your search. Let me know if I can answer any other questions, Tom.
Meghan
2 Posted by Tom RICHER on 03 Oct, 2017 01:08 PM
Hello Meghan,
Thanks. I've tried your solution but I've been unable to find any client based in the UK (even though we have a few client operating there). I've tried by searching "UK" as ccCountry but couldn't find one...
I've done it differently and have been able to find the data I needed.
Thanks for your help !
Support Staff 3 Posted by Meghan Turner on 03 Oct, 2017 04:29 PM
Hi Tom,
Try using the get all customers API call instead and then searching the results for the country code "GB" rather than "UK" (GB is the ISO Alpha-2 country code for the United Kingdom). Let me know if that works!
Meghan
4 Posted by Tom RICHER on 04 Oct, 2017 04:42 PM
Hi Meghan,
It is working with "GB" ! Thanks for the tips.
Thanks a lot for your help and your reactivity :) !
Support Staff 5 Posted by Meghan Turner on 04 Oct, 2017 08:29 PM
Happy to help, Tom! I'll go ahead and close this discussion, but if you have any other questions, feel free to re-open it by commenting.
Meghan
Meghan Turner closed this discussion on 04 Oct, 2017 08:29 PM.