/companies


GET https://api.abitmedia.app/administration/v1/companies

Listado de compañías

Autorizaciones

bearer: {accessToken}

Ejemplos de código

JavaScript PHP Rails
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "https://api.abitmedia.app/administration/v1/companies", false);

// Make sure you set the appropriate headers
xmlHttp.setRequestHeader("Header Key", "Header Value");

xmlHttp.send(null);

var response = xmlHttp.responseText;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.abitmedia.app/administration/v1/companies");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// Make sure you set the nessary headers as a $headers array
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
uri = URI.parse("https://api.abitmedia.app/administration/v1/companies")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)

# Make sure you set the appropriate headers
request["header"] = "header value"

response = http.request(request)

Respuesta

200:

application/json
{
  "success": true,
  "status": 200,
  "message": "Listado de empresas",
  "data":
    [
      {
        "businessType": "services",
        "identification": "9999999999001",
        "tradeName": "Quantum Solutions",
        "slug": "quantum-solutions",
        "legalName": "Quantum Solutions International S.A.",
        "logo": "https://abitmediacompanydocs.s3.us-east-2.amazonaws.com/9999999999001.png",
        "countryId": 1,
        "stateId": 1,
        "cityId": 1,
        "address": "1234 Innovation Drive, Suite 500, Technopolis, TX, 75001",
        "email": "[email protected]",
        "webPage": "www.quantumsolutions.com",
        "phoneNumber": "+593922222222",
        "status": 1,
        "timeZoneId": 1,
        "economicActivityId": 1,
        "latitude": 0.00000001,
        "longitude": 0.00000001,
        "observations": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod",
        "sellerId": 1,
        "isReseller": false,
        "createdAt": "2024-01-01 17:50:01",
        "updateAt": "2024-01-01 17:50:01"
      }
    ]
}

 

Otras acciones de endpoint

POST PUT DELETE