v1
latestOpenAPI 3.1.02026-07-247328324.6 KBAccounts
Update an account
patch/accounts/{id}
Path parameters
idstring required
An object id with prefix
Example:user_0123456789ABCDEFGHIJKLMNOPq
An object id with prefix
Headers
if-matchstring date-time required
ETag value for Optimistic Concurrency Control (OCC). Should contain the last known updated_at timestamp in ISO 8601 format.
Example:2024-01-15T10:30:00Z
ETag value for Optimistic Concurrency Control (OCC). Should contain the last known updated_at timestamp in ISO 8601 format.
Request body
Example request
{
"website": "https://acme.com",
"email": "email@domain.com",
"phone": "+14155551234",
"industry": "541511",
"legal_entity_id": "duns:123456789",
"credit_score": "paydex:123",
"active_since": "2024-01-15",
"monthly_revenue": 10000,
"monthly_costs": 10000,
"cash_on_hand": 10000,
"avg_sale_size": 10000,
"buyer_concentration": 0.05,
"average_days_to_pay": 42,
"lifetime_spend": 10000,
"customer_count": 42,
"insurance": {
"rating": "coface:8",
"limit": 10000,
"coverage": 0.05
},
"metadata": {
"key": "value"
}
}Response
Successful operation
Example response
{
"website": "https://acme.com",
"email": "email@domain.com",
"phone": "+14155551234",
"industry": "541511",
"legal_entity_id": "duns:123456789",
"credit_score": "paydex:123",
"active_since": "2024-01-15",
"monthly_revenue": 10000,
"monthly_costs": 10000,
"cash_on_hand": 10000,
"avg_sale_size": 10000,
"buyer_concentration": 0.05,
"average_days_to_pay": 42,
"lifetime_spend": 10000,
"customer_count": 42,
"insurance": {
"rating": "coface:8",
"limit": 10000,
"coverage": 0.05
},
"metadata": {
"key": "value"
},
"id": "user_0123456789ABCDEFGHIJKLMNOPq",
"created_at": "2024-01-15T10:30:00Z",
"created_by": "user_0123456789ABCDEFGHIJKLMNOPq",
"updated_at": "2024-01-15T10:30:00Z",
"updated_by": "user_0123456789ABCDEFGHIJKLMNOPq"
}