palbaseDocs

Palbase Commerce & Promotions · API

PUT/promotions/rules/{rule_id}/budgets/{currency}

Set per-currency promotion spend cap

Set per-currency promotion spend cap

Called by your server, with the project's secret key.

Path

rule_idstring · requiredPath parameter rule_id.
currencystring · requiredPath parameter currency.
curl
curl -X PUT "https://<your-ref>.palbase.studio/promotions/rules/<rule_id>/budgets/<currency>" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

200Set per-currency promotion spend cap

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation UpsertPromotionBudget of commerce's contract.