<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>thread Re: Getting error in LIstCustomer method using JAVA API in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87769#M41806</link>
    <description>&lt;P&gt;Circling back here—it looks like you were able to get in touch with our API Team by the time we got tor your post. Hopefully you were able to get everything sorted out. Our Engineering Team will&amp;nbsp;be working to address the cursor issues. If anything else comes up, feel free to reply here or follow up with the team member assisting with&amp;nbsp; your case.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jul 2018 01:05:55 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-07-21T01:05:55Z</dc:date>
    <item>
      <title>Getting error in LIstCustomer method using JAVA API</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87574#M41804</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on Square Java API and when I am trying to call the listCustomers method, its throwing the following exception , Please help.&lt;/P&gt;
&lt;P&gt;com.squareup.connect.ApiException: {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"INVALID_VALUE","detail":"Pagination cursor is not compatible with this request.","field":"cursor"}]}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code :&lt;BR /&gt;ListCustomersResponse result = apiInstance.listCustomers(cursor);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Customer&amp;gt; customers = result1.getCustomers();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(Customer customer : customers){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //System.out.println(customer.getGivenName() +&amp;nbsp; " = "&amp;nbsp; + customer.getId() );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Card&amp;gt; customerCards = customer.getCards();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(Card card : customerCards){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(customer.getEmailAddress() +&amp;nbsp; ","&amp;nbsp; + customer.getId() + "," + card.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 09:37:28 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87574#M41804</guid>
      <dc:creator>joshyuster</dc:creator>
      <dc:date>2018-07-19T09:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in LIstCustomer method using JAVA API</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87761#M41805</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/121168"&gt;@joshyuster&lt;/a&gt;, thanks for reaching out here and sorry to hear about the trouble. I don't have the answer on hand right now but I'll surface your post with our API Team. We'll be back a soon as we have any additional insight.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Also, in the future—feel free to check out &lt;A href="http://stackoverflow.com/questions/tagged/square-connect" target="_blank"&gt;Square Connect's Stack Overflow page&lt;/A&gt;. It's been a great resource for our developer community, and there's already a ton of questions that have been answered there.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 23:28:16 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87761#M41805</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-20T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in LIstCustomer method using JAVA API</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87769#M41806</link>
      <description>&lt;P&gt;Circling back here—it looks like you were able to get in touch with our API Team by the time we got tor your post. Hopefully you were able to get everything sorted out. Our Engineering Team will&amp;nbsp;be working to address the cursor issues. If anything else comes up, feel free to reply here or follow up with the team member assisting with&amp;nbsp; your case.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 01:05:55 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Getting-error-in-LIstCustomer-method-using-JAVA-API/m-p/87769#M41806</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-21T01:05:55Z</dc:date>
    </item>
  </channel>
</rss>

