API — Tenants — admin
Documentacao tecnica gerada automaticamente a partir da especificacao OpenAPI.
GET /api/tenants/current
Get Current Tenant Details
Exemplo resposta (200):
{
"id": 0,
"slug": "string",
"name": "string",
"business_name": null,
"domain": null,
"custom_domain": null,
"domain_type": null,
"domain_status": null,
"is_active": true,
"is_demo": true,
"config": null,
"trial_ends_at": null,
"stripe_customer_id": null,
"stripe_subscription_id": null,
"stripe_connect_account_id": null,
"subscription_status": "string",
"plan": "string",
"template_id": null,
"branding_primary_color": null,
"branding_secondary_color": null,
"branding_accent_color": null,
"branding_logo_url": null,
"branding_banner_url": null,
"branding_hero_url": null,
"branding_tagline": null,
"branding_about_text": null,
"branding_cta_text": null,
"branding_show_categories": true,
"branding_show_featured": true,
"branding_social_instagram": null,
"branding_social_facebook": null,
"branding_social_whatsapp": null,
"branding_social_tiktok": null,
"phone": null,
"email": null,
"city": null,
"address": null,
"website_url": null,
"business_type": null,
"timezone": null,
"default_currency": "string",
"default_language": "string",
"tax_included_in_prices": true,
"moloni_token": null,
"moloni_company_id": null,
"created_at": null,
"updated_at": null
}
PUT /api/tenants/current
Update Current Tenant
Corpo do pedido:
| Campo | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| name | object | Nao | Name |
| business_name | object | Nao | Business Name |
| phone | object | Nao | Phone |
| object | Nao | ||
| city | object | Nao | City |
| address | object | Nao | Address |
| website_url | object | Nao | Website Url |
| business_type | object | Nao | Business Type |
| timezone | object | Nao | Timezone |
| default_currency | object | Nao | Default Currency |
| default_language | object | Nao | Default Language |
| tax_included_in_prices | object | Nao | Tax Included In Prices |
| branding_primary_color | object | Nao | Branding Primary Color |
| branding_secondary_color | object | Nao | Branding Secondary Color |
| branding_accent_color | object | Nao | Branding Accent Color |
| branding_logo_url | object | Nao | Branding Logo Url |
| branding_banner_url | object | Nao | Branding Banner Url |
| branding_hero_url | object | Nao | Branding Hero Url |
| branding_tagline | object | Nao | Branding Tagline |
| branding_about_text | object | Nao | Branding About Text |
| branding_cta_text | object | Nao | Branding Cta Text |
| branding_show_categories | object | Nao | Branding Show Categories |
| branding_show_featured | object | Nao | Branding Show Featured |
| branding_social_instagram | object | Nao | Branding Social Instagram |
| branding_social_facebook | object | Nao | Branding Social Facebook |
| branding_social_whatsapp | object | Nao | Branding Social Whatsapp |
| branding_social_tiktok | object | Nao | Branding Social Tiktok |
Exemplo pedido:
{
"name": null,
"business_name": null,
"phone": null,
"email": null,
"city": null,
"address": null,
"website_url": null,
"business_type": null,
"timezone": null,
"default_currency": null,
"default_language": null,
"tax_included_in_prices": null,
"branding_primary_color": null,
"branding_secondary_color": null,
"branding_accent_color": null,
"branding_logo_url": null,
"branding_banner_url": null,
"branding_hero_url": null,
"branding_tagline": null,
"branding_about_text": null,
"branding_cta_text": null,
"branding_show_categories": null,
"branding_show_featured": null,
"branding_social_instagram": null,
"branding_social_facebook": null,
"branding_social_whatsapp": null,
"branding_social_tiktok": null
}
Exemplo resposta (200):
{
"id": 0,
"slug": "string",
"name": "string",
"business_name": null,
"domain": null,
"custom_domain": null,
"domain_type": null,
"domain_status": null,
"is_active": true,
"is_demo": true,
"config": null,
"trial_ends_at": null,
"stripe_customer_id": null,
"stripe_subscription_id": null,
"stripe_connect_account_id": null,
"subscription_status": "string",
"plan": "string",
"template_id": null,
"branding_primary_color": null,
"branding_secondary_color": null,
"branding_accent_color": null,
"branding_logo_url": null,
"branding_banner_url": null,
"branding_hero_url": null,
"branding_tagline": null,
"branding_about_text": null,
"branding_cta_text": null,
"branding_show_categories": true,
"branding_show_featured": true,
"branding_social_instagram": null,
"branding_social_facebook": null,
"branding_social_whatsapp": null,
"branding_social_tiktok": null,
"phone": null,
"email": null,
"city": null,
"address": null,
"website_url": null,
"business_type": null,
"timezone": null,
"default_currency": "string",
"default_language": "string",
"tax_included_in_prices": true,
"moloni_token": null,
"moloni_company_id": null,
"created_at": null,
"updated_at": null
}
Erros possiveis: 422 Validation Error
PUT /api/tenants/current/branding
Update Current Tenant Branding
Corpo do pedido:
| Campo | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| branding_primary_color | object | Nao | Branding Primary Color |
| branding_secondary_color | object | Nao | Branding Secondary Color |
| branding_accent_color | object | Nao | Branding Accent Color |
| branding_logo_url | object | Nao | Branding Logo Url |
| branding_banner_url | object | Nao | Branding Banner Url |
| branding_hero_url | object | Nao | Branding Hero Url |
| branding_tagline | object | Nao | Branding Tagline |
| branding_about_text | object | Nao | Branding About Text |
| branding_cta_text | object | Nao | Branding Cta Text |
| branding_show_categories | object | Nao | Branding Show Categories |
| branding_show_featured | object | Nao | Branding Show Featured |
| branding_social_instagram | object | Nao | Branding Social Instagram |
| branding_social_facebook | object | Nao | Branding Social Facebook |
| branding_social_whatsapp | object | Nao | Branding Social Whatsapp |
| branding_social_tiktok | object | Nao | Branding Social Tiktok |
Exemplo pedido:
{
"branding_primary_color": null,
"branding_secondary_color": null,
"branding_accent_color": null,
"branding_logo_url": null,
"branding_banner_url": null,
"branding_hero_url": null,
"branding_tagline": null,
"branding_about_text": null,
"branding_cta_text": null,
"branding_show_categories": null,
"branding_show_featured": null,
"branding_social_instagram": null,
"branding_social_facebook": null,
"branding_social_whatsapp": null,
"branding_social_tiktok": null
}
Exemplo resposta (200):
{
"id": 0,
"slug": "string",
"name": "string",
"business_name": null,
"domain": null,
"custom_domain": null,
"domain_type": null,
"domain_status": null,
"is_active": true,
"is_demo": true,
"config": null,
"trial_ends_at": null,
"stripe_customer_id": null,
"stripe_subscription_id": null,
"stripe_connect_account_id": null,
"subscription_status": "string",
"plan": "string",
"template_id": null,
"branding_primary_color": null,
"branding_secondary_color": null,
"branding_accent_color": null,
"branding_logo_url": null,
"branding_banner_url": null,
"branding_hero_url": null,
"branding_tagline": null,
"branding_about_text": null,
"branding_cta_text": null,
"branding_show_categories": true,
"branding_show_featured": true,
"branding_social_instagram": null,
"branding_social_facebook": null,
"branding_social_whatsapp": null,
"branding_social_tiktok": null,
"phone": null,
"email": null,
"city": null,
"address": null,
"website_url": null,
"business_type": null,
"timezone": null,
"default_currency": "string",
"default_language": "string",
"tax_included_in_prices": true,
"moloni_token": null,
"moloni_company_id": null,
"created_at": null,
"updated_at": null
}
Erros possiveis: 422 Validation Error
Documentacao gerada automaticamente.