Turn off one of this merchant's own rules
Retires a rule the merchant owns, freeing its slot so a new rate can be set.
/v1/clients/{clientId}/reward_rules/{ruleId}/disableRetires a rule the merchant owns, freeing its slot so a new rate can be set. Grants already made stand. A rule the merchant does not own is not found.
Authorization
bearerAuth A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.
In: header
Path Parameters
uuiduuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/clients/497f6eca-6276-4993-bfeb-53cbbbba6f08/reward_rules/497f6eca-6276-4993-bfeb-53cbbbba6f08/disable"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "params": {}, "scope": {}, "caps": {}, "starts_at": "2019-08-24T14:15:22Z", "ends_at": "2019-08-24T14:15:22Z", "version": 0, "status": "string", "created_at": "2019-08-24T14:15:22Z", "disabled_at": "2019-08-24T14:15:22Z"}Set a cashback or loyalty rule for this merchant, common or per-product
Sets one of the merchant's own reward rules, either common to the whole shop or bound to one offering by offering_id; a per-product rule overrides the common one for that product.
The merchant's order book, newest first
The merchant's order book, newest first by created_at and optionally narrowed by status.