Update a pricing rule
Merges the supplied fields into an existing rule and creates a new approved pricing program version.
API key as Bearer token: Authorization: Bearer luc_live_...
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/billing/contracts/string/pricing-rules/string" \ -H "Content-Type: application/json" \ -d '{ "rate": 0.00005 }'{ "object": "pricing_rule", "contract": "string", "version": 0, "rule": { "id": "string", "name": "string", "type": "subscription", "model": "flat", "amount": "string", "rate": 0, "metric": "string", "frequency": "monthly", "monthly_cap": "string", "currency": "string", "counterparty": "string", "counterparty_side": "maker" }}{ "error": "Missing API key"}{ "error": "Not found"}Add a pricing rule POST
Appends a new pricing rule to the contract's active program, creating a new approved pricing program version (append-only; prior versions are preserved). Use this to set up counterparty-scoped rules — e.g. waiving the maker fee for a specific counterparty — before submitting usage.
Delete a pricing rule DELETE
Removes a rule and creates a new approved pricing program version.