Palbase Commerce & Promotions · API
GET
/promotions/rules/{rule_id}/codesList promotion codes for a rule
List promotion codes for a rule
Called by your server, with the project's secret key.
Path
rule_idstring · requiredPath parameter rule_id.curl
curl -X GET "https://<your-ref>.palbase.studio/promotions/rules/<rule_id>/codes" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200List promotion codes for a rule
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation ListPromotionCodes of commerce's contract.