Skip to main content

Discounts (1.0)

Download OpenAPI specification:Download

Api to manage discounts

Discount

Get items

Authorizations:
Bearer
query Parameters
required
object (Pageable)
predicate
required
object
target
string

Return selected fields only (multiple occurrences allowed for selecting multiple fields)

customerId
string

Customer Id

storeIds
string

Stores discount can be applied to

productIds
string

Products to which discount is restricted

parentProductIds
string

Products to which discount is restricted

name
string

Name of discount

startDate
string

Discount start date

endDate
string

Discount end date

level
string
Enum: "PRODUCT" "FORCED_CROSS_SELL" "CROSS_SELL" "UP_SELL" "CART"

Level of product discount applies

model
string
Enum: "CAMPAIGN" "COUPON" "SINGLE_USE_CODE" "SUBSCRIPTION_PLAN"

Model type of discount

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Create an item

Authorizations:
Bearer
Request Body schema: application/json
required
One of
One of
One of
object Coupon Recursive

Responses

Request samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "code": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "endingDate": "string",
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "originalId": "string",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "productOrParentId": "string",
  • "publisherRefIds": [
    ],
  • "source": "string",
  • "startDate": "2019-08-24T14:15:22Z",
  • "startingDate": "string",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100,
  • "codes": {
    }
}

Response samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "publisherRefIds": [
    ],
  • "startDate": "2019-08-24T14:15:22Z",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100,
  • "codes": {
    }
}

applyDiscountsOnCart

Apply discounts on cart

Authorizations:
Bearer
query Parameters
roundedPrice
boolean
Default: true
Request Body schema: application/json
required
object (BuyerBehavior)
catalogId
string
object
customerId
string
discountOfferId
string
discounts
Array of strings
Array of objects (DiscountStatus)
object (EndUser)
id
string
locale
string
offerSubSource
string
Enum: "SUSPEND" "RESUME"
object (Price)
Array of objects (Product)
source
string
Enum: "PURCHASE" "SUBSCRIPTION" "MANUAL_RENEWAL" "BILLING_PLAN" "OFFER" "MID_TERM_UPGRADE" "UPGRADE"
storeId
string
subscriptionGeneration
integer <int32>
subscriptionId
string
subscriptionSubSource
string
Enum: "TRIAL_CONVERSION" "RENEWAL"
totalAmount
number <double>
Array of objects (Voucher) unique
vouchersTotalAmount
number <double>

Responses

Request samples

Content type
application/json
{
  • "buyerBehavior": {
    },
  • "catalogId": "string",
  • "currency": {
    },
  • "customerId": "string",
  • "discountOfferId": "string",
  • "discounts": [
    ],
  • "discountsStatus": [
    ],
  • "endUser": {
    },
  • "id": "string",
  • "locale": "string",
  • "offerSubSource": "SUSPEND",
  • "price": {
    },
  • "products": [
    ],
  • "source": "PURCHASE",
  • "storeId": "string",
  • "subscriptionGeneration": 0,
  • "subscriptionId": "string",
  • "subscriptionSubSource": "TRIAL_CONVERSION",
  • "totalAmount": 0.1,
  • "vouchers": [
    ],
  • "vouchersTotalAmount": 0.1
}

Response samples

Content type
application/json
{
  • "buyerBehavior": {
    },
  • "catalogId": "string",
  • "currency": {
    },
  • "customerId": "string",
  • "discountOfferId": "string",
  • "discounts": [
    ],
  • "discountsStatus": [
    ],
  • "endUser": {
    },
  • "id": "string",
  • "locale": "string",
  • "offerSubSource": "SUSPEND",
  • "price": {
    },
  • "products": [
    ],
  • "source": "PURCHASE",
  • "storeId": "string",
  • "subscriptionGeneration": 0,
  • "subscriptionId": "string",
  • "subscriptionSubSource": "TRIAL_CONVERSION",
  • "totalAmount": 0.1,
  • "vouchers": [
    ],
  • "vouchersTotalAmount": 0.1
}

applyDiscountsOnCart

Apply discounts on cart

Authorizations:
Bearer
Request Body schema: application/json
required
object (BuyerBehavior)
catalogId
string
object
customerId
string
discountOfferId
string
discounts
Array of strings
Array of objects (DiscountStatus)
object (EndUser)
id
string
locale
string
offerSubSource
string
Enum: "SUSPEND" "RESUME"
object (Price)
Array of objects (Product)
source
string
Enum: "PURCHASE" "SUBSCRIPTION" "MANUAL_RENEWAL" "BILLING_PLAN" "OFFER" "MID_TERM_UPGRADE" "UPGRADE"
storeId
string
subscriptionGeneration
integer <int32>
subscriptionId
string
subscriptionSubSource
string
Enum: "TRIAL_CONVERSION" "RENEWAL"
totalAmount
number <double>
Array of objects (Voucher) unique
vouchersTotalAmount
number <double>

Responses

Request samples

