Promotions
Update a promotion
Changed onRate limit: 100 requests / 10 seconds per shop. See Rate limiting.
Updates an existing promotion's configuration. Only provided fields are updated; omitted fields remain unchanged. Status changes (activate/deactivate) are part of the same update call.
put/open-api/v1.0/promotions/{promotionId}
Request
- Base URLhttps://api.fourthwall.com
- URLhttps://api.fourthwall.com/open-api/v1.0/promotions/{promotionId}
- Auth
- OAuth 2Implicit: https://auth.staging.fourthwall.com/auth/realms/Fourthwall/protocol/openid-connect/authScopes: promotions_write
- or HTTP basic
Path parameters
promotionIdstring required
Request body
Example request
{
"requirements": {
"minimumOrderValue": {
"value": 10,
"currency": "USD"
}
}
}Response
OK
Example response
{
"discount": {
"money": {
"value": 10,
"currency": "USD"
}
},
"requirements": {
"minimumOrderValue": {
"value": 10,
"currency": "USD"
}
}
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info