<?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: API Automatically Email Receipt After Online Purchase in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/89580#M94936</link>
    <description>&lt;P&gt;I figured out a workaround for this if anyone else is blocked by this.&amp;nbsp; The receipts are hosted at &lt;A href="https://squareup.com/receipt/preview/{{tenderId}}.&amp;nbsp;" target="_blank"&gt;https://squareup.com/receipt/preview/{{tenderId}}.&amp;nbsp;&lt;/A&gt; To get the tenderId, after the charge request you'll receive a transaction response containing a transaction object with a tenders array.&amp;nbsp; Using the first tenders element you'll find the tender id.&amp;nbsp; Use the tender id&amp;nbsp;to&amp;nbsp;create the receipt link.&amp;nbsp; Then pass the link through a&amp;nbsp;shortener&amp;nbsp;like IsGood to conserve some characters. To send the SMS we're using Trumpia (API is&amp;nbsp;unruly and inconsistent, but they do answer your phone calls and will set you up with a short code the same day).&amp;nbsp; Seems to work just fine as long as the receipt preview path doesn't change, which I wouldn't suspect it would.&amp;nbsp; Hope this can help some of you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2018 22:25:27 GMT</pubDate>
    <dc:creator>edargelies</dc:creator>
    <dc:date>2018-08-08T22:25:27Z</dc:date>
    <item>
      <title>API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/25117#M94929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an Square form embedded on my website. Currently the transactions are processing correctly, but I am looking to generate a square receipt that is automatically sent to the customer after purchase. I am using PHP to perform the transaction and my transaction request looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$transaction_api = new \SquareConnect\Api\TransactionApi();&lt;BR /&gt;$request_body = array (&lt;BR /&gt; "card_nonce" =&amp;gt; $nonce,&lt;/P&gt;
&lt;P&gt;"buyer_email_address" =&amp;gt; "$email",&lt;BR /&gt; 'note' =&amp;gt; "$name, Tickets: $tickets, ID $id",&lt;BR /&gt; "amount_money" =&amp;gt; array (&lt;BR /&gt; "amount" =&amp;gt; $amount,&lt;BR /&gt; "currency" =&amp;gt; "USD",&lt;BR /&gt; ),&lt;BR /&gt; "idempotency_key" =&amp;gt; uniqid()&lt;BR /&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an action I can add that would be able to automatically email a receipt to the customer after purchase? Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:25:09 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/25117#M94929</guid>
      <dc:creator>mbeargie</dc:creator>
      <dc:date>2016-12-05T19:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/25128#M94930</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/37263"&gt;@mbeargie&lt;/a&gt;, welcome to the seller community!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for bringing this up. I don't have specifics on this right now, but I'll dig deeper and circle back with anything that can be done as soon as possible. Thanks for your patience in the meantime.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;FYI — 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;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 23:08:56 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/25128#M94930</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-12-02T23:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/25317#M94931</link>
      <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/37263"&gt;@mbeargie&lt;/a&gt; - Thanks for your patience while we got more details from our Developer Team. It looks like we are still working on adding receipts functionality to our API. While there isn’t an automated&amp;nbsp;way to sent receipts after a purchase, you could&amp;nbsp;manually send them through the Square Dashboard. I'll be sure to update this thread if/when this changes in the future!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:24:50 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/25317#M94931</guid>
      <dc:creator>Sean</dc:creator>
      <dc:date>2016-12-05T19:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/44210#M94932</link>
      <description>&lt;P&gt;Has there been any movement on this?&lt;/P&gt;
&lt;P&gt;It would be very useful to be able to provide a receipt to a customer using the&amp;nbsp;buyer_email_address field.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 02:26:15 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/44210#M94932</guid>
      <dc:creator>iObject</dc:creator>
      <dc:date>2017-07-27T02:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/61993#M94933</link>
      <description>&lt;P&gt;Really? Nothing Square? How is it possible that sending an automatic receipt after a purchase is made through the API is not possible considering you can setup receipts in the in the account administration. Is there no option for this?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 02:16:55 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/61993#M94933</guid>
      <dc:creator>RestorInternati</dc:creator>
      <dc:date>2017-12-12T02:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/62447#M94934</link>
      <description>&lt;P&gt;Sorry for the frustration around this &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/84440"&gt;@RestorInternati&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;There's nothing new to report on this as of right now, but if anything changes I'll post an update for everyone.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 17:07:34 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/62447#M94934</guid>
      <dc:creator>EJ_</dc:creator>
      <dc:date>2017-12-14T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/89525#M94935</link>
      <description>&lt;P&gt;Has this been prioritized yet?&amp;nbsp; It's not a scalable solution to use the dashboard to issue a receipt for every purchase.&amp;nbsp; It's also a poor user experience for our customers to not receive a receipt as soon as the transaction is executed.&amp;nbsp; Is this a compliance issue where the user has to opt in to text recipts? We collect all the information required when creating the customer so I'm having trouble understanding what's preventing this.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 17:33:56 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/89525#M94935</guid>
      <dc:creator>edargelies</dc:creator>
      <dc:date>2018-08-08T17:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/89580#M94936</link>
      <description>&lt;P&gt;I figured out a workaround for this if anyone else is blocked by this.&amp;nbsp; The receipts are hosted at &lt;A href="https://squareup.com/receipt/preview/{{tenderId}}.&amp;nbsp;" target="_blank"&gt;https://squareup.com/receipt/preview/{{tenderId}}.&amp;nbsp;&lt;/A&gt; To get the tenderId, after the charge request you'll receive a transaction response containing a transaction object with a tenders array.&amp;nbsp; Using the first tenders element you'll find the tender id.&amp;nbsp; Use the tender id&amp;nbsp;to&amp;nbsp;create the receipt link.&amp;nbsp; Then pass the link through a&amp;nbsp;shortener&amp;nbsp;like IsGood to conserve some characters. To send the SMS we're using Trumpia (API is&amp;nbsp;unruly and inconsistent, but they do answer your phone calls and will set you up with a short code the same day).&amp;nbsp; Seems to work just fine as long as the receipt preview path doesn't change, which I wouldn't suspect it would.&amp;nbsp; Hope this can help some of you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 22:25:27 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/89580#M94936</guid>
      <dc:creator>edargelies</dc:creator>
      <dc:date>2018-08-08T22:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/624686#M94937</link>
      <description>&lt;P&gt;Has anything been done by the developers to allow sending automatic receipts from the api on my website?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 15:45:12 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/624686#M94937</guid>
      <dc:creator>mgetman</dc:creator>
      <dc:date>2022-12-22T15:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Automatically Email Receipt After Online Purchase</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/624971#M94938</link>
      <description>&lt;P&gt;Hello there &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/261264"&gt;@mgetman&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend reaching out to our &lt;A href="https://developer.squareup.com/forums/" target="_blank"&gt;Developer Forums&lt;/A&gt; so our API team is able to point you in the right direction here.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 15:27:29 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/API-Automatically-Email-Receipt-After-Online-Purchase/m-p/624971#M94938</guid>
      <dc:creator>JJ_</dc:creator>
      <dc:date>2022-12-24T15:27:29Z</dc:date>
    </item>
  </channel>
</rss>

