Square Order API Does Not Use Automatic Discount(Buy One Get One)

Dear Square Support Team,

I hope this email finds you well.

I am reaching out for assistance regarding an issue I encountered while trying to apply an Automatic Discount (Buy One Get One - BOGO) to an order created via the Square Order API. Despite setting auto_apply_discounts to true, the discount is not being applied to the order.

Issue Details:

  • I created an Automatic Discount (BOGO) in the Square Dashboard, which should apply when a customer purchases a qualifying item.
  • When manually checking out via Square POS, the discount works as expected.
  • However, when I create an order using the Square Order API with "auto_apply_discounts": true, the discount does not apply to the order.

    Steps Taken:

    1. Created an Automatic Discount under Discounts in Square Dashboard.
    2. Ensured that the discount applies to the correct product category.
    3. Used the Square Order API to create an order with eligible items.
    4. Set "auto_apply_discounts": true in the API request.
    5. Checked the response, but the discount was not applied to the order.

      Questions:

      1. Does the Square Order API support Automatic Discounts like BOGO, or is this feature only available for POS and Checkout?
      2. Are there any additional configurations required to make Automatic Discounts work via API?
      3. Is there a recommended way to apply BOGO discounts when creating an order via API? Should we manually calculate and apply the discount instead?

        Below is a sample API request I used:

         https://connect.squareup.com/v2/orders/calculate { "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 } } 

        I would appreciate your guidance on this issue. Please let me know if any additional information is needed.

        Thank you for your time and support!

        Best regards

         

        murphy

        murphyzhang_0-1739499719844.png

1,517 Views
Message 1 of 3
Report
1 Best Answer
Alumni

Best Answer

Hi @murphyzhang, welcome to the Community.

 

This is a great question!

 

I recommend posting it in the Square Developer Forums, where the Square engineering team and other developers can provide more detailed guidance on handling discounts via the Order API.

 

Let me know if you need help with anything else.

View Best Answer >

420 Views
Message 2 of 3
Report
2 REPLIES 2
Alumni

Best Answer

Hi @murphyzhang, welcome to the Community.

 

This is a great question!

 

I recommend posting it in the Square Developer Forums, where the Square engineering team and other developers can provide more detailed guidance on handling discounts via the Order API.

 

Let me know if you need help with anything else.

421 Views
Message 2 of 3
Report
Square Community Moderator

Hi @murphyzhang ! 

 

  1. Does the Square Order API support Automatic Discounts like BOGO, or is this feature only available for POS and Checkout?

From what I know, the Square Order API does not support the feature of automatic discounts like BOGO. 

 

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. 

  1. Are there any additional configurations required to make Automatic Discounts work via API?
  2. Is there a recommended way to apply BOGO discounts when creating an order via API? Should we manually calculate and apply the discount instead?

I hope this helps!

 

382 Views
Message 3 of 3
Report