Is there a way to update the sale price using the square api for items in my store?

I dont see the sale price show up anywhere in the catalog, only the standard price. Can I only update it through the portal?

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

https://developer.squareup.com/docs/squarebridge/business-central/onboard

Additional Documentation

Square Developer
Update Catalog Objects
Payments Pricing with Square APIs and SDKs

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The sale price of an item is not directly represented in the Square Catalog API. Instead, you can use the PricingRule object to apply discounts to items, which could effectively set a sale price. The PricingRule object defines how discounts are automatically applied to orders or purchases made in a specified time period, on bundled products or services, or for multiple sale items.

However, please note that the sale price won’t be directly visible in the item data. Instead, it will be calculated during the creation of an order based on the pricing rules in effect.

If you want to manually set a sale price for an item, you would need to update the price_money field of the item_variation_data attribute of the CatalogObject representing the item variation. This can be done programmatically via the Catalog API or manually through the Seller Dashboard.

This answer was reviewed by @Bryan-Square.

Thanks for the response. This is really too because it is very difficult to do in the portal UI when you have so many items for sale. Use the sale price is helpful because the website shows the price more prominently to the user with a SALE pill and a crossed out standard price. You need more filters in the ITEM view to make it easier to select many items at once and make changes.

We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slight_smile: