Skip to main content
PATCH
Partially update contract

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

tenant-id
string
required

Specifies the tenant context for the request. All endpoints operate within this tenant scope.

Example:

"tnt_pfh0haxfpzowht3oi213cqos"

Path Parameters

contractId
string
required

The ID of the contract.

Example:

"ctr_z23aoo8naxk68ewcr64tchh5"

Body

application/json

Request body used to partially update an existing contract resource.

Request body used to partially update an existing contract resource.

tenantAddressId
string

Identifier of the tenant-side address to display on this contract.

Minimum string length: 1
Example:

"adr_ekq4ymw1nyyd4b6k6f5tg3t6"

clientAddressId
string

Identifier of the client's address for the contract.

Minimum string length: 1
Example:

"adr_ekq4ymw1nyyd4b6k6f5tg3t6"

name
string

Contract name.

Required string length: 1 - 255
Example:

"Standard Service Contract"

description
string

Detailed contract description.

Example:

"This contract covers standard service terms and conditions."

amountMinor
integer

Monetary amount in minor units (e.g., cents).

Required range: 0 <= x <= 9007199254740991
Example:

5000

currencyCode
string

ISO 4217 currency code.

Required string length: 3
Example:

"EUR"

contactPersonId
string | null

Identifier of the primary contact person associated with this contract.

Minimum string length: 1
Example:

"con_xlbg6ubfio7tzvsijyp5794c"

billingContactId
string

Identifier of the billing contact for this contract, if different from the main contact.

Minimum string length: 1
Example:

"con_xlbg6ubfio7tzvsijyp5794c"

order
integer

Order of the resource for sorting purposes.

Required range: 0 <= x <= 9007199254740991
Example:

13

validFrom
string<date-time>

Contract validity start date.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Example:

"2023-10-05T14:48:00.000Z"

validTo
string<date-time>

Contract validity end date.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Example:

"2023-10-05T14:48:00.000Z"

Response

Default Response

Standard success response payload wrapped in a data property.

data
object
required

Contract resource returned by the API.