For the complete documentation index, see llms.txt. This page is also available as Markdown.

Upsell

Search and filter upsell campaigns

get

Search and filter upsell campaigns

Query parameters
NamestringOptional

The title of the campaign

PrimaryProductCodesstring[]Optional

Array of primary product codes

RecommendedProductCodesstring[]Optional

Array of recommended product codes

StartsBeforestringOptional

The UTC date in Y-m-d format

Example: 2019-11-05
StartsAfterstringOptional

The UTC date in Y-m-d format

Example: 2019-11-05
EndsBeforestringOptional

The UTC date in Y-m-d format

Example: 2022-11-10
EndsAfterstringOptional

The UTC date in Y-m-d format

Example: 2020-10-02
EnabledForRenewalsbooleanOptional

Retrieve upsells that are or are not enabled for renewals

CampaignCodesstring[]Optional

Array of campaign UUIDs

PagenumberOptional

Page number

LimitnumberOptional

Number of campaigns per page

Header parameters
X-Avangate-AuthenticationstringRequired
Responses
get
/upsell

Create Upsell campaign

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

Name of campaign, max 500 chars.

Example: Christmas Upsell campaign
StartDatestring · nullableOptional

When will campaign start

Example: 2020-12-25
EndDatestring · nullableOptional

When should campaign end

Example: 2021-12-27
DisplayForManualRenewalsbooleanRequired

Flag that controls compaign display for manual renewals

Example: true
Discountone ofRequired
or
EnabledbooleanRequired

Flag that controls if the compaign is enabled

Example: true
Responses
post
/upsell
get
Query parameters
ProductCodestringRequired

The primary product code

Example: PC202012
QuantityintegerOptional

The quantity for the primary product

Example: 1
PriceOptionsstringOptional

The price options for the primary product

EnabledForRenewalsbooleanOptional

Returns only upsell campaigns that are (or not) enabled for renewals

Header parameters
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Responses
get
/upsell/recommended

Update Upsell campaign

put

Update Upsell campaign

Path parameters
upsellCodestringRequired
Header parameters
X-Avangate-AuthenticationstringRequired
Body
NamestringRequired

Name of campaign, max 500 chars.

Example: Christmas Upsell campaign
StartDatestring · nullableOptional

When will campaign start

Example: 2020-12-25
EndDatestring · nullableOptional

When should campaign end

Example: 2021-12-27
DisplayForManualRenewalsbooleanRequired

Flag that controls compaign display for manual renewals

Example: true
Discountone ofRequired
or
EnabledbooleanRequired

Flag that controls if the compaign is enabled

Example: true
Responses
put
/upsell/{upsellCode}

Delete an Upsell campaign

delete

Delete Upsell campaign

Path parameters
upsellCodestringRequired
Header parameters
X-Avangate-AuthenticationstringRequiredExample: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
AcceptstringRequiredExample: application/json
Responses
204

OK

No content

delete
/upsell/{upsellCode}

No content

Get Upsell campaig settings by vendor

get
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
/upsell/settings/campaign/
200

Returns Upsell campaign settings

Update Upsell campaign settings

put

Update Upsell campaign settings displayType

Header parameters
X-Avangate-AuthenticationstringRequired

Authentication header

Example: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Body
UpsellingDisplayTypestringRequired

Update displayType setting

Example: overlay
Responses
put
/upsell/settings/campaign/

Last updated

Was this helpful?