Add a customer
POST
/v1/customers
const url = 'https://api.varman.io/v1/customers';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Acme Corp","website":"https://acme.com","stage":"prospect","notes":{},"ownerMemberId":"mem_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/customers \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "Acme Corp", "website": "https://acme.com", "stage": "prospect", "notes": {}, "ownerMemberId": "mem_abc123" }'Creates a customer to track its security review, contract files, questionnaires and commitments. Stage defaults to prospect. Owner must be a member of the organization.
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
name
required
Customer company name
string
Example
Acme Corpwebsite
Customer website
object
Example
https://acme.comstage
Deal or relationship stage
string
notes
Free text notes
object
ownerMemberId
Member ID of the account owner (null clears it)
object
Example
mem_abc123