Skip to main content
PATCH
/
api
/
customers
/
{id}
Update Customer
curl --request PATCH \
  --url https://qwoty.app/api/customers/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "segment_id": {},
  "logo": {},
  "tax_ids": [
    {}
  ],
  "id_crm": {},
  "id_erp": {},
  "id_accounting": {}
}
'
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Acme Corp (Renamed)",
    "type": "company",
    "segment_id": null,
    "logo": null,
    "id_crm": "crm_001",
    "id_erp": null,
    "id_accounting": null,
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-03-24T14:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.qwoty.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorization

Authorization
string
required
Bearer token. Format: Bearer qwoty_your_token

Path Parameters

id
string
required
UUID of the customer to update

Request Body

All fields are optional. Only the fields provided will be updated.
name
string
Customer display name
type
string
Customer type. Allowed values: "company", "individual"
segment_id
string | null
UUID of the customer segment. Set to null to unset.
Logo URL. Set to null to unset.
tax_ids
array
Legal identifiers. Replaces all existing tax IDs. Send [] to remove all.Omitting this field leaves existing tax IDs unchanged.
[{ "tax": "VAT", "tax_value": "FR98765432100" }]
id_crm
string | null
External CRM ID
id_erp
string | null
External ERP ID
id_accounting
string | null
External accounting ID

Examples

curl -X PATCH https://qwoty.app/api/customers/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer qwoty_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Corp (Renamed)",
    "tax_ids": [
      { "tax": "VAT", "tax_value": "FR98765432100" }
    ]
  }'

Response

success
boolean
true if the update succeeded
data
object
The updated customer object (same shape as Get Customer)
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Acme Corp (Renamed)",
    "type": "company",
    "segment_id": null,
    "logo": null,
    "id_crm": "crm_001",
    "id_erp": null,
    "id_accounting": null,
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-03-24T14:00:00Z"
  }
}