Cross Sell

Get Cross Sell campaigns by filter

get
Query parameters
CampaignNamestringOptionalExample: Christmas campaign
Statusstring[]OptionalExample: ["ACTIVE","INACTIVE"]
Typestring · enumOptionalExample: MERCHPossible values:
Productsstring[]OptionalExample: ["34924C876E","34AF4C876S"]
RecommendedProductsstring[]OptionalExample: ["34924C876E","34AF4C876S"]
StartDatestringOptionalExample: 2020-09-03T16:28:32+04:00
EndDatestringOptionalExample: 2020-12-03T16:28:32+04:00
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
get
/crosssells

Create a new Cross Sell campaign

post
Header parameters
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
AcceptstringRequiredExample: application/json
Body
NamestringRequired

Name of campaign, max 255 chars.

Example: New campaign
MasterProductsstring[]Required

array of product code ids to which this cross sell is going to be applied to

Example: FD86FD98
DisplayTypestring · enumRequired

Where should cross sell products be displayed

Example: cartPossible values:
DisplayInEmailbooleanRequired

true/false - display in payment receipt emails or not

Example: false
StartDatestring · nullableOptional

When should campaign start

Example: 2020-12-20
EndDatestring · nullableOptional

When should campaign end

Example: 2021-12-20
Responses
post
/crosssells

Update a Cross Sell campaign

put
Header parameters
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
AcceptstringRequiredExample: application/json
Body
CampaignCodestringRequired

The unique code of the cross-sell campaign

Example: 2Xrl83KEs6KB1XG3db+9dQ==
CampaignStatusstring · enumRequired

The cross-selll campaign status

Example: ACTIVEPossible values:
NamestringRequired

Name of campaign, max 255 chars.

Example: New campaign
MasterProductsstring[]Required

array of product code ids to which this cross sell is going to be applied to

Example: FD86FD98
DisplayTypestring · enumRequired

Where should cross sell products be displayed

Example: cartPossible values:
DisplayInEmailbooleanRequired

true/false - display in payment receipt emails or not

Example: false
StartDatestring · nullableOptional

When should campaign start

Example: 2020-12-20
EndDatestring · nullableOptional

When should campaign end

Example: 2021-12-20
Responses
put
/crosssells

Get Cross Sell campaigns by code

get
Path parameters
campaignCodestringRequiredExample: 2Xrl83KSnemB5XG3ea+9hQ==
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
get
/crosssells/{campaignCode}/campaign
post
Header parameters
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
AcceptstringRequiredExample: application/json
Responses
post
/crosssells/settings

Add cross-sell campaign texts

post

Overview Add cross-sell campaigns texts.

Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Bodyobject[]
LanguagestringOptional

language code

Example: en
TitlestringOptional

campaign title in the related language

Example: Limited offer this week
DescriptionstringOptional

campaign description in the related language

Example: Buy this product at 5% discount
Responses
post
/crosssells/campaignTexts
200

OK

Edit cross-sell campaign texts

put

Overview Edit cross-sell campaigns texts.

Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Bodyobject[]
LanguagestringOptional

language code

Example: en
TitlestringOptional

campaign title in the related language

Example: Limited offer this week
DescriptionstringOptional

campaign description in the related language

Example: Buy this product at 5% discount
Responses
put
/crosssells/campaignTexts
200

OK

Retrieve cross-sell campaign texts

get

Overview Extract information on all cross-sell campaigns texts.

Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
get
/crossselltexts
200

OK

Retrieve cross-sell campaign texts

get

Overview Extract information on all cross-sell campaigns texts.

Path parameters
LanguagestringRequired

ISO 4217 code for the language of the cross-sell campaign text.

Example: en
Header parameters
Acceptstring · enumRequiredDefault: application/jsonExample: application/jsonPossible values:
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
get
/crossselltexts/{Language}
200

OK

Last updated

Was this helpful?