Palbase Payments · API
PUT
/payments/routing-rulesReplace routing rules
Atomically replaces the project's deterministic currency/country/kind channel routing rules. Not an environment token's: which channel a payment goes to outlives the token.
Called by your server, with the project's secret key.
Request body
rulesobject[] · requiredOrdered routing rules.curl
curl -X PUT "https://<your-ref>.palbase.studio/payments/routing-rules" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"rules":[{"channel_key":"string","enabled":false,"priority":0}]}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation ReplaceRoutingRules of payments's contract.