Basket Offers

User-specific basket offers (active, past, upcoming)

List Active Basket Offers

get

Lists the user's active basket offers.

Business Logic:

  • Returns offers whose date range is currently active (start_datetime <= now <= end_datetime)

  • User-specific assigned offers only

  • Offers valid for the active session currency

  • Includes FIXED, PERCENTAGE, SHIPPING_FREE benefit types

Returned Data:

  • total_discount: Sum of amounts for FIXED benefit type offers

  • discounts: Only FIXED benefit type offers

  • all_discounts: All offer types (FIXED, PERCENTAGE, SHIPPING_FREE)

Authorizations
Header parameters
X-CookiestringRequired

Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

Successful response

application/json
get
/basket-offers/

List Expired Basket Offers

get

Lists the user's expired basket offers (past promotions).

Business Logic:

  • Offers satisfying end_datetime < now

  • User-specific assignments

  • Valid for the active session currency

Authorizations
Query parameters
pageinteger · min: 1Optional

Page number (starts from 1)

Default: 1Example: 1
page_sizeinteger · min: 1Optional

Number of records per page

Default: 10Example: 10
Header parameters
X-CookiestringRequired

Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

Successful response

application/json
get
/expired-basket-offers/

List Future Basket Offers

get

Lists the user's future basket offers (scheduled promotions not yet started).

Business Logic:

  • Offers satisfying start_datetime > now

  • User-specific assignments

  • Valid for the active session currency

  • Supports pagination

Notes:

  • These offers cannot yet be applied to the basket

  • Informational only

  • Sorting by ascending start date (start_datetime ASC) is recommended

Authorizations
Query parameters
pageinteger · min: 1Optional

Page number (starts from 1)

Default: 1Example: 1
page_sizeinteger · min: 1Optional

Number of records per page

Default: 10Example: 10
Header parameters
X-CookiestringRequired

Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.

Example: osessionid=abc123
Accept-Languagestring · enumOptional

Language preference (for multilingual content). Supported languages: tr, en, ar, ru, de, fr

Default: trExample: trPossible values:
Responses
chevron-right
200

Successful response

application/json
get
/future-basket-offers/

Last updated

Was this helpful?