Skip to main content
PATCH
Update a contract's payment structure

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization code + PKCE (S256). Tokens are tenant-bound (company_id) and scoped. Discover endpoints via /.well-known/oauth-authorization-server.

Path Parameters

id
string
required

The id.

Body

application/json

Update contract payment terms and/or requirements. At least one of paymentStructure or requirements must be provided.

paymentStructure
object

A payment structure. On PUT, the body is forwarded to the campaign update service verbatim (cpmRate >= 0 normalization + crosspostMaturityDays validation are reused from the canonical service). Permissive.

requirements
object

Contract / campaign delivery requirements. Passed through to the contract un-strictly (the route does not strictly validate the body); the listed fields mirror the MCP programRequirementsSchema cross-check (lib/mcp/tools/structure-schemas.ts:94).

Response

Result of the payment-terms update, including regen status and pending-review flag.

data
object
required