Manage offers (synchronous API)
Creates a new offer.
The site ID associated with the offer.
Name of an offer.
Offer_New_1A description of the offer.
Offer_New_1The external reference identifier of the offer.
Offer_New_1Type of the offer.
discountDetermines how the offer is triggered. Possible values are promotionalUrlOrExternalTriggered, alwaysTriggered, couponCode, siteTest.
promotionalUrlOrExternalTriggeredType of the added coupon. If offerTrigger is couponCode then couponType field is required. Possible values are importCouponCodes, enterCouponCodes, generateCouponCodes, rangeCouponCodes.
importCouponCodesStart date of an offer.
2024-05-12T00:00:00.000ZEnd date of an offer.
2024-05-13T00:00:00.000ZTotal usuage limit of an offer.
18Shopper usage limit of an offer.
12The catalog associated to the offer.
823600The currency of an offer. It is required only when we have product’s discountType either 'Amount' or 'Amount Off'.
USDThe price list of the offer.
listPriceOffer successfully created.
- Bad request.
- Please verify your API key and secret (if applicable) is correct.
POST /v1/offers HTTP/1.1
Host: api.digitalriver.com
Authorization: Basic username:password
x-siteId: text
Content-Type: application/json
Accept: */*
Content-Length: 508
{
"name": "Offer_New_1",
"description": "Offer_New_1",
"externalReferenceOfferId": "Offer_New_1",
"offerType": "discount",
"offerTrigger": "promotionalUrlOrExternalTriggered",
"couponType": "importCouponCodes",
"offerStartDate": "2024-05-12T00:00:00.000Z",
"offerEndDate": "2024-05-13T00:00:00.000Z",
"supportedLocales": [
{
"locale": "en_GB"
}
],
"totalUsageLimit": 18,
"shopperUsageLimit": 12,
"catalogId": "823600",
"currency": "USD",
"priceListType": "listPrice",
"products": [
{
"id": "287656800",
"discountType": "Amount",
"discountValue": 2
}
]
}{
"id": "426368220289",
"status": "Draft",
"name": "Key_New_315511",
"description": "New_Release_Offer_5",
"externalReferenceOfferId": "Key_New_315511",
"siteId": "paytest2",
"offerType": "discount",
"offerTrigger": "promotionalUrlOrExternalTriggered",
"offerStartDate": "2024-05-12T00:00:00.000Z",
"offerEndDate": "2024-05-13T00:00:00.000Z",
"creationDate": "2024-05-02T08:29:00.275Z",
"modificationDate": "2024-05-02T08:29:00.275Z",
"defaultLocale": "en_US",
"supportedLocales": [
{
"locale": "en_CA"
}
],
"totalUsageLimit": 1,
"shopperUsageLimit": 1,
"catalogId": "823600",
"currency": "USD",
"priceListType": "listPrice",
"products": [
{
"id": "287656800",
"discountType": "Amount",
"discountValue": 2
}
]
}Last updated
