Core APIDiscounts

Get discount detailsdeprecated

gethttps://core-api.ancon.io/api/v1/Tenants/{tenantId}/Discounts/{discountId}
View .mdOpenAPI
Deprecated. Check the description for the replacement and sunset date, and see how deprecation works.

Will no longer work after 2025-10-01 00:00, move over to 1.1 version instead.

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
    • outletsarray<object> | null
      2 fields in outlets
      • idstring (uuid)
      • namestring | null
    • orderFormatsinteger (int32)

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

    • validPeriodobject | null

      The period this discount is valid for. Null means it's always valid.

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

      The day of weeks this discount is valid for. Allowed values: 0, 1, 2, 4, 8, 16, 31, 32, 64, 96, 127.

    • validTimePeriodobject | null

      The time period this discount is valid for. Null means it's valid all day. From time is in UTC format.

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

      The discount value that will be applied to everything. If null then only the products or product groups specified in the Ancon.Wildcat.Core.Api.Models.Public.V1.V0.Discounts.Queries.Detail.DiscountModel.Products and Ancon.Wildcat.Core.Api.Models.Public.V1.V0.Discounts.Queries.Detail.DiscountModel.ProductGroups will be discounted.

    • discountTypeinteger (int32)

      Allowed values: 0, 1.

    • discountAvailabilitiesinteger (int32)

      Gets the systems this discount is available for. Allowed values: 0, 1, 2, 4, 8, 16, 32.

    • productsarray<object> | null

      Gets which products this discount will work for.

      3 fields in products
      • idstring (uuid)
      • namestring | null
      • valuenumber (double)
    • productGroupsarray<object> | null

      Gets which product groups this discount will work for.

      3 fields in productGroups
      • idstring (uuid)
      • namestring | null
      • valuenumber (double)
401Unauthorizedapplication/json
  • messagestring | null
404Not Foundapplication/json
  • messagestring | null
  • errorCodestring (uuid)