customer by country

Tom RICHER's Avatar

Tom RICHER

27 Sep, 2017 10:23 AM

how can I display my customer list by country ?

  1. Support Staff 1 Posted by Meghan Turner on 27 Sep, 2017 02:13 PM

    Meghan Turner's Avatar

    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. 2 Posted by Tom RICHER on 03 Oct, 2017 01:08 PM

    Tom RICHER's Avatar

    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 !

  3. Support Staff 3 Posted by Meghan Turner on 03 Oct, 2017 04:29 PM

    Meghan Turner's Avatar

    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. 4 Posted by Tom RICHER on 04 Oct, 2017 04:42 PM

    Tom RICHER's Avatar

    Hi Meghan,

    It is working with "GB" ! Thanks for the tips.

    Thanks a lot for your help and your reactivity :) !

  5. Support Staff 5 Posted by Meghan Turner on 04 Oct, 2017 08:29 PM

    Meghan Turner's Avatar

    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

  6. Meghan Turner closed this discussion on 04 Oct, 2017 08:29 PM.

Comments are currently closed for this discussion. You can start a new one.

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