Returns a list of all available promotions for a member.
Security
api_key
- Productionhttps://api.oculos.no/v4/promotions/customerId/{customerId}
- Staginghttps://api.staging.oculos.no/v4/promotions/customerId/{customerId}
curl -i -X GET \
'https://api.oculos.no/v4/promotions/customerId/{customerId}' \
-H 'x-api-key: YOUR_API_KEY_HERE'Success
Array []
Terms and conditions of the promotion
Example:"This promotion is valid for all products in the store"
Time of day the promotion becomes valid. Note: This is only a description field that can be used to display information, the actual validity is determined by validFrom and validTo. Default value is 00:00:00
Example:"08:00:00"
Time of day the promotion becomes invalid. Note: This is only a description field that can be used to display information, the actual validity is determined by validFrom and validTo. Default value is 00:00:00
Example:"20:00:00"
Sort order of the promotion. The sort order is defined in the Trigg application
Example:1
Response
[ { "id": "2457B03E-9925-45E9-B551-25F10D7BD4F2", "type": "Promotion", "name": "Welcome coupon", "available": true, "description": "This is a coupon that gives the customer 10% discount on any product", "terms": "This promotion is valid for all products in the store", "urlLink": "Link to the promotion", "urlImage": "https://cdn.oculos.no/img01.png", "validFrom": "2024-04-03T07:38:32.495Z", "validTo": "2024-04-03T07:38:32.495Z", "validTimeFrom": "08:00:00", "validTimeTo": "20:00:00", "unlimitedRedemption": false, "redemptionLimit": 5, "redemptionCount": 1, "sortOrder": 1, "productsIncluded": [ … ], "productsExcluded": [ … ], "storesIncluded": [ … ], "affiliate": { … }, "redemptionChannels": [ … ], "redemptionHistory": [ … ] } ]