v1

latestOpenAPI 3.0.32026-07-2410639570.9 KB
Loggro Sales Webhook - V1

Actualizar empresa y hotel

Webhook invocado por Loggro al modificar una suscripción existente. Actualiza los datos de la empresa y el hotel asociados al uuid del tenant.

patch/api/loggro/sales/{uuid}

Path parameters

uuidstring required
Example:920CC9F1C77FE3B2D2AC110013626300

UUID del tenant/hotel (hotels.uuid_tenant).

Request body

uuidMemberstring
uuidTenantstring
idstring
tipoDocumento'NIT' | 'CC'
digitoVerificacionstring
nombrestring
direccionstring
ciudadstring
indicativostring
telefonostring
emailstring email
userIdstring
userNamestring
userLastNamestring
app'alojamientos' | 'rentasCortas'
urlstring
tenantDatabaseSchemastring
jdbcUrlstring
estadoActivoboolean
permitidoboolean

Example request

{
  "uuidMember": "920CC9EEBFD79E1BFCAC1100136B956D",
  "uuidTenant": "920CC9F1C77FE3B2D2AC110013626300",
  "id": "3000300010",
  "tipoDocumento": "NIT",
  "digitoVerificacion": "4",
  "nombre": "Empresa Prueba Actualizada",
  "direccion": "Calle 78 Num 12-34",
  "ciudad": "05001",
  "indicativo": "577",
  "telefono": "3722000000",
  "email": "prueba@loggro.com",
  "userId": "3000400010",
  "userName": "Usuario",
  "userLastName": "Prueba",
  "app": "alojamientos",
  "url": "http://localhost:4300/api",
  "tenantDatabaseSchema": "ALODEV_1",
  "jdbcUrl": "jdbc:oracle:thin:@localhost:1521:XEPDB1",
  "estadoActivo": true,
  "plans": [
    {
      "appPlanCode": "ALOPREMIUM",
      "quantity": 1,
      "type": "PCK",
      "startDate": 1748736000000,
      "endDate": 1780272000000
    },
    {
      "appPlanCode": "HAB",
      "quantity": 20,
      "type": "LIC",
      "startDate": 1748736000000,
      "endDate": 1780272000000
    },
    {
      "appPlanCode": "FESIEMPRE",
      "quantity": 1,
      "type": "LIC",
      "startDate": 1748736000000,
      "endDate": 1780272000000
    }
  ],
  "addicionalData": {
    "mainCompany": {
      "tipoDocumento": "NIT",
      "id": "123456",
      "uuid": "920CC9EEBFD79E1BFCAC1100136B956D"
    },
    "pymesAccessToken": "token_here"
  }
}

Response

ok

Example response

{
  "data": {
    "type": "hotel",
    "id": 42,
    "attributes": {
      "id": 42,
      "name": "Hotel Prueba Actualizado",
      "uuidTenant": "920CC9F1C77FE3B2D2AC110013626300"
    }
  }
}