Discount list

Discount list

GET /Discounts

Returns the list of discounts defined in the restaurant. Both the restaurant's own discounts and the discounts assigned to the restaurant from headquarters are returned together.

Sample request

Discount list
curl -X GET "https://ext.adisyo.com/api/External/v2/Discounts" \
  --header "x-api-key: ..." \
  --header "x-api-secret: ..." \
  --header "x-api-consumer: ..."

Request parameters

This endpoint does not require any additional parameters.

Sample response

Discount list
{
  "discounts": [
    {
      "id": 34,
      "name": "Personel İndirimi",
      "discountType": 1,
      "discountTypeName": "Yüzde İndirimi",
      "amount": 10.00,
      "discountStartDate": null,
      "discountFinishDate": null
    },
    {
      "id": 77,
      "name": "Hediye Ürün",
      "discountType": 2,
      "discountTypeName": "Tutar İndirimi",
      "amount": 50.00,
      "discountStartDate": "2026-07-01T00:00:00",
      "discountFinishDate": "2026-08-31T00:00:00"
    }
  ],
  "status": 100,
  "message": "İşlem Başarılı."
}

Response parameters

ParameterData TypeDescription
idNumberAdisyo ID of the discount. Used as discountId in the Order discount endpoint
nameStringName of the discount
discountTypeNumberDiscount type. 1 Percentage discount, 2 Amount discount
discountTypeNameStringName of the discount type
amountDecimalValue of the discount. Interpreted as a rate for percentage type, as an amount for amount type
discountStartDateDateTime?Start of validity. When set, the discount cannot be applied before this date
discountFinishDateDateTime?End of validity. When set, the discount cannot be applied after this date
statusNumberResponse Codes
messageStringResult message

A discount outside its validity period may still appear in this list, but it is rejected by the Order discount endpoint.