Skip to main content
PUT
Updates a contract

Authorizations

Authorization
string
header
required

OAuth2 Bearer Authorization

Path Parameters

uuid
string
required

Contract UUID

Maximum string length: 36

Body

application/json

Updates a contract. Required permission: crm:contracts:update. Available contexts: API Key

ext_contract_id
string

Contract identifier as known by an external CRM. This is the primary field used to match ChargeCloud contracts to records in upstream systems (EDI feeds, partner integrations, migrations). Max 50 chars.

Maximum string length: 50
external_id
string

External customer id

Maximum string length: 15
customer_group_id
integer<int32>

Customer group id

campaign_id
integer<int32>

Campaign id

company_name
string

Company name

Maximum string length: 255
salutation
enum<string>

Salutation code for the contract holder. New private/business registrations only accept {1, 2, 3, 8}.

Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
firstname
string

Firstname

Maximum string length: 70
surname
string

Surname

Maximum string length: 70
street
string

Street

Maximum string length: 255
house_number
string

House number

Maximum string length: 16
zip
string

Postal code of the contract holder's primary address. Length and format are validated against country_id — invalid combinations are rejected.

Maximum string length: 16
city
string

City

Maximum string length: 128
country_id
integer<int32>

Country id

phone
string

Phone

Maximum string length: 255
email
string

Email

Maximum string length: 255
reference_field_1
string

Free-text client-configurable reference. Common use cases include TecDoc identifiers, HC (Hauptkunde) numbers, cost centres, purchase-order numbers, and project IDs. No semantic enforcement by the system.

Maximum string length: 255
reference_field_2
string

Second free-text client-configurable reference, parallel to reference_field_1. Same use cases (TecDoc, HC, cost centres, etc.) — provided as a second slot when one reference is not enough.

Maximum string length: 255
billing_company
string

Billing company

Maximum string length: 255
billing_salutation
enum<string>

Salutation code for the billing recipient. Same value set as salutation.

Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10
billing_title
string

Billing title

Maximum string length: 70
billing_firstname
string

Billing firstname

Maximum string length: 70
billing_surname
string

Billing surname

Maximum string length: 70
billing_street
string

Billing street

Maximum string length: 255
billing_house_number
string

Billing house number

Maximum string length: 16
billing_zip
string

Billing ZIP

Maximum string length: 16
billing_city
string

Billing city

Maximum string length: 128
billing_country_id
integer<int32>

Billing country id

billing_email
string

Billing email

Maximum string length: 128
billing_phone
string

Billing phone

Maximum string length: 128
disabled
boolean
default:false

Disabled

auth_enabled
boolean
default:false

App login enabled

auth_username
string

App login username

Maximum string length: 255
is_employer
boolean
default:false

Is employer contract

payment_method_id
integer<int32>

Payment method ID

attributes
string

JSON-encoded map of contract attributes (e.g. {"attribute_key":"value", ...}). Keys and value types are configured per client — see the Attributes API for the available set. Unknown keys are rejected; optional attributes fall back to their configured default when omitted.

Response

Edited contract

contract
object
required

Contract