Businesses
A business is a tenant inside Lazy: one of your customers, with its own documents, transactions, settings and usage. Core concepts explains how businesses fit with your platform.
Objects
Section titled “Objects”- Business object: a business’s IDs, name and creation time.
- Tax info object: what Lazy knows about the business’s taxes.
Endpoints
Section titled “Endpoints”| Endpoint | Request |
|---|---|
| Create a business | POST /v1/businesses |
| List businesses | GET /v1/businesses |
| Get a business | GET /v1/businesses/{biz_id} |
| Update a business | PATCH /v1/businesses/{biz_id} |
| Delete a business | DELETE /v1/businesses/{biz_id} |
| Get tax info | GET /v1/businesses/{biz_id}/tax-info |
| Update tax info | PATCH /v1/businesses/{biz_id}/tax-info |
A typical flow
Section titled “A typical flow”- When a customer signs up on your platform, create a business
with your customer ID as
external_id, and store the returnedbiz_id. - Update its tax info with what you know about the customer.
- When the customer leaves your platform, delete the business.