Skip to content

Update a business

View as Markdown

Changes a business’s name, its external_id, or both, and returns the updated Business object. A field you omit or send as null keeps its value. An empty body changes nothing and returns the business as it is.

The new external_id must be unique within your platform. When it is taken, nothing changes, not even the name sent in the same request.

PATCH https://embedded-api.lazyinvoice.co.il/v1/businesses/{biz_id}
Name Type Required Description
biz_id string Yes The Lazy ID of the business, returned when the business was created.

A JSON object with these fields.

Name Type Required Description
name string or null No The business’s display name. Leading and trailing spaces are removed. Omit or send null to keep it.
external_id string or null No Your own ID for the business, unique within your platform. Leading and trailing spaces are removed. Omit or send null to keep it.

The updated business. The body is a Business object.

Every error body is the error envelope. Any endpoint can also return 401, 429 and 500; Errors explains them.

Status Code, cause and what to do
400 validation_error: a body that is not valid JSON or not a JSON object, an empty, mistyped or unknown field, or an unknown query parameter. Fix the request; param names the field at fault when there is one.
404 not_found: no business with this biz_id belongs to your platform. Check the biz_id; a deleted business stays not found.
409 business_exists: another business of your platform already has this external_id; the error’s biz_id names it. Use that business, or choose another external_id.

Safe to retry. Sending the same values again changes nothing more.

None. The change is complete when the response arrives, and Lazy sends no webhook for it.

Added in: October 2026