Content type
application/json
{
  • "buyerBehavior": {
    },
  • "catalogId": "string",
  • "currency": {
    },
  • "customerId": "string",
  • "discountOfferId": "string",
  • "discounts": [
    ],
  • "discountsStatus": [
    ],
  • "endUser": {
    },
  • "id": "string",
  • "locale": "string",
  • "offerSubSource": "SUSPEND",
  • "price": {
    },
  • "products": [
    ],
  • "source": "PURCHASE",
  • "storeId": "string",
  • "subscriptionGeneration": 0,
  • "subscriptionId": "string",
  • "subscriptionSubSource": "TRIAL_CONVERSION",
  • "totalAmount": 0.1,
  • "vouchers": [
    ],
  • "vouchersTotalAmount": 0.1
}

Response samples

Content type
application/json
{
  • "buyerBehavior": {
    },
  • "catalogId": "string",
  • "currency": {
    },
  • "customerId": "string",
  • "discountOfferId": "string",
  • "discounts": [
    ],
  • "discountsStatus": [
    ],
  • "endUser": {
    },
  • "id": "string",
  • "locale": "string",
  • "offerSubSource": "SUSPEND",
  • "price": {
    },
  • "products": [
    ],
  • "source": "PURCHASE",
  • "storeId": "string",
  • "subscriptionGeneration": 0,
  • "subscriptionId": "string",
  • "subscriptionSubSource": "TRIAL_CONVERSION",
  • "totalAmount": 0.1,
  • "vouchers": [
    ],
  • "vouchersTotalAmount": 0.1
}

Get distinct values for a given field

Authorizations:
Bearer
query Parameters
target
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

importDiscount

Import a discount

Authorizations:
Bearer
query Parameters
storeId
string
reason
string
Default: "resource import thru REST Api"
Request Body schema: application/json
required
One of
One of
One of
object Coupon Recursive

Responses

Request samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "code": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "endingDate": "string",
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "originalId": "string",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "productOrParentId": "string",
  • "publisherRefIds": [
    ],
  • "source": "string",
  • "startDate": "2019-08-24T14:15:22Z",
  • "startingDate": "string",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100,
  • "codes": {
    }
}

Response samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "publisherRefIds": [
    ],
  • "startDate": "2019-08-24T14:15:22Z",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "codes": {
    },
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100
}

Get recap quantities for a given field

Authorizations:
Bearer
query Parameters
target
required
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Search unwind for a given field

Authorizations:
Bearer
query Parameters
target
required
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

declareUsages

Declare discount usages

Authorizations:
Bearer
query Parameters
reason
string
Default: "notify usage of single codes thru REST Api"
Request Body schema: application/json
required
Array
catalogId
string

Catalog Id

customerId
required
string

Customer Id discount applied to

discountCode
string

Discount Code

discountId
required
string

Discount Id

endUserEmail
required
string

Email used

endUserId
string

EndUser Id

orderId
required
string

Order Id discount applied to

storeId
required
string

Store Id discount applied to

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Delete item

Authorizations:
Bearer
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

Get item

Authorizations:
Bearer
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "publisherRefIds": [
    ],
  • "startDate": "2019-08-24T14:15:22Z",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100,
  • "codes": {
    }
}

Update item

Authorizations:
Bearer
path Parameters
id
required
string
Request Body schema: application/json
required
One of
One of
One of
object Coupon Recursive

Responses

Request samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "code": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "endingDate": "string",
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "originalId": "string",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "productOrParentId": "string",
  • "publisherRefIds": [
    ],
  • "source": "string",
  • "startDate": "2019-08-24T14:15:22Z",
  • "startingDate": "string",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100,
  • "codes": {
    }
}

Response samples

Content type
application/json
Example
{
  • "amountByCurrency": {
    },
  • "applyOnNetPrice": false,
  • "buyerBehaviorTriggers": [
    ],
  • "catalogId": "string",
  • "countries": [
    ],
  • "createDate": "2019-08-24T14:15:22Z",
  • "cumulative": true,
  • "currencies": [
    ],
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountRate": 0,
  • "dynamicVariables": {
    },
  • "endDate": "2019-08-24T14:15:22Z",
  • "endUserEmails": [
    ],
  • "endUserGroupIds": [
    ],
  • "endUserTypes": [
    ],
  • "enduserId": "string",
  • "externalContext": "string",
  • "generated": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "level": "PRODUCT",
  • "localizedLabels": {
    },
  • "maxUsages": 0,
  • "model": "CAMPAIGN",
  • "modelVersion": "string",
  • "name": "string",
  • "offerSubSource": "RESUME | SUSPEND",
  • "parentProductIds": [
    ],
  • "productIds": [
    ],
  • "publisherRefIds": [
    ],
  • "startDate": "2019-08-24T14:15:22Z",
  • "status": "ENABLED",
  • "storeIds": [
    ],
  • "subscriptionGenerations": [
    ],
  • "subscriptionId": "string",
  • "subscriptionSubSources": [
    ],
  • "testOrder": false,
  • "thresholds": {
    },
  • "updateDate": "2019-08-24T14:15:22Z",
  • "used": 0,
  • "maxUsePerEndUser": 1,
  • "maxUsePerStore": 1,
  • "weight": 100,
  • "codes": {
    }
}

