Add a pricing rule
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.
API key as Bearer token: Authorization: Bearer luc_live_...
In: header
Path Parameters
The external ID of the contract.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/billing/contracts/acme-corp-2026/pricing-rules" \ -H "Content-Type: application/json" \ -d '{ "name": "Maker fee waiver — counterparty acme-markets", "type": "usage", "model": "percentage", "rate": 0, "metric": "trading_volume", "counterparty": "acme-markets", "counterparty_side": "maker" }'{ "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"}{ "error": "string"}