v1
latestOpenAPI 3.1.02026-08-042453938.9 KBContracts
Add a price override
Add or update a per-unit-type price override on a contract.
Price overrides replace the default pricing plan rate for a specific usage type. For example, if your default api_call plan charges $0.001/call, a contract override of $0.0008/call gives this customer a negotiated enterprise rate.
If an override for the given unitType already exists, it is updated (upsert behavior). Only ACTIVE contracts accept new overrides.
Requires a secret key (sk_*) with the ADMIN role.
post/v1/contracts/{id}/overrides
Path parameters
idstring required
Contract ID
Request body
Example request
{
"unitType": "api_call",
"unitPriceUsd": "0.000800"
}Response
Price override created or updated
Example response
{
"id": "cpo_abc123def456",
"unitType": "api_call",
"unitPriceUsd": "0.000800"
}