Add a customer commitment
POST
/v1/customer-commitments
const url = 'https://api.varman.io/v1/customer-commitments';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"customerId":"cus_abc123","type":"contract_clause","title":"Notify security incidents within 72 hours","description":{},"dueDate":"2026-12-31T00:00:00.000Z","status":"open","ownerMemberId":"mem_abc123","controlId":"ctl_abc123","policyId":"pol_abc123"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/customer-commitments \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "customerId": "cus_abc123", "type": "contract_clause", "title": "Notify security incidents within 72 hours", "description": {}, "dueDate": "2026-12-31T00:00:00.000Z", "status": "open", "ownerMemberId": "mem_abc123", "controlId": "ctl_abc123", "policyId": "pol_abc123" }'Records a commitment made to a customer with type, due date, status, owner and an optional linked control or policy. Status defaults to open.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
customerId
required
Customer the commitment was made to
string
Example
cus_abc123type
Kind of commitment
string
title
required
Short title
string
Example
Notify security incidents within 72 hoursdescription
Details or contract wording
object
dueDate
ISO 8601 due date (null clears it)
object
Example
2026-12-31T00:00:00.000Zstatus
Current status
string
ownerMemberId
Member ID of the owner
object
Example
mem_abc123controlId
Control that satisfies it
object
Example
ctl_abc123policyId
Policy that covers it
object
Example
pol_abc123