GetUserPromotions
POST/v1/users/promotions¶ Description
Endpoint to fetch promotions associated to a user based on the user id.
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| context | ThirdPartyRequestContext | Context of this request | Y |
| user_id | string | Unique id of the user for which promotions are requested. | Y |
| promotion_id | string | Specific Promo id which is to be queried. If nothing is set, all applicable userPromotions will be returned without PromotionRestriction, with or without Promotion. | N |
| response_options | ResponseOptions | Option to the caller to ask for additional metadata in the response. | N |
| request_options | RequestOptions | Options scoping the query to a specific offer. When unset, all applicable user promotions are returned and the response_options above continue to apply. | N |
¶ Response Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| user_promotions | array<UserPromotion> | List of User Promotions associated with the user. | N |
¶ Errors
| HTTP status | Code | Message |
|---|---|---|
| 404 | ERROR_CODE_PARTICIPANT_NOT_FOUND | One or more participants not found [value: “ |