Promotions

Retrieve all promotions set for a product

get
Path parameters
ProductCodestringRequired

The editable code that you control at product-level, not the unique, system-generated product ID

Example: my_subscription_1
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
get
/products/{ProductCode}/promotions
200

OK

Retrieve a product's promotion

get
Path parameters
ProductCodestringRequired

The editable code that you control at product-level, not the unique, system-generated product ID

Example: my_subscription_1
PromotionCodestringRequired

Unique, system-generated identifier 2Checkout associates with promotion campaigns.

Example: 62B7F22FC5
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
get
/products/{ProductCode}/promotions/{PromotionCode}
200

OK

Retrieve all active promotions

get
Query parameters
Typesstring · enumOptionalExample: REGULARPossible values:
Channelstring · enumOptionalExample: CHANNEL_MANAGERPossible values:
EnabledbooleanOptionalExample: true
CouponsstringOptionalExample: 81XS55D1,E14S5F17
ProductCodestringOptionalExample: 8DD3031DA7
PagenumberOptionalExample: 1
LimitnumberOptionalExample: 10
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
get
/promotions
200

OK

Add a new promotion

post
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
or
or
or
Responses
200

OK

application/json
or
or
or
post
/promotions
200

OK

Retrieve a promotion

get
Path parameters
PromotionCodestringRequired

Unique, system-generated identifier 2Checkout associates with promotion campaigns.

Example: 62B7F22FC5
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
200

OK

application/json
or
or
or
get
/promotions/{PromotionCode}
200

OK

Update a promotion

put
Path parameters
PromotionCodestringRequired

Unique, system-generated identifier 2Checkout associates with promotion campaigns.

Example: 62B7F22FC5
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Body
or
or
or
Responses
200

OK

application/json
or
or
or
put
/promotions/{PromotionCode}
200

OK

Add promotion coupon

post
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
CodestringOptional
TypestringOptional
Responses
200

OK

application/json
post
/promotions/{PromotionCode}/coupons
200

OK

Update promotion coupon

put
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Bodyobject[]
TypestringOptional

coupon type (SINGLE or MULTIPLE)

Example: SINGLE
CodestringOptional

coupon code

Example: CP2019-11
Responses
200

OK

application/json
put
/promotions/{PromotionCode}/coupons
200

OK

Delete promotion coupons

delete
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8A
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Responses
200

OK

application/json
delete
/promotions/{PromotionCode}/coupons
200

OK

Add products to a promotion

post
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Bodyobject[]
CodestringOptional

Promotion code.

Example: Black Friday promo discount
PricingConfigurationCodestringOptional

Pricing configuration code.

Example: 548AF4CD26
PricingOptionCodesstring[]Optional
Responses
200

OK

application/json
CodestringOptional

Promotion code.

Example: Black Friday promo discount
PricingConfigurationCodestringOptional

Pricing configuration code.

Example: 548AF4CD26
PricingOptionCodesstring[]Optional
post
/promotions/{PromotionCode}/products
200

OK

Remove products from a promotion

delete
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Responses
200

OK

No content

delete
/promotions/{PromotionCode}/products
200

OK

No content

Add promotion sources

post
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
SOURCE_1stringOptional
SOURCE_2stringOptional
SOURCE_3stringOptional
Responses
200

OK

application/json
post
/promotions/{PromotionCode}/sources
200

OK

Delete promotion sources

delete
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Responses
200

OK

application/json
delete
/promotions/{PromotionCode}/sources
200

OK

Add promotion translations

put
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Bodyobject[]
NamestringOptional

Translation text.

Example: Regular promotion for October
LanguagestringOptional

Translation language code.

Example: EN
Responses
200

OK

application/json
NamestringOptional

Translation text.

Example: Regular promotion for October
LanguagestringOptional

Translation language code.

Example: EN
put
/promotions/{PromotionCode}/translations
200

OK

Delete promotion translations

delete
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Responses
200

OK

application/json
delete
/promotions/{PromotionCode}/translations
200

OK

Update the discounts for a promotion

put
Path parameters
PromotionCodestringRequired

Unique system generated promotion code

Example: EF61BCB8AF
Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Acceptstring · enumRequiredExample: application/jsonPossible values:
Body
or
Responses
200

OK

application/json
or
put
/{PromotionCode}/discounts
200

OK

Last updated

Was this helpful?