<?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: Oauth access token connect to a customer in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/135534#M93962</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 00:52:04 GMT</pubDate>
    <dc:creator>adia</dc:creator>
    <dc:date>2019-10-11T00:52:04Z</dc:date>
    <item>
      <title>Oauth access token connect to a customer</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/134520#M93958</link>
      <description>&lt;P&gt;In my application, I have customer signup, create a customer profile (&lt;SPAN style="font-family: inherit; font-size: 14px;"&gt;&lt;STRONG&gt;createCustomer&lt;/STRONG&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;and store their card &lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: inherit; font-size: 14px;"&gt;&lt;STRONG&gt;createCustomerCard)&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;in Square and then ask them to connect their seller account to&amp;nbsp; Oauth for a seller marketplace.&lt;/P&gt;
&lt;P&gt;How can I tie the access token returned from OAuth to a customer?&amp;nbsp; I received back the fields:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;access_token&lt;/STRONG&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;token_type&lt;/STRONG&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;merchant_id&lt;/STRONG&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;refresh_token.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to pass a Customer ID in Oauth to be returned with the access token?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 02:51:57 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/134520#M93958</guid>
      <dc:creator>adia</dc:creator>
      <dc:date>2019-10-01T02:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth access token connect to a customer</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/134772#M93959</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/203736"&gt;@adia&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you want your application to OAuth merchants, you won't&amp;nbsp;need to create a customer, just OAuth them. The&amp;nbsp;&lt;STRONG&gt;merchant_id&lt;/STRONG&gt;&amp;nbsp;is what ties an access token to a particular merchant. This will allow you to call API endpoints on the merchant’s behalf. Then, you can create customers for merchants.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hope that makes sense, let me know if you have further questions.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 18:46:18 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/134772#M93959</guid>
      <dc:creator>kellyj</dc:creator>
      <dc:date>2019-10-03T18:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth access token connect to a customer</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/134863#M93960</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/164176"&gt;@kellyj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once I have the &lt;STRONG&gt;access_token &lt;/STRONG&gt;it looks like I could call &lt;STRONG&gt;v1/me&lt;/STRONG&gt; to retrieve the business information? I may be able to use that information to create a customer profile. Does the &lt;STRONG&gt;access_token&lt;/STRONG&gt; provided allow legacy &lt;STRONG&gt;v1/&lt;/STRONG&gt; endpoints to be used? I'm trying this in the sandbox.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have users signup to my marketplace application and create a profile, then they can Oauth their square account later. I'm not clear how I can use any of the information returned by Obtaining the token or retrieving the business information to tie it to their account in my application. Is it acceptable to add a customer ID to the optional &lt;STRONG&gt;state &lt;/STRONG&gt;query param?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2019 18:16:32 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/134863#M93960</guid>
      <dc:creator>adia</dc:creator>
      <dc:date>2019-10-06T18:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth access token connect to a customer</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/135178#M93961</link>
      <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/203736"&gt;@adia&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Yes, it should work.Someone on the merchant-side would need to enter a CC info of course, and the payment form would need to be tied to the developer’s account, not the merchant’s account. For a subscription solution that could send the merchant to a payment form -&amp;gt; save the card on file for your&amp;nbsp;Developer account, and charge it on a monthly basis (this is charging the merchant’s card).&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 21:33:05 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/135178#M93961</guid>
      <dc:creator>Kassi_</dc:creator>
      <dc:date>2019-10-07T21:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Oauth access token connect to a customer</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/135534#M93962</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 00:52:04 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Oauth-access-token-connect-to-a-customer/m-p/135534#M93962</guid>
      <dc:creator>adia</dc:creator>
      <dc:date>2019-10-11T00:52:04Z</dc:date>
    </item>
  </channel>
</rss>

