Query the available catalog discounts.
Table Specific Information
Retrieve all catalog discounts:
SELECT * FROM CatalogDiscounts
To create an item, you will need to specify the DiscountType, Name, Amount and Currency columns.
INSERT INTO CatalogDiscounts (PINRequired, DiscountType, Name, Amount, Currency) VALUES (false,'FIXED_PERCENTAGE','Special_Discount1','200000','USD')
To Update an item, you will need to specify the Id column.
UPDATE catalogdiscounts set amount=1234, currency='USD' where id='1234'
Delete a discount object by providing the Id of the discount object:
DELETE FROM catalogdiscounts WHERE Id='32123'
The discount's ID.
The discount's name.
Last modification timestamp.
If true, the object has been deleted from the database. When deleted, the UpdatedAt field will equal the deletion time.
Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale.
The percentage of the discount as a string representation of a decimal number, using a . as the decimal separator and without a % sign. A value of 7.5 corresponds to 7.5%. Specify a percentage of 0 if DiscountType is VARIABLE_PERCENTAGE.
The discount's amount.
The discount's money currency.
Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment in the Square Point of Sale app.
The color of the discount's display label in the Square Point of Sale app.
If true, this object is present at all locations (including future locations), except where specified in the AbsentAtLocationIds field. If false, this object is not present at any locations (including future locations), except where specified in the PresentAtLocationIds field. If not specified, defaults to true.
A list of locations where the object is present, even if PresentAtAllLocations is false.
A list of locations where the object is not present, even if PresentAtAllLocations is true.
The version of the object. When updating an object, the version supplied must match the version in the database, otherwise the write will be rejected as conflicting.