### Get Administrative Sources (PHP Example) Source: https://apiv3get.domus.la/docs/3.0/administrativo/procedencias-cambio-estado Example of how to use Guzzle HTTP Client in PHP to make a GET request to the /administrative/sources endpoint. It includes setting the Authorization header and decoding the JSON response. ```PHP use GuzzleHttp\Client; $client = new Client(); $res = $client->request("GET", "{$endpoint}/administrative/sources", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### PHP Guzzle HTTP Client Example Source: https://apiv3get.domus.la/docs/3.0/inmuebles/publicaciones-en-portales Demonstrates how to use the Guzzle HTTP client in PHP to make a GET request to the Domus API for property portal publications. ```PHP use GuzzleHttp\Client; $client = new Client(); $res = $client->request("GET", "{$endpoint}/properties/portals/1234/4567", [ "headers" => [ "Authorization" => "TOKEN_INGRESO", "inmobiliaria" => 1 ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Domus API v3.0 - PHP Guzzle HTTP Client Example Source: https://apiv3get.domus.la/docs/3.0/proyectos-v2/lista Demonstrates how to use the Guzzle HTTP client in PHP to make a GET request to the Domus API v3.0 for listing projects. It includes setting authorization headers and processing the JSON response. ```PHP use GuzzleHttp\Client; $client = new Client(); $endpoint = "YOUR_API_ENDPOINT"; // Replace with actual endpoint $res = $client->request("GET", "{$endpoint}/projects-v2", [ "headers" => [ "Authorization" => "TOKEN_INGRESO", "perpage" => 12 ] ]); $proyectos = json_decode($res->getBody(), true); return $proyectos; ``` -------------------------------- ### Domus API v3.0 - Example JSON Response for Projects Source: https://apiv3get.domus.la/docs/3.0/proyectos-v2/lista An example of the JSON response structure received from the Domus API v3.0 when requesting a list of projects. It shows the pagination details and the structure of individual project data. ```JSON { "code": 200, "message": "Projects retrieved successfully", "total": 1, "per_page": 12, "current_page": 1, "last_page": 1, "from": 1, "to": 1, "data": [ { "unique_code": 1, "code": 123, "name": "Título del proyecto", "slogan": "Proyecto", "city_code": 76001, "city_name": "Cali ", "neighborhood": "Barrio", "address": "Dirección", "stratum": 3, "latitude": "1.234546789", "longitude": "-1.234546789", "min_price": 120000, "max_price": 200000, "min_area": 56, "max_area": 82, "description": "Descripción del proyecto", "featured": 0, "status": 1, "branch_office_code": 1, "branch_office_name": "Prueba", "real_state_code": 10, "real_state_name": "Inmobiliaria_ejemplo", "real_state_logo": "logo.png", "pictures": [ { "unique_code": 1, "order": 1, "url": "picture.png", "thumb_url": "picture.jpg" } ] } ] } ``` -------------------------------- ### Fetch Zones using Guzzle HTTP Client Source: https://apiv3get.domus.la/docs/3.0/busqueda/zonas Example of how to use the Guzzle HTTP client in PHP to make a GET request to the `/search/zones` endpoint, including necessary authorization and inmobiliaria headers. ```PHP use GuzzleHttp\Client; // Assuming $endpoint is defined elsewhere, e.g., "https://api.domus.la/v3" // Assuming TOKEN_INGRESO is your valid API token $client = new Client(); $res = $client->request("GET", "{$endpoint}/search/zones", [ "headers" => [ "Authorization" => "TOKEN_INGRESO", "inmobiliaria" => 1, ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### List Properties on Map - PHP Usage Example Source: https://apiv3get.domus.la/docs/3.0/inmuebles/lista-mapa Example demonstrating how to fetch property data for map display using the Guzzle HTTP client in PHP. It shows how to set the necessary headers for authentication and pagination. ```php use GuzzleHttp\Client; // Assuming $endpoint is defined elsewhere, e.g., "https://apiv3get.domus.la" // Assuming TOKEN_INGRESO and the inmobiliaria ID are available $client = new Client(); $res = $client->request("GET", "{$endpoint}/properties/map", [ "headers" => [ "Authorization" => "TOKEN_INGRESO", "inmobiliaria" => 1, "perpage" => 12 ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### PHP Guzzle Example for Domus API Source: https://apiv3get.domus.la/docs/3.0/overview Demonstrates how to consume the Domus API using the Guzzle HTTP client in PHP. This example shows a basic structure for making requests, which can be adapted for any of the API endpoints. ```PHP 'https://apiv3get.domus.la', // You can set any default request options here 'timeout' => 5.0, ]); try { // Example: Fetching a list of properties // Replace with actual endpoint and parameters as per API documentation $response = $client->request('GET', '/docs/3.0/inmuebles/lista', [ // 'query' => [ // 'param1' => 'value1' // ] ]); $body = $response->getBody(); $data = json_decode($body, true); // Process the data print_r($data); } catch ( GuzzleHttp\Exception\ClientException $e { echo 'Client error: ' . $e->getMessage(); } catch ( GuzzleHttp\Exception\ServerException $e { echo 'Server error: ' . $e->getMessage(); } catch ( GuzzleHttp\Exception\RequestException $e { echo 'Request error: ' . $e->getMessage(); } ?> ``` -------------------------------- ### PHP Example for Fetching Document Types Source: https://apiv3get.domus.la/docs/3.0/administrativo/tipos_documento Example of how to use the Guzzle HTTP client in PHP to call the Domus API v3.0 endpoint for document types, including setting the authorization header. ```PHP use GuzzleHttp\Client; // Assume $endpoint is defined, e.g., "https://api.domus.la/v3" // Assume TOKEN_INGRESO is your valid authorization token $client = new Client(); $res = $client->request("GET", "{$endpoint}/administrative/document_types", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Domus API v3.0: Get Projects List Source: https://apiv3get.domus.la/docs/3.0/generales/destinos Retrieves a list of real estate projects. ```APIDOC GET /proyectos/lista Description: Retrieves a list of projects. Headers: Authorization: Token for authentication and identifying the real estate agency. (Required) Example: "Authorization" => "TOKEN_INGRESO" Example Usage (PHP): ```php use GuzzleHttpClient; $client = new Client(); $endpoint = "YOUR_API_ENDPOINT"; // Replace with actual endpoint $res = $client->request("GET", "{$endpoint}/proyectos/lista", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $projects = json_decode($res->getBody(), true); return $projects; ``` ``` -------------------------------- ### Domus API v3.0: Get Project Detail Source: https://apiv3get.domus.la/docs/3.0/generales/destinos Retrieves detailed information for a specific real estate project. ```APIDOC GET /proyectos/detalle Description: Retrieves detailed information for a project. Headers: Authorization: Token for authentication and identifying the real estate agency. (Required) Example: "Authorization" => "TOKEN_INGRESO" Example Usage (PHP): ```php use GuzzleHttpClient; $client = new Client(); $endpoint = "YOUR_API_ENDPOINT"; // Replace with actual endpoint $res = $client->request("GET", "{$endpoint}/proyectos/detalle", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $projectDetail = json_decode($res->getBody(), true); return $projectDetail; ``` ``` -------------------------------- ### PHP Guzzle Example: Create Advisor Source: https://apiv3get.domus.la/docs/3.0/administrativo/crear-asesores Demonstrates how to use the Guzzle HTTP client in PHP to send a POST request to the Domus API for creating an advisor. It includes setting headers and form parameters. ```PHP use GuzzleHttp\Client; // Assume $endpoint is defined, e.g., "https://api.domus.la/v3" // Assume TOKEN_INGRESO is your valid authorization token $client = new Client(); $res = $client->request("POST", "{$endpoint}/administrative/brokers", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ], "form_params" => [ "name" => "Nombre del asesor", "last_name" => "Apellido del asesor", "document" => 123 ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Domus API v3.0 - Projects V2 List Endpoint Source: https://apiv3get.domus.la/docs/3.0/proyectos-v2/lista Documentation for retrieving a list of projects using the Domus API v3.0. This entry details the HTTP method, endpoint, required headers, and provides a PHP example using Guzzle HTTP client. ```APIDOC Endpoint: /projects-v2 Method: GET Description: Retrieves a list of projects from Domus V2. Headers: - Authorization: TOKEN_INGRESO (Authentication token) - perpage: Integer (Number of items per page, e.g., 12) Parameters: - No query parameters are explicitly mentioned for the list endpoint in this documentation. Response: Returns a JSON object containing project data, pagination information, and status codes. Example Usage (PHP): ```php use GuzzleHttp\Client; $client = new Client(); $endpoint = "YOUR_API_ENDPOINT"; // Replace with actual endpoint $res = $client->request("GET", "{$endpoint}/projects-v2", [ "headers" => [ "Authorization" => "TOKEN_INGRESO", "perpage" => 12 ] ]); $proyectos = json_decode($res->getBody(), true); return $proyectos; ``` Example Response Structure: ```json { "code": 200, "message": "Projects retrieved successfully", "total": 1, "per_page": 12, "current_page": 1, "last_page": 1, "from": 1, "to": 1, "data": [ { "unique_code": 1, "code": 123, "name": "Título del proyecto", "slogan": "Proyecto", "city_code": 76001, "city_name": "Cali ", "neighborhood": "Barrio", "address": "Dirección", "stratum": 3, "latitude": "1.234546789", "longitude": "-1.234546789", "min_price": 120000, "max_price": 200000, "min_area": 56, "max_area": 82, "description": "Descripción del proyecto", "featured": 0, "status": 1, "branch_office_code": 1, "branch_office_name": "Prueba", "real_state_code": 10, "real_state_name": "Inmobiliaria_ejemplo", "real_state_logo": "logo.png", "pictures": [ { "unique_code": 1, "order": 1, "url": "picture.png", "thumb_url": "picture.jpg" } ] } ] } ``` Related Endpoints: - /projects-v2/detalle (for project details) ``` -------------------------------- ### Fetch Amenities using Guzzle Source: https://apiv3get.domus.la/docs/3.0/generales/caracteristicas Example of how to fetch property amenities from the Domus API using the Guzzle HTTP client in PHP. It demonstrates making a GET request with an authorization header and processing the JSON response. ```php use GuzzleHttp\Client; // Assuming $endpoint is defined elsewhere, e.g., "https://apiv3get.domus.la" // Assuming "TOKEN_INGRESO" is your valid authorization token $client = new Client(); $res = $client->request("GET", "{$endpoint}/general/amenities", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Fetch Owner Detail using Guzzle (PHP) Source: https://apiv3get.domus.la/docs/3.0/propietarios/detalle Example of how to use the Guzzle HTTP client in PHP to fetch detailed owner information from the Domus API. It demonstrates making a GET request with an authorization header and processing the JSON response. ```PHP use GuzzleHttp\Client; $client = new Client(); $res = $client->request("GET", "{$endpoint}/owners/123456789", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Fetch Domus API Status with Guzzle (PHP) Source: https://apiv3get.domus.la/docs/3.0/generales/estados Example of using the Guzzle HTTP client in PHP to make a GET request to the Domus API's /general/status endpoint. It demonstrates setting the Authorization header and processing the JSON response. ```PHP use GuzzleHttp\Client; // Assuming $endpoint is defined, e.g., "https://api.domus.la/v3" // Assuming TOKEN_INGRESO is your valid API token $client = new Client(); $res = $client->request("GET", "{$endpoint}/general/status", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Separar Inmueble Response Example Source: https://apiv3get.domus.la/docs/3.0/inmuebles/separar Example JSON response received from the Domus API after successfully separating a property. It includes a status code, a message, and a data object with details of the separation. ```JSON { "code": 200, "message": "Separación de inmueble hecha existosamente", "data": { "code": 1234, "property_code": 123456, "status": "Separado", "comment": "Comentario", "value": "12000", "active": 1 } } ``` -------------------------------- ### PHP Guzzle: Fetch Advisors Source: https://apiv3get.domus.la/docs/3.0/administrativo/asesores Example demonstrating how to use the Guzzle HTTP client in PHP to fetch the list of advisors from the Domus API. It includes setting the authorization token and processing the JSON response. ```PHP use GuzzleHttp\Client; $client = new Client(); $endpoint = "https://apiv3get.domus.la"; // Replace with your actual endpoint $res = $client->request("GET", "{$endpoint}/administrative/brokers", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" // Replace with your actual token ] ]); $properties = json_decode($res->getBody(), true); return $properties; ``` -------------------------------- ### Property Data Response Example Source: https://apiv3get.domus.la/docs/3.0/inmuebles/detalle This snippet shows a typical JSON response structure when querying for property data from the Domus.la API. It includes detailed information about the property, its location, pricing, associated brokers, and images. ```json { "data": { "idpro": 123456, "codpro": 123, "address": "Address", "address_alt": "Inmobiliaria ejemplo", "city": "CIUDAD", "city_code": 1, "estate": "ESTADO/DEPARTAMENTO", "zone": "ZONA", "zone_code": 1, "city_zone": "ZONA POR CIUDAD (pronto será reemplazado por city_zone)", "city_zone_code": 1, "neighborhood": "NOMBRE DEL BARRIO", "neighborhood_code": 1, "type": "TIPO DE INMUEBLE", "type_code": 1, "biz": "GESTION", "biz_code": 1, "area_cons": 1, "area_lot": 0, "private_area": 0, "floor_type": "", "floor": "1", "bedrooms": 0, "bathrooms": 1, "stratum": 1, "price": "30000000", "price_format": "30.000.000", "rent": 30000000, "saleprice": 0, "administration": 0, "description": "Descripción de prueba", "english_description": "", "desc_eng": "", "desc_fre": "", "resctrictions": "", "comment": "", "comment2": "", "video": "", "parking": 0, "parking_covered": 0, "consignation_date": "2016-08-10", "registry_date": "2016-08-30 15:36:42", "latitude": "4.71", "longitude": "-74.05", "status": 1, "status_name": "DISPONIBILIDAD", "build_year": 2011, "great": "of", "building_unit": "", "branch": 1, "real_state": 1, "real_state_name": "Inmobiliaria ejemplo", "window_sign": 0, "front": 0, "rear": 0, "proyect_id": 0, "destination": 1, "destination_name": "DESTINO DEL INMUEBLE", "commission_percentage": 0, "matricula_number": "", "visits": 1, "detached_count": 0, "iva": 0, "price_iva": 0, "tour3d": null, "broker": [ { "code": 1, "name": "NOMBRE", "last_name": "APELLIDOS", "telephone": "123456", "movil_phone": "1234567891", "email": "[email protected]", "picture": "http://pictures.domus.la/perfiles/inmobiliaria_id/imagen.png", "status": 1, "department": "" } ], "brokers":[ { "name": "NOMBRE Y APELLIDOS", "type_id": 1, "type": "Agente Promotor" } ], "branch_office":[ { "name": "Inmobiliaria ejemplo", "address": "Dirección de ejemplo", "phone": "PBX 123456", "neighborhood": "Barrio de ejemplo" } ], "real_state_information":{ "code": 1, "name": "Inmobiliaria ejemplo", "slogan": "VENTA PROPIEDADES", "logo_url": "logo_png", "phone": "12345667 - 1231231", "email": "[email protected]", "webpage_url": "http://inmobiliariaprueba.com" }, "asesor": 1, "images": [ { "imageurl": "http://pictures.domus.la/inmobiliaria_id/imagen.jpg", "thumburl": "http://pictures.domus.la/inmobiliaria_id/imagen_min.jpg" } ], "images360":[], "amenities": [ { "id": 1, "name": "Característica de prueba", "type": 1 } ], "tags": [ { "code": 1, "name": "Disponible", "text_color": "white", "background_color": "black" } ] } } ``` -------------------------------- ### Domus API v3.0: Create Property Source: https://apiv3get.domus.la/docs/3.0/generales/destinos Allows for the creation of new property listings within the Domus system. ```APIDOC POST /inmuebles/creacion Description: Creates a new property listing. Headers: Authorization: Token for authentication and identifying the real estate agency. (Required) Example: "Authorization" => "TOKEN_INGRESO" Request Body: (Details of property data to be sent, e.g., JSON payload with address, price, features, etc.) Example Usage (PHP): ```php use GuzzleHttpClient; $client = new Client(); $endpoint = "YOUR_API_ENDPOINT"; // Replace with actual endpoint $propertyData = [ "address" => "123 Main St", "price" => 150000, "bedrooms" => 3 // ... other property details ]; $res = $client->request("POST", "{$endpoint}/inmuebles/creacion", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ], "json" => $propertyData ]); $creationResult = json_decode($res->getBody(), true); return $creationResult; ``` ``` -------------------------------- ### Get Domus LA API v3 Query Parameters Source: https://apiv3get.domus.la/docs/3.0/inmuebles/creacion This section details the query parameters for the Get Domus LA API v3. It covers essential fields for property identification, valuation, tax information, media links, and address components. Some parameters are conditional or have specific limits. ```APIDOC API Query Parameters for Get Domus LA v3: reference: Description: Unique identifier for the reference. Example: &reference=39ol rental_premise_value: Description: The rental value of the premise. Example: &rental_premise_value=300000 iva: Description: The IVA (VAT) percentage for the property. Example: &iva=19 image_#: Description: Link to an image of the property and its order. Supports up to 30 images. Example: &image_20=https://... image360_#: Description: Link to a 360-degree image of the property and its order. Supports up to 30 images. Example: &image360_20=https://... *complete_address*: Description: Required if the 'address' field is not provided. Indicates that the complete address details will be sent. Example: &complete_address=1 dir_1 - 10: Description: Fields for the complete address, numbered from 1 to 10. Requires further information for specific field details. Example: &dir_1=1 ``` -------------------------------- ### APIDOC: Create Advisor Endpoint Source: https://apiv3get.domus.la/docs/3.0/administrativo/crear-asesores Details the POST endpoint for creating new advisor profiles within the Domus system. It specifies required headers, form parameters, and the structure of the successful response. ```APIDOC POST /administrative/brokers Description: Creates a new advisor profile in the system via API. Parameters: Headers: Authorization: Token for API access and real estate identification (required). Example: "Authorization" => "TOKEN_INGRESO" Form Parameters: name: The first name of the advisor (string). last_name: The last name of the advisor (string). document: The advisor's identification number (number). Response (Success): Status Code: 200 OK Body: { "code": 200, "message": "The broker was created successfully", "broker": { "code": 123, "name": "Nombre", "last_name": "Apellido", "document": 12345789 } } Notes: Send parameters via form_params. Do not send parameters in the URL unless it's a query method. ``` -------------------------------- ### API v3 Get Domus LA Form Parameters Source: https://apiv3get.domus.la/docs/3.0/inmuebles/actualizacion This section details the form parameters used for querying properties via the API v3 Get Domus LA. It covers various attributes of a property, including its location, size, pricing, features, and associated media. Some parameters are conditionally mandatory based on the property type or business intent. ```APIDOC API v3 Get Domus LA Form Parameters: Parameters: city: [Ciudad](/docs/3.0/generales/ciudades) of the property. Example: &city=11001 address: Property address. Example: &address=25 latitude: Latitude. Example: &latitude=123456789 longitude: Longitude. Example: &longitude=123456789 zone: [Zone](/docs/3.0/generales/zonas) of the property. Example: &zone=3 city_zone: [City Zone](/docs/3.0/generales/zonas-ciudad) of the property. Example: &city_zone=3 biz: [Business Type](/docs/3.0/generales/gestiones) of the property. Example: &biz=2 stratum: Property stratum. Example: &stratum=4 type: [Property Type](/docs/3.0/generales/tipos_inmueble). Example: &type=5 neighborhood: Property neighborhood. Example: &neighborhood=colina neighborhood_code: [Neighborhood ID](/docs/3.0/generales/barrios). Example: &neighborhood_code=4751 area_cons: Built area of the property in m² (mandatory for certain property types). Example: &area_cons=60 area_lot: Lot area in m² (mandatory for certain property types). Example: &area_lot=80 private_area: Private area in m². Example: &private_area=80.2 floor_type: Floor type. Example: &floor_type=ceramica level: Floor or level of the property in a building. Example: &level=2 building_unit: Building unit. Example: &building_unit=2 window_sign: Window sign present? Example: &window_sign=1 front: Frontage. Example: &front=1 rear: Depth. Example: &rear=1 bedrooms: Bedrooms (mandatory for certain property types). Example: &bedrooms=4 bathrooms: Bathrooms (mandatory for certain property types). Example: &bathrooms=4 parking: Number of parking spaces. Example: &parking=4 parking_covered: Number of covered parking spaces. Example: &parking_covered=4 rent: Rental price (mandatory if 'biz' is 1 or 3). Example: &rent=1200000 saleprice: Sale price (mandatory if 'biz' is 2 or 3). Example: &saleprice=1200000 administration: Administration fee. Example: &administration=250000 description: Property description. Example: &description=remodelado english_description: Property description in English. Example: &english_description=this is a description french_description: Property description in French. Example: &french_description=la description descripcionmetrocuadrado: Property description for square meter. Example: &descripcionmetrocuadrado=descripción... description_mls: Property description for real estate groups. Example: &description_mls=descripción... description_portals: Property description for real estate portals. Example: &description_portals=descripción... restrictions: Property restrictions. Example: &restrictions=no se admiten perros comment: Property comment. Example: &comment=Comentario comment2: Property comment 2. Example: &comment2=Comentario video: Property video link. Example: &video=https://... tour3d: Property 3D/360 tour link. Example: &tour3d=https://... built_year: Year of construction. Example: &built_year=1998 remodeling_year: Year of remodeling. Example: &remodeling_year=1998 great: Is the property featured? Example: &great=1 exclusive: Is the property exclusive? Example: &exclusive=1 destination: [Destination](/docs/3.0/generales/destinos) of the property. Example: &destination=2 broker: [Agent](/docs/3.0/administrativo/asesores) assigned to the property. Example: &broker=1256 promoter_broker: Promoting [Agent](/docs/3.0/administrativo/asesores) for the property (defaults to 'broker' if not sent). Example: &promoter_broker=1256 catcher_broker: Capturing [Agent](/docs/3.0/administrativo/asesores) for the property (defaults to 'broker' if not sent). Example: &catcher_broker=1256 branch: [Branch](/docs/3.0/administrativo/sucursales). Example: &branch=601 amenities: Property [Features](/docs/3.0/generales/caracteristicas). Example: &amenities=24,87,63 publication_date: Publication date. Example: &publication_date=2020-03-30 11:10:00 update_date: Update date. Example: &update_date=2020-03-30 11:10:00 consignation_date: Consignation date. Example: &consignation_date=2020-03-30 11:10:00 registry_date: Registry date. Example: ®istry_date=2020-03-30 11:10:00 comission_percentage: Commission percentage. Example: &comission_percentage=3 registration: Registration number. Example: ®istration=39ol reference: Reference. Example: &reference=39ol rental_premise_value: Rental value for premises. Example: &rental_premise_value=300000 iva: Property VAT percentage. Example: &iva=19 image_#: Image link and order for the property (up to 30). Example: &image_20=https://... image_delete_#: Image to delete. Example: &image_delete_20=1 image360_#: 360 image link and order for the property (up to 30). Example: &image360_20=https://... image360_delete_#: 360 image to delete. Example: &image360_delete_20=1 delete_pictures: Delete all images. Example: &delete_pictures=1 ``` -------------------------------- ### Domus API v3.0: Get Branches Source: https://apiv3get.domus.la/docs/3.0/generales/destinos Retrieves a list of company branches or offices. ```APIDOC GET /administrativo/sucursales Description: Retrieves a list of branches. Headers: Authorization: Token for authentication and identifying the real estate agency. (Required) Example: "Authorization" => "TOKEN_INGRESO" Example Usage (PHP): ```php use GuzzleHttpClient; $client = new Client(); $endpoint = "YOUR_API_ENDPOINT"; // Replace with actual endpoint $res = $client->request("GET", "{$endpoint}/administrativo/sucursales", [ "headers" => [ "Authorization" => "TOKEN_INGRESO" ] ]); $branches = json_decode($res->getBody(), true); return $branches; ``` ```