AgentInvoiceAgentInvoice

Update a client

Updates a client's details. Supports partial updates — only include fields you want to change. Set a nullable field to null to clear it.

PATCH
/clients/{id}
AuthorizationBearer <token>

API key issued from your AgentInvoice account settings.

In: header

Path Parameters

id*integer

Client ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://app.agentinvoice.co/api/clients/0" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": 42,
  "name": "Acme Corp",
  "email": "billing@acme.com",
  "phone": "string",
  "company": "string",
  "addressLine1": "string",
  "addressLine2": "string",
  "city": "string",
  "state": "string",
  "postalCode": "string",
  "country": "string",
  "notes": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}