<?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: Square Order API Does Not Use Automatic Discount(Buy One Get One) in Online Store</title>
    <link>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/778232#M2889</link>
    <description>&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="4e5cf168-1978-4209-a112-116455a74dba" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;P data-start="83" data-end="296"&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/710560"&gt;@murphyzhang&lt;/a&gt;, welcome to the Community.&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;This is a great question!&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&lt;SPAN&gt;I recommend posting it in the &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;&lt;A href="https://developer.squareup.com/forums/" target="_self" data-start="60" data-end="125"&gt;Square Developer Forums&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, where the Square engineering team and other developers can provide more detailed guidance on handling discounts via the Order API.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;Let me know if you need help with anything else.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 20 Feb 2025 18:00:16 GMT</pubDate>
    <dc:creator>RobynR</dc:creator>
    <dc:date>2025-02-20T18:00:16Z</dc:date>
    <item>
      <title>Square Order API Does Not Use Automatic Discount(Buy One Get One)</title>
      <link>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/777052#M2888</link>
      <description>&lt;P&gt;Dear Square Support Team,&lt;/P&gt;&lt;P&gt;I hope this email finds you well.&lt;/P&gt;&lt;P&gt;I am reaching out for assistance regarding an issue I encountered while trying to apply an &lt;STRONG&gt;Automatic Discount (Buy One Get One - BOGO) to an order created via the &lt;STRONG&gt;Square Order API. Despite setting auto_apply_discounts to true, the discount is not being applied to the order.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Issue Details:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;I created an &lt;STRONG&gt;Automatic Discount (BOGO) in the &lt;STRONG&gt;Square Dashboard, which should apply when a customer purchases a qualifying item.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;When manually checking out via &lt;STRONG&gt;Square POS, the discount works as expected.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;However, when I create an order using the &lt;STRONG&gt;&lt;STRONG&gt;Square Order API with "auto_apply_discounts": true, the discount does not apply to the order.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;H3&gt;&lt;STRONG&gt;Steps Taken:&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Created an &lt;STRONG&gt;Automatic Discount under &lt;STRONG&gt;Discounts in Square Dashboard.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Ensured that the discount applies to the correct product category.&lt;/LI&gt;&lt;LI&gt;Used the Square Order API to create an order with eligible items.&lt;/LI&gt;&lt;LI&gt;Set "auto_apply_discounts": true in the API request.&lt;/LI&gt;&lt;LI&gt;Checked the response, but the discount was not applied to the order.&lt;H3&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Does the Square Order API support Automatic Discounts like BOGO, or is this feature only available for POS and Checkout?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Are there any additional configurations required to make Automatic Discounts work via API?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;Is there a recommended way to apply BOGO discounts when creating an order via API? Should we manually calculate and apply the discount instead?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;Below is a sample API request I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://connect.squareup.com/v2/orders/calculate" target="_blank" rel="noopener"&gt;https://connect.squareup.com/v2/orders/calculate&lt;/A&gt; { "order": { "reference_id": "M-20250213-01", "location_id": "****", "source": { "name": "****" }, "line_items": [ { "catalog_object_id": "Y5PYOTYISGKQTUPWNY3APTEH", "quantity": "1" }, { "catalog_object_id": "Y5PYOTYISGKQTUPWNY3APTEH", "quantity": "1" } ] }, "pricing_options": { "auto_apply_discounts": true, "auto_apply_taxes": true } }&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate your guidance on this issue. Please let me know if any additional information is needed.&lt;/P&gt;&lt;P&gt;Thank you for your time and support!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;murphy&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="murphyzhang_0-1739499719844.png" style="width: 400px;"&gt;&lt;img src="https://community.squareup.com/t5/image/serverpage/image-id/49327i876E4351DE722F15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="murphyzhang_0-1739499719844.png" alt="murphyzhang_0-1739499719844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 14 Feb 2025 02:29:28 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/777052#M2888</guid>
      <dc:creator>murphyzhang</dc:creator>
      <dc:date>2025-02-14T02:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Square Order API Does Not Use Automatic Discount(Buy One Get One)</title>
      <link>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/778232#M2889</link>
      <description>&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="4e5cf168-1978-4209-a112-116455a74dba" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;P data-start="83" data-end="296"&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/710560"&gt;@murphyzhang&lt;/a&gt;, welcome to the Community.&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;This is a great question!&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&lt;SPAN&gt;I recommend posting it in the &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;&lt;A href="https://developer.squareup.com/forums/" target="_self" data-start="60" data-end="125"&gt;Square Developer Forums&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, where the Square engineering team and other developers can provide more detailed guidance on handling discounts via the Order API.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="83" data-end="296"&gt;Let me know if you need help with anything else.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Feb 2025 18:00:16 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/778232#M2889</guid>
      <dc:creator>RobynR</dc:creator>
      <dc:date>2025-02-20T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Square Order API Does Not Use Automatic Discount(Buy One Get One)</title>
      <link>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/778470#M2890</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/710560"&gt;@murphyzhang&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Does the Square Order API support Automatic Discounts like BOGO, or is this feature only available for POS and Checkout?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;From what I know, the Square Order API does &lt;EM&gt;not&lt;/EM&gt; support the feature of automatic discounts like BOGO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the other two questions, like Robyn recommended above, you will need to reach out on our Square Developers board because they will be able to provide the best insights here.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Are there any additional configurations required to make Automatic Discounts work via API?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Is there a recommended way to apply BOGO discounts when creating an order via API? Should we manually calculate and apply the discount instead?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:43:47 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Online-Store/Square-Order-API-Does-Not-Use-Automatic-Discount-Buy-One-Get-One/m-p/778470#M2890</guid>
      <dc:creator>Summer2024</dc:creator>
      <dc:date>2025-02-21T15:43:47Z</dc:date>
    </item>
  </channel>
</rss>

