List customer commitments
GET
/v1/customer-commitments
const url = 'https://api.varman.io/v1/customer-commitments?customerId=cus_abc123&filter=due_soon&days=30';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.varman.io/v1/customer-commitments?customerId=cus_abc123&filter=due_soon&days=30' \ --header 'X-API-Key: <X-API-Key>'Returns commitments made to customers (contract clauses, SLAs, certifications, DPAs). Filter by customerId, or filter=due_soon (within days, default 30) or filter=at_risk (marked at risk or overdue).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Query Parameters
Section titled “Query Parameters”customerId
string
Example
cus_abc123Only commitments of this customer
filter
string
Due_soon: not met or waived and due within days. at_risk: marked at risk or overdue.
days
number
Window for due_soon in days