Core APIDiscounts

Get discount details

gethttps://core-api.ancon.io/api/v1.1/Tenants/{tenantId}/Discounts/{discountId}
View .mdOpenAPI

Authorization

  • Access-Tokenheaderrequired

    Tenant- or outlet-level token from the backoffice. See Get started.

Path parameters

  • tenantIdstring (uuid)required
  • discountIdstring (uuid)required

Header parameters

  • correlationIdstring

    Correlation Id for the request

Responses

200OKapplication/json
  • discountobject | null
    14 fields in discount
    • idstring (uuid)
    • namestring | null
    • codestring | null
    • allowMultipleUsesboolean
    • discountTypeinteger (int32)

      Allowed values: 0, 1.

    • orderFormatsinteger (int32)

      Allowed values: 0, 1, 2, 4, 8, 16, 32, 64, 128, 159, 191.

    • validPeriodobject | null
      2 fields in validPeriod
      • fromstring (date-time)
      • tostring (date-time)
    • validDayOfWeekinteger (int32)

      Allowed values: 0, 1, 2, 4, 8, 16, 31, 32, 64, 96, 127.

    • validTimePeriodobject | null
      2 fields in validTimePeriod
      • fromstring (time)
      • durationstring (date-span)
    • allValuenumber (double) | null
    • discountAvailabilitiesinteger (int32)

      Allowed values: 0, 1, 2, 4, 8, 16, 32.

    • productsarray<object> | null
      3 fields in products
      • idstring (uuid)
      • namestring | null
      • valuenumber (double)
    • productGroupsarray<object> | null
      3 fields in productGroups
      • idstring (uuid)
      • namestring | null
      • valuenumber (double)
    • outletsarray<object> | null
      2 fields in outlets
      • idstring (uuid)
      • namestring | null
401Unauthorizedapplication/json
  • messagestring | null
404Not Foundapplication/json
  • messagestring | null
  • errorCodestring (uuid)