Skip to main content
PATCH
/
api
/
addresses
/
{id}
Update Address
curl --request PATCH \
  --url https://qwoty.app/api/addresses/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "name": {},
  "address_line1": "<string>",
  "address_line2": {},
  "city": "<string>",
  "state": {},
  "postal_code": "<string>",
  "country": "<string>",
  "contact_id": {},
  "comment": {},
  "id_crm": {},
  "id_erp": {},
  "id_accounting": {}
}
'
{
  "success": true,
  "data": {
    "id": "770e8400-e29b-41d4-a716-446655440002",
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "type": "billing",
    "name": "Nouveau siège",
    "address_line1": "42 Avenue des Champs-Élysées",
    "address_line2": null,
    "city": "Paris",
    "state": null,
    "postal_code": "75008",
    "country": "FR",
    "contact_id": null,
    "comment": null,
    "id_crm": null,
    "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 address to update

Request Body

All fields are optional. Only the fields provided will be updated.
type
string
Address type. Allowed values: "billing", "shipping"
name
string | null
Address label. Set to null to unset.
address_line1
string
Street address
address_line2
string | null
Secondary address line. Set to null to unset.
city
string
City
state
string | null
State or region. Set to null to unset.
postal_code
string
Postal/ZIP code
country
string
Country code (ISO 3166-1 alpha-2)
contact_id
string | null
UUID of the associated contact. Set to null to unset.
comment
string | null
Internal comment. Set to null to unset.
id_crm
string | null
External CRM ID
id_erp
string | null
External ERP ID
id_accounting
string | null
External accounting ID
customer_id cannot be changed after creation.

Examples

curl -X PATCH https://qwoty.app/api/addresses/770e8400-e29b-41d4-a716-446655440002 \
  -H "Authorization: Bearer qwoty_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Nouveau siège",
    "address_line1": "42 Avenue des Champs-Élysées",
    "city": "Paris",
    "postal_code": "75008",
    "country": "FR"
  }'

Response

success
boolean
true if the update succeeded
data
object
The updated address object (same shape as Get Address)
{
  "success": true,
  "data": {
    "id": "770e8400-e29b-41d4-a716-446655440002",
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "type": "billing",
    "name": "Nouveau siège",
    "address_line1": "42 Avenue des Champs-Élysées",
    "address_line2": null,
    "city": "Paris",
    "state": null,
    "postal_code": "75008",
    "country": "FR",
    "contact_id": null,
    "comment": null,
    "id_crm": null,
    "id_erp": null,
    "id_accounting": null,
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-03-24T14:00:00Z"
  }
}