Replace contract prices
Replaces the whole set; send an empty list to clear it. Rules have the same shape as price list rules, with optional dates. add and fixed values are in the currency of the customer's list. Two rules for the same items and tier must not be in date at the same time.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
id*stringapplication/json- body
rules*array<>items <= 200Success
application/json- response
Success
data*array<>curl -X PUT "https://example.com/v1/customers/cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/contract-rules" \ -H "Content-Type: application/json" \ -d '{ "rules": [ { "product": "number", "kind": "markup", "value": 2500 } ] }'{ "data": [ { "id": "prr_01K6XJ4Q8ZT3M9R5V2B7WDHNCA", "product": "number", "match": "com", "term": "30d", "action": "new", "minQuantity": 10, "kind": "markup", "value": 2500, "startsAt": "2026-10-07T11:04:31.000Z", "endsAt": "2027-10-07T00:00:00.000Z" } ]}List contract prices GET
The prices agreed with one customer alone. A contract rule that fits a purchase and is in date beats everything on the customer's price list.
Quote customer prices POST
Works out what a customer, or anyone on a list, pays for items at the wholesale prices given. Nothing is bought. With neither a customer nor a list, the default list. A customer's contract prices count; prices fixed on single items do not, since no item is named.