promotion

This class provides RESTful services to get promotion data using the Promotion noun.

Handler Class:

com.ibm.commerce.rest.marketing.handler.PromotionHandler

Method Summary

HTTP MethodPathDescription
GET/store/{storeId}/promotion?q={q}Gets the promotion list by query type and parameters.
GET/store/{storeId}/promotion/{promotionId}Get Promotion by id.

Method Details

GET /store/{storeId}/promotion?q={q}

Gets the promotion list by query type and parameters.

Handler Method:

getPromotionsByQuery

Secure Call Mandatory:

true

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
qThe query name.querystringtruefalse
qNameThe name of the promotion to find when finding promotions by name.querystringfalsefalse
pageNumberPage number, starting at 1. Valid values include positive integers of 1 and above. The "pageSize" must be specified for paging to work.queryintegerfalsefalse
pageSizePage size. Used to limit the amount of data returned by a query. Valid values include positive integers of 1 and above. The "pageNumber" must be specified for paging to work.queryintegerfalsefalse
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

promotion-promotion

GET /store/{storeId}/promotion/{promotionId}

Get Promotion by id.

Handler Method:

getPromotionByID

Secure Call Mandatory:

true

Partial Authentication Allowed:

false

Parameters:
NameDescriptionParameter TypeData TypeRequiredAllow Multiple
storeIdThe store identifier.pathstringtrueN/A
promotionIdThe promotion identifier.pathintegertrueN/A
HTTP Status Codes:
HTTP Status CodeDescription
200The requested completed successfully.
400Bad request. Some of the inputs provided to the request aren't valid.
401Not authenticated. The user session isn't valid.
403The user isn't authorized to perform the specified request.
404The specified resource couldn't be found.
500Internal server error. Additional details will be contained on the server logs.
Response Data Type:

promotion-promotion

Data Type Details

com.ibm.commerce.promotion.facade.datatypes.PromotionScheduleType

Properties:
NameData TypeRequired
startDatestringfalse
dailyStartTimestringfalse
endDatestringfalse
weekDayscom.ibm.commerce.promotion.facade.datatypes.DayOfWeekEnumerationType arrayfalse
dailyEndTimestringfalse

promotion-promotion

Properties:
NameData TypeRequired
recordSetTotalstringfalse
Promotionpromotion-promotion_item arrayfalse
recordSetStartNumberstringfalse
recordSetCompletestringfalse
recordSetCountstringfalse

promotion-promotion_item

Properties:
NameData TypeRequired
statusstringfalse
schedulecom.ibm.commerce.promotion.facade.datatypes.PromotionScheduleTypefalse
administrativeNamestringfalse
Descriptionpromotion-promotion_item.Description arrayfalse
promotionTypestringfalse
promotionNamestringtrue
promotionIdstringfalse

promotion-promotion_item.Description

Properties:
NameData TypeRequired
longDescriptionstringfalse
shortDescriptionstringfalse