Promotions can be created with the Oracle Commerce Cloud REST Admin APIs by using the createPromotion
endpoint, or updated with the updatePromotion
endpoint. In both cases, custom properties appear in the request body alongside the other predefined properties.
You can use the Oracle Commerce Cloud Admin API to retrieve promotion information. Issue a GET request to ccadmin/v1/promotions
to display all promotions. For example:
GET /ccadmin/v1/promotions HTTP/1.1
Authorization: Bearer <access_token>
To view a specific promotion, issue a GET request to the /ccadmin/v1/promotions/{id}
endpoint, providing the ID of the promotion you want to view.
The response displays a list of promotions and a subset of properties for each promotion. You can modify the values of these properties using the PUT /ccadmin/v1/promotions/{id}
endpoint on the administration server.