Get discount detailsdeprecated
https://core-api.ancon.io/api/v1/Tenants/{tenantId}/Discounts/{discountId}Will no longer work after 2025-10-01 00:00, move over to 1.1 version instead.
Authorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
tenantIdstring (uuid)requireddiscountIdstring (uuid)required
Header parameters
correlationIdstringCorrelation Id for the request
Responses
200OK
discountobject | null14 fields in
discountidstring (uuid)namestring | nullcodestring | nullallowMultipleUsesbooleanoutletsarray<object> | null2 fields in
outletsidstring (uuid)namestring | null
orderFormatsinteger (int32)Allowed values:
0,1,2,4,8,16,32,64,128,159,191.validPeriodobject | nullThe period this discount is valid for. Null means it's always valid.
2 fields in
validPeriodfromstring (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 | nullThe time period this discount is valid for. Null means it's valid all day. From time is in UTC format.
2 fields in
validTimePeriodfromstring (time)durationstring (date-span)
allValuenumber (double) | nullThe 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> | nullGets which products this discount will work for.
3 fields in
productsidstring (uuid)namestring | nullvaluenumber (double)
productGroupsarray<object> | nullGets which product groups this discount will work for.
3 fields in
productGroupsidstring (uuid)namestring | nullvaluenumber (double)
401Unauthorized
messagestring | null
404Not Found
messagestring | nullerrorCodestring (uuid)