BranchGeofence


Representa a una Geocerca de un Comercio. Si no se especifica branch_id, entonces la Geocerca es global para la Company. La Geocerca define un área segura para realizar pedidos. Cualquier pedido que esté fuera de las geocercas será rechazado automáticamente.

Modelo BranchGeofence

{
    "id": 1,
    "name": "GeoFence 01",
    "type": "polygon",
    "data": {
        "shape": "polygon",
        "coordinates": [
            [
                -66.885607,
                10.513241
            ],
            [
                -66.881573,
                10.512503
            ],
            [
                -66.875801,
                10.512914
            ],
            [
                -66.868462,
                10.512587
            ],
            [
                -66.868344,
                10.512518
            ],
            [
                -66.869844,
                10.510287
            ],
            [
                -66.871076,
                10.508528
            ],
            [
                -66.870727,
                10.508013
            ],
            [
                -66.871214,
                10.507972
            ],
            [
                -66.872411,
                10.50438
            ],
            [
                -66.872711,
                10.5017
            ],
            [
                -66.871381,
                10.501785
            ],
            [
                -66.870115,
                10.501722
            ],
            [
                -66.865995,
                10.496194
            ],
            [
                -66.865909,
                10.494759
            ],
            [
                -66.887911,
                10.500657
            ]
        ]
    },
    "enabled": true,
    "inverted": false,
    "created_at": "2020-08-09 18:22:27",
    "updated_at": "2020-08-09 18:22:27",
    "branch_id": null
}

Insertar BranchGeofence

Método URI Cabeceras
POST /companies/{companyId}/branch-geofences Authorization
{
    "name": "string|max:64",
    "type": "required|string|in:circle,polygon,multi_polygon",
    "data": "required|array",
    "enabled": "boolean",
    "inverted": "boolean",
    "format": "string|in:flat_lon_lat_e6,flat_lat_lon_e6,flat_lon_lat,flat_lat_lon,point_lon_lat_e6,point_lat_lon_e6,point_lon_lat,point_lat_lon"
}

Insertar BranchGeofence de Branch

Método URI Cabeceras
POST /companies/{companyId}/branches/{branchId}/branch-geofences Authorization
{
    "name": "string|max:64",
    "type": "required|string|in:circle,polygon,multi_polygon",
    "data": "required|array",
    "enabled": "boolean",
    "inverted": "boolean",
    "format": "string|in:flat_lon_lat_e6,flat_lat_lon_e6,flat_lon_lat,flat_lat_lon,point_lon_lat_e6,point_lat_lon_e6,point_lon_lat,point_lat_lon"
}

Listar BranchGeofence

Listar BranchGeofence de Branch

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/branch-geofences Authorization

Mostrar BranchGeofence

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branch-geofences/{branchGeofenceId} Authorization

Actualizar BranchGeofence

Método URI Cabeceras
PATCH /companies/{companyId}/branch-geofences/{branchGeofenceId} Authorization
{
    "name": "string|max:64",
    "type": "string|in:circle,polygon,multi_polygon",
    "data": "required_with:type|array",
    "enabled": "boolean",
    "inverted": "boolean",
    "format": "string|in:flat_lon_lat_e6,flat_lat_lon_e6,flat_lon_lat,flat_lat_lon,point_lon_lat_e6,point_lat_lon_e6,point_lon_lat,point_lat_lon"
}

Eliminar BranchGeofence

Método URI Cabeceras
DELETE /companies/{companyId}/branch-geofences/{branchGeofenceId} Authorization

Acciones de BranchGeofence

Check

Método URI Cabeceras
GET /companies/{companyId}/branch-geofences/check Authorization
{
    "latitude_e6": "required|integer",
    "longitude_e6": "required|integer"
}

Check

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/branch-geofences/check Authorization
{
    "latitude_e6": "required|integer",
    "longitude_e6": "required|integer"
}

Index For Company

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branch-geofences Authorization

Replace

Método URI Cabeceras
POST /companies/{companyId}/branch-geofences/replace-from-json Authorization

Replace

Método URI Cabeceras
POST /companies/{companyId}/branches/{branchId}/branch-geofences/replace-from-json Authorization

Enlaces de BranchGeofence