Download OpenAPI specification:Download
Generate secure and highly performant promotional coupons.
Key Features:
Key Benefits:
Retrieves a list of coupons by the specified criteria. Supports sorting and paging.
coupon.coupon_manage
coupon.coupon_read
The list of coupons has been retrieved successfully.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
Some server side error occurred.
[- {
- "name": "MW2023_7",
- "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
- "discountType": "PERCENT",
- "discountPercentage": 7,
- "allowAnonymous": false,
- "maxRedemptionsPerCustomer": -1,
- "categoryRestricted": false,
- "segmentRestricted": false,
- "metadata": {
- "version": 1
}, - "code": "MW2023_7",
- "status": "EXPIRED",
- "maxRedemptions": -1,
- "redemptionCount": 0,
- "deleted": false,
- "restrictions": {
- "validFrom": "2023-02-09T06:45:33.779Z",
- "validUntil": "2023-07-31T05:45:25.934Z",
- "minOrderValue": {
- "amount": 150,
- "currency": "EUR"
}, - "validFor": [ ]
}
}, - {
- "name": "MW2023_10",
- "description": "BUY MORE SAVE MORE! 10% off orders over 500€! Use code: MW2023_10",
- "discountType": "PERCENT",
- "discountPercentage": 10,
- "allowAnonymous": false,
- "maxRedemptionsPerCustomer": -1,
- "categoryRestricted": false,
- "segmentRestricted": false,
- "metadata": {
- "version": 3
}, - "code": "MW2023_10",
- "status": "VALID",
- "maxRedemptions": -1,
- "redemptionCount": 0,
- "deleted": false,
- "restrictions": {
- "validFrom": "2023-02-09T06:47:29.177Z",
- "minOrderValue": {
- "amount": 500,
- "currency": "EUR"
}, - "validFor": [ ]
}
}, - {
- "name": "COUPON_FOR_SEGMENTS",
- "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: COUPON_FOR_SEGMENTS",
- "discountType": "PERCENT",
- "discountPercentage": 7,
- "allowAnonymous": false,
- "maxRedemptionsPerCustomer": 1,
- "categoryRestricted": false,
- "segmentRestricted": true,
- "metadata": {
- "version": 1
}, - "code": "MW2023_7",
- "status": "VALID",
- "maxRedemptions": -1,
- "redemptionCount": 0,
- "deleted": false,
- "restrictions": {
- "validFrom": "2023-02-09T06:45:33.779Z",
- "validUntil": "2023-07-31T05:45:25.934Z",
- "segments": [
- "segmentId1",
- "segmentId2"
], - "minOrderValue": {
- "amount": 150,
- "currency": "EUR"
}, - "validFor": [ ]
}
}
]
Creates a coupon.
By default, the coupon code is saved in uppercase. To ensure that the code is saved both in upper and lower case, set the enableCouponCodeCaseSensitivity
configuration to true in the configuration service or System Preferences.
coupon.coupon_manage
The resource has been successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "code": "ENG2OC0",
- "name": "Winter Sale 2018",
- "description": "Great Winter Discount of 25 USD in December 2018 and January 2019 for all Orders over 50 USD",
- "discountType": "ABSOLUTE",
- "discountAbsolute": {
- "amount": 24.99,
- "currency": "USD"
}, - "allowAnonymous": false,
- "maxRedemptions": -1,
- "maxRedemptionsPerCustomer": -1,
- "categoryRestricted": false,
- "segmentRestricted": false,
- "restrictions": {
- "validFor": [
- "C0123456789",
- "C0123456788"
], - "validFrom": "2014-12-01T00:00:00.000Z",
- "validUntil": "2015-01-31T23:59:59.999Z",
- "minOrderValue": {
- "amount": 49.99,
- "currency": "USD"
}
}, - "issuedTo": "C01234567989"
}
{- "id": "ENG2OC0"
}
Retrieves coupon details.
coupon.coupon_redeem_on_behalf
- needed only if the service should use the customer identification specified in the request query (customerNumber
attribute) instead of the one associated with current authentication token.The coupon has been successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
The requested resource does not exist.
Some server side error occurred.
{- "name": "MW2023_7",
- "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
- "discountType": "PERCENT",
- "discountPercentage": 7,
- "allowAnonymous": false,
- "maxRedemptionsPerCustomer": -1,
- "categoryRestricted": false,
- "segmentRestricted": false,
- "metadata": {
- "version": 1
}, - "code": "MW2023_7",
- "status": "EXPIRED",
- "maxRedemptions": -1,
- "redemptionCount": 0,
- "deleted": false,
- "restrictions": {
- "validFrom": "2023-02-09T06:45:33.779Z",
- "validUntil": "2023-07-31T05:45:25.934Z",
- "minOrderValue": {
- "amount": 150,
- "currency": "EUR"
}, - "validFor": [ ]
}
}
Updates an existing coupon.
coupon.coupon_manage
The coupon has been successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "name": "MW2023_7",
- "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
- "discountType": "PERCENT",
- "discountPercentage": 7,
- "allowAnonymous": false,
- "maxRedemptionsPerCustomer": -1,
- "categoryRestricted": false,
- "segmentRestricted": false,
- "metadata": {
- "version": 4
}, - "maxRedemptions": -1,
- "restrictions": {
- "validFrom": "2023-02-09T06:45:33.779Z",
- "validUntil": "2023-07-31T05:45:25.934Z",
- "minOrderValue": {
- "amount": 150,
- "currency": "EUR"
}, - "validFor": [ ]
}
}
{- "type": "validation_violation",
- "status": 400,
- "message": "The request violates validation constraints.",
- "details": [
- {
- "type": "missing_payload",
- "message": "Empty payload was sent",
- "moreInfo": ""
}
]
}
Partially updates an existing coupon.
coupon.coupon_manage
The coupon has been successfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "name": "MW2023_7",
- "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
- "discountType": "PERCENT",
- "discountPercentage": 7,
- "allowAnonymous": false,
- "maxRedemptionsPerCustomer": -1,
- "categoryRestricted": false,
- "segmentRestricted": false,
- "metadata": {
- "version": 4
}, - "maxRedemptions": -1,
- "restrictions": {
- "validFrom": "2023-02-09T06:45:33.779Z",
- "validUntil": "2023-07-31T05:45:25.934Z",
- "minOrderValue": {
- "amount": 150,
- "currency": "EUR"
}, - "validFor": [ ]
}
}
{- "type": "validation_violation",
- "status": 400,
- "message": "The request violates validation constraints.",
- "details": [
- {
- "type": "missing_payload",
- "message": "Empty payload was sent",
- "moreInfo": ""
}
]
}
Deletes an existing coupon.
coupon.coupon_manage
Coupon with given code has been successfully deleted.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Some server side error occurred.
{- "type": "validation_violation",
- "status": 400,
- "message": "The request violates validation constraints.",
- "details": [
- {
- "type": "missing_payload",
- "message": "Empty payload was sent",
- "moreInfo": ""
}
]
}
Checks whether the coupon can be successfully redeemed. Performs all checks that are executed during actual redemption, but does not result in a redeemed coupon. Only the status of the validation is reported.
coupon.coupon_redeem_on_behalf
- needed only if the service should use the customer identification
specified in the request body (customerNumber
attribute) instead of the one associated with current
authentication token.The coupon can be successfully redeemed.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Some server side error occurred.
{- "customerNumber": "CustomerId",
- "orderTotal": {
- "amount": 1090,
- "currency": "EUR"
}, - "discount": {
- "amount": 5,
- "currency": "EUR"
}
}
{- "type": "validation_violation",
- "status": 400,
- "message": "The request violates validation constraints.",
- "details": [
- {
- "type": "missing_payload",
- "message": "Empty payload was sent",
- "moreInfo": ""
}
]
}
Retrieves a list of redemptions by the specified criteria. Supports sorting and paging.
coupon.coupon_manage
List of redemptions
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Some server side error occurred.
[- {
- "id": "6429b8fdf8fd8e0001df1617",
- "code": "10-OFF",
- "customerNumber": "61443563",
- "orderTotal": {
- "amount": 299.3,
- "currency": "USD"
}, - "discount": {
- "amount": 29.93,
- "currency": "USD"
}, - "redeemedAt": "2023-04-02T17:18:53.701Z"
}, - {
- "id": "642aa7f5f8fd8e0001df161b",
- "code": "10-OFF",
- "customerNumber": "61443563",
- "orderTotal": {
- "amount": 369.07,
- "currency": "USD"
}, - "discount": {
- "amount": 36.91,
- "currency": "USD"
}, - "redeemedAt": "2023-04-03T10:18:29.233Z"
}
]
Invalidate the coupon based on its validity scope. Redemption is not possible when the coupon has exceeded its maximum number allowed redemptions. To be redeemed a coupon needs to be already valid and not expired yet.
coupon.coupon_redeem_on_behalf
- needed only if the service should use the customer identification specified in the request body (customerNumber
attribute) instead of the one associated with current authentication token.The coupon has been redeemed and the redemption has been successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "customerNumber": "CustomerId",
- "orderTotal": {
- "amount": 1090,
- "currency": "EUR"
}, - "discount": {
- "amount": 5,
- "currency": "EUR"
}
}
{- "id": "6058912da917ae6f360f2557"
}
Retrieves a single redemption.
coupon.coupon_manage
for accessing any redemption.coupon.coupon_redeem
for accessing only redemption created by current user.coupon.coupon_redeem_on_behalf
- needed only if the service should use the customer identification specified in the request body (customerNumber
attribute) instead of the one associated with current authentication token.The coupon redemption has been successfully retrieved.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Some server side error occurred.
{- "id": "6429b8fdf8fd8e0001df1617",
- "code": "10-OFF",
- "customerNumber": "61443563",
- "orderTotal": {
- "amount": 299.3,
- "currency": "USD"
}, - "discount": {
- "amount": 29.93,
- "currency": "USD"
}, - "redeemedAt": "2023-04-02T17:18:53.701Z"
}
Deletes a previously created redemption.
coupon.coupon_manage
A redemption with the provided code has been successfully deleted.
Request syntactically incorrect. Any details will be provided within the response payload.
Example response
Access forbidden. The caller is not allowed to access this resource.
The requested resource does not exist.
Some server side error occurred.
{- "type": "validation_violation",
- "status": 400,
- "message": "The request violates validation constraints.",
- "details": [
- {
- "type": "missing_payload",
- "message": "Empty payload was sent",
- "moreInfo": ""
}
]
}