generateSingleUseCodes

Generate coupons

Authorizations:
Bearer
path Parameters
id
required
string

Discount id

query Parameters
dryRun
boolean
reason
string
Default: "generation request of single codes thru REST Api"
Request Body schema: application/json
required
forceLowercase
boolean
forceUppercase
boolean
prefix
string [ 0 .. 8 ] characters
quantity
integer <int32> [ 1 .. 750 ]
size
integer <int32> [ 8 .. 32 ]

Responses

Request samples

Content type
application/json
{
  • "forceLowercase": true,
  • "forceUppercase": true,
  • "prefix": "string",
  • "quantity": 1,
  • "size": 8
}

Response samples

Content type
application/json
{
  • "codes": [
    ],
  • "remaining": 0
}

Price beautifier configuration

Get items

Authorizations:
Bearer
query Parameters
required
object (Pageable)
predicate
required
object
target
string

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Create an item

Authorizations:
Bearer
Request Body schema: application/json
required
createDate
string <date-time>
Deprecated
dbVersion
integer <int64>
id
string
Deprecated
lastUpdateReason
string
modelVersion
string
Deprecated
originalId
string
object
storeId
string
updateDate
string <date-time>
Deprecated

Responses

Request samples

Content type
application/json
{
  • "createDate": "2019-08-24T14:15:22Z",
  • "dbVersion": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "modelVersion": "string",
  • "originalId": "string",
  • "rules": {
    },
  • "storeId": "string",
  • "updateDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "createDate": "2019-08-24T14:15:22Z",
  • "dbVersion": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "modelVersion": "string",
  • "rules": {
    },
  • "storeId": "string",
  • "updateDate": "2019-08-24T14:15:22Z"
}

Get distinct values for a given field

Authorizations:
Bearer
query Parameters
target
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Get recap quantities for a given field

Authorizations:
Bearer
query Parameters
target
required
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Search unwind for a given field

Authorizations:
Bearer
query Parameters
target
required
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Delete item

Authorizations:
Bearer
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{ }

Get item

Authorizations:
Bearer
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "createDate": "2019-08-24T14:15:22Z",
  • "dbVersion": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "modelVersion": "string",
  • "rules": {
    },
  • "storeId": "string",
  • "updateDate": "2019-08-24T14:15:22Z"
}

Update item

Authorizations:
Bearer
path Parameters
id
required
string
Request Body schema: application/json
required
createDate
string <date-time>
Deprecated
dbVersion
integer <int64>
id
string
Deprecated
lastUpdateReason
string
modelVersion
string
Deprecated
originalId
string
object
storeId
string
updateDate
string <date-time>
Deprecated

Responses

Request samples

Content type
application/json
{
  • "createDate": "2019-08-24T14:15:22Z",
  • "dbVersion": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "modelVersion": "string",
  • "originalId": "string",
  • "rules": {
    },
  • "storeId": "string",
  • "updateDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "createDate": "2019-08-24T14:15:22Z",
  • "dbVersion": 0,
  • "id": "string",
  • "lastUpdateReason": "string",
  • "modelVersion": "string",
  • "rules": {
    },
  • "storeId": "string",
  • "updateDate": "2019-08-24T14:15:22Z"
}

DiscountUsage

Get items

Authorizations:
Bearer
query Parameters
required
object (Pageable)
predicate
required
object
target
string

Return selected fields only (multiple occurrences allowed for selecting multiple fields)

orderId
string

Order Id discount applied to

customerId
string

Customer Id discount applied to

storeId
string

Store Id discount applied to

discountId
string

Discount Id

discountCode
string

Discount Code

endUserEmail
string

Email used

endUserId
string

EndUser Id

catalogId
string

Catalog Id

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Get distinct values for a given field

Authorizations:
Bearer
query Parameters
target
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Get recap quantities for a given field

Authorizations:
Bearer
query Parameters
target
required
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Search unwind for a given field

Authorizations:
Bearer
query Parameters
target
required
string
required
object (Pageable)
predicate
required
object

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "last": true,
  • "number": 0,
  • "size": 0,
  • "totalItems": 0,
  • "totalPages": 0
}

Get item

Authorizations:
Bearer
path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "createDate": "2019-08-24T14:15:22Z",
  • "customerId": "string",
  • "dbVersion": 0,
  • "discountCode": "string",
  • "discountId": "string",
  • "endUserEmail": "string",
  • "enduserId": "string",
  • "id": "string",
  • "lastUpdateReason": "string",
  • "modelVersion": "string",
  • "orderId": "string",
  • "storeId": "string",
  • "updateDate": "2019-08-24T14:15:22Z",
  • "useDate": "2019-08-24T14:15:22Z",
  • "used": true
}