cURL
curl --request PUT \ --url https://api.example.com/organizations/{id}/legal \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "legal_name": "<string>", "tax_system": "<string>", "website": "<string>", "support_email": "<string>", "phone": "<string>", "address": { "street": "<string>", "exterior": 123, "interior": 123, "neighborhood": "<string>", "city": "<string>", "municipality": "<string>", "zip": 123, "state": "<string>" } } '
{ "200": {}, "400": {}, "401": {}, "403": {}, "404": {}, "id": "<string>", "name": "<string>", "razonSocial": "<string>", "regimenFiscalId": "<string>", "website": "<string>", "phone": "<string>", "selfInvoiceSupportEmail": "<string>", "addressStreet": "<string>", "addressExterior": "<string>", "addressInterior": "<string>", "addressNeighborhood": "<string>", "addressCity": "<string>", "addressMunicipality": "<string>", "addressZip": "<string>", "addressState": "<string>", "updatedAt": "<string>" }
Update the legal and fiscal information of an organization
Show address properties
curl -X PUT "https://api.timbrix.com/organizations/550e8400-e29b-41d4-a716-446655440000/legal" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Mi Empresa", "legal_name": "Mi Empresa S.A. de C.V.", "tax_system": "601", "website": "https://miempresa.com", "support_email": "soporte@miempresa.com", "phone": "+52 644 123 4567", "address": { "street": "Blvd. Atardecer", "exterior": 142, "interior": 4, "neighborhood": "Centro", "city": "Huatabampo", "municipality": "Huatabampo", "zip": 86500, "state": "Sonora" } }'
tax_system