PUT
/
clients
/
{id}
Update a client
curl --request PUT \
  --url https://api.contazen.ro/v1/clients/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "person",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "cui": "<string>",
  "cui_prefix": "<string>",
  "rc": "<string>",
  "address": "<string>",
  "city": "<string>",
  "county": "<string>",
  "country": "<string>",
  "postal_code": "<string>",
  "iban": "<string>",
  "bank_name": "<string>",
  "contact_person": "<string>",
  "notes": "<string>",
  "is_active": true
}'
{
  "success": true,
  "data": {
    "id": "cli_1a2b3c4d5e",
    "object": "client",
    "name": "<string>",
    "type": "company",
    "email": "jsmith@example.com",
    "phone": "<string>",
    "cui": "<string>",
    "cui_prefix": "RO",
    "rc": "<string>",
    "address": "<string>",
    "city": "<string>",
    "county": "<string>",
    "country": "RO",
    "postal_code": "<string>",
    "iban": "<string>",
    "bank_name": "<string>",
    "contact_person": "<string>",
    "notes": "<string>",
    "is_active": true,
    "is_firm": true,
    "created_at": "2023-11-07T05:31:56Z",
    "modified_at": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "version": "v1",
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "response_time": "23.45ms"
  }
}

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Path Parameters

id
string
required

Client CzUid

Body

application/json
name
string
Required string length: 1 - 255
type
enum<string>
Available options:
person,
company
email
string<email>
phone
string
cui
string
cui_prefix
string
rc
string
address
string
city
string
county
string
country
string
postal_code
string
iban
string
bank_name
string
contact_person
string
notes
string
is_active
boolean

Response

Client updated

success
boolean
data
object
meta
object