NAV
javascript

Introduction

Bienvenido a Anna API! Puedes usar esta API para acceder a los recursos API endpoints.

¡Tenemos enlace de idioma JavaScript! Puede ver ejemplos de código en el área oscura a la derecha.

Login de Admin

        
          
            {
              "email":"victor@anna.com.co",
              "password":"pruebaPass"
            }
          
        
      
        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI1ZjIwYWQyYmFiM2I3NTA2ZWJlNGEwOWEiLCJwcm9maWxlIjoiQURNSU4iLCJjcmVhdGUiOjE1OTYyOTUzNjYsImV4cGlyZSI6MTU5NjkwMDE2NiwiaWF0IjoxNTk2Mjk1MzY2fQ.lnv0xoR_-Bo0KPRRpfBbXzg02R6BUuRhYYAaM-pj7-U"
              }
            }
          
        
      

Este endpoint permite al admin loguearse

HTTP Request

POST https://api.anna.com.co/api/v1/user/loginAdmin

Query Parameters

Parameters Description

Logout (exit sesión)

        
          
            const headers = { Authorization: `${token}` };
            
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": null
            }
          
        
      

Este endpoint permite cerrar sesión y borrar el tokenFirebase asignado a la app

HTTP Request

GET https://api.anna.com.co/api/v1/account/logout

Query Parameters

Parameter Description

Registrar Token Firebase

        
          
            const headers = { Authorization: `${token}` };
            {
              "pushToken": "dzAq3Bem9P105RflJEWe1I:APA91bFuEpDVMH8viIFC8-YhN1qwAbl0bS6fxwECciRbN6_YOQzNPDGkU3u2Cq2vbkrBYd7oPZsnJaoW7pvIAG2MAvd4pKN-WVEKlrKGejSiLh610ZEPxLM0rGBgW9IjeydbfJEUheLY"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": null
            }
          
        
      

Este endpoint permite registrar el firebase token para recibir notificaciones push desde el servidor, en modo develop recibiras una noti push garantizando que estan conectados el app y el server

HTTP Request

POST https://api.anna.com.co/api/v1/account/firebaseToken

Query Parameters

Parameter Description
pushToken Enviar en string del expo token. Ejemplo: "dzAq3Bem9P105RflJEWe1I:APA91bFuEpDVMH8viIFC8-YhN1qwAbl0bS6fxwECciRbN6_YOQzNPDGkU3u2Cq2vbkrBYd7oPZsnJaoW7pvIAG2MAvd4pKN-WVEKlrKGejSiLh610ZEPxLM0rGBgW9IjeydbfJEUheLY"

/user/info

        
          
            const headers = { Authorization: `${token}` };
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Ingresa la contraseña para iniciar sesión",
              "message_en": "Enter the password to login",
              "result": {
                "_id": "5eecad480684b90acd805972",
                "profile": "ADMIN",
                "active": true,
                "createdAt": "2020-06-19T12:19:20.706Z",
                "updatedAt": "2020-06-19T12:33:33.324Z",
                "firstName": "Alexis",
                "lastName": "Sanchez",
                "email": "example@email.com"
              }
            }
          
        
      

Este endpoint retorna la info del usuario que es verificado via access token, es recomendable usarlo luego del login y siempre que se quiera consultar los datos del token en sesión.

HTTP Request

GET https://api.anna.com.co/api/v1/user/info

Query Parameters

Step Description

Registro Admin

        
          
            {
              "firstName":"victor",
              "lastName":"franco",
              "dniType":"CC",
              "dni":"12345678",
              "email":"victor@anna.com.co",
              "password":"pruebaPass",
              "modules":["Usuarios","Configuracion","Capacitaciones"]
            }
          
        
      
        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "firstName": "Victor",
                "lastName": "Franco",
                "email": "victor@anna.com.co",
                "password": "$2b$10$zDX9JxeztA/dkq8f186XJOb3oN0nZGiMNDw3RttkyOlywYPJCKx/e",
                "dni": "12345678",
                "dniType": "CC",
                "modules": [
                  "Usuarios",
                  "Configuracion",
                  "Capacitaciones"
                ],
                "profile": "ADMIN",
                "createdAt": "2020-08-01T15:25:04.904Z",
                "updatedAt": "2020-08-01T15:25:04.904Z",
                "_id": "5f2589506adfb140fa4508f2"
              }
            }
          
        
      

Este endpoint permite registrar nuevos usuarios admin

HTTP Request

POST https://api.anna.com.co/api/v1/user/createAdmin

Query Parameters

Parameters Description

/notification/list

        
          
            const headers = { Authorization: `${token}` }
            {
              
            }
          
        
      
        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "title": "Pedido nuevo",
                  "message": "Se registró una nueva solicitud de servicios",
                  "action": "order",
                  "type": "order",
                  "profile": "ADMIN",
                  "visible": true,
                  "idUser": "5f2589506adfb140fa4508f2",
                  "createdAt": "2020-08-01T15:25:04.904Z",
                  "updatedAt": "2020-08-01T15:25:04.904Z",
                  "_id": "5f2589506adfb140fa4508f2"
                }
              ]
            }
          
        
      

Este endpoint permite listar las notificaciones por leer

HTTP Request

GET https://api.anna.com.co/api/v1/notification/list

Query Parameters

Parameters Description

/notification/delete

        
          
            const headers = { Authorization: `${token}` }
            {
              "id": "5f2589506adfb140fa4508f2"
            }
          
        
      
        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully"
            }
          
        
      

Este endpoint permite borrar notificaciones ya leidas

HTTP Request

POST https://api.anna.com.co/api/v1/notification/delete

Query Parameters

Parameters Description

/notification/deleteAll

        
          
            const headers = { Authorization: `${token}` }
            {
              
            }
          
        
      
        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully"
            }
          
        
      

Este endpoint permite borrar todas las notificaciones

HTTP Request

GET https://api.anna.com.co/api/v1/notification/deleteAll

Query Parameters

Parameters Description

Lista de Usuarios

        
          
            {
              "profile":"USER",//PARTNET, ADMIN
              "start":0,
              "end":5,
              "active":true //true para activos, false para inactivos, de no enviarse el valor retorna ambos
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5eea766cf2144365f1a60e6a",
                  "profile": "USER",
                  "active": true,
                  "step": 1,
                  "email": "alexis@anna.com.co",
                  "code": "87529d03-a86a-4e02-8cd0-1f8d9a891990",
                  "fullRecord": false,
                  "createdAt": "2020-06-17T20:00:44.256Z",
                  "updatedAt": "2020-06-23T17:41:38.971Z"
                },
                {
                  "_id": "5eea76f9f2144365f1a60e6b",
                  "profile": "USER",
                  "active": true,
                  "step": 3,
                  "email": "aasvdj@gmail.com",
                  "code": "",
                  "fullRecord": false,
                  "createdAt": "2020-06-17T20:03:05.720Z",
                  "updatedAt": "2020-07-06T21:45:39.643Z",
                  "firstName": "Alexis ",
                  "urlProfileImage": "https://api.anna.com.co/images/avatar/a4b4a6b2-80f2-48c8-9526-ffa20b33e106.jpg"
                },
                {
                  "_id": "5eeaa1cb9d837b7aa6e7da77",
                  "profile": "USER",
                  "active": true,
                  "step": 4,
                  "phone": "+584124656273",
                  "code": "",
                  "fullRecord": false,
                  "createdAt": "2020-06-17T23:05:47.150Z",
                  "updatedAt": "2020-07-14T11:48:56.261Z",
                  "confirmPhone": true,
                  "firstName": "Alexis Sanchez",
                  "urlProfileImage": "https://api.anna.com.co/images/avatar/2a4dcc2a-3fcb-490e-a746-e53ddf6d48a4.jpg",
                  "email": "alexis.sanchez@crizz.com.co",
                  "password": "$2b$10$cSJkY05VLcV6gweHKL7hCOV7L3scmzEjqi001wDubEfNJ2/O22n8C",
                  "idCustomer": "6LEAvCq4Lc4DusGkb",
                  "pushToken": "ExponentPushToken[OJ503bI779MloM2cGwciYf]"
                }
              ]
            }
          
        
      

Este endpoint lista los usuarios segun su tipo y estatus

HTTP Request

POST https://api.anna.com.co/api/v1/user/list

Query Parameters

Parameters Description

Lista de Annitas

        
          
            {
              "active":false //true para activos, false para inactivos
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "_id": "5f61325a2051a00d1a5b7aec",
                        "profile": "PARTNER",
                        "firstName": "Martina",
                        "email": "Hajij65050@mailpkc.com",
                        "confirmEmail": false,
                        "phone": "+573024412345",
                        "code": "2022",
                        "confirmPhone": false,
                        "active": false,
                        "step": 1,
                        "statusTruora": "completed",
                        "fullRecord": true,
                        "city": "Bogotá",
                        "idKits": [
                            "5ee520d654c30e238ff27970",
                            "5ee520d654c30e238ff27970"
                        ],
                        "idTraining": [
                            "5ee50f739555277a7f7be3af"
                        ],
                        "workingDays": {
                            "lunes": [
                                "08:00",
                                "20:00"
                            ],
                            "martes": [
                                "08:00",
                                "18:00"
                            ],
                            "miercoles": [
                                "08:00",
                                "18:00"
                            ],
                            "jueves": [
                                "08:00",
                                "18:00"
                            ],
                            "viernes": [
                                "08:00",
                                "20:00"
                            ],
                            "sabado": [
                                "08:00",
                                "20:00"
                            ],
                            "domingo": [
                                "08:00",
                                "18:00"
                            ]
                        },
                        "createdAt": "2020-09-15T21:30:02.175Z",
                        "updatedAt": "2020-09-15T21:30:02.175Z",
                        "lastLogin": "2020-09-15T21:30:02.175Z"
                    }
                ]
            }
          
        
      

Este endpoint lista los usuarios segun su tipo y estatus

HTTP Request

POST https://api.anna.com.co/api/v1/user/listPartners

Query Parameters

Parameters Description

Lista de Usuarios Incompletos

        
          
            {
              "start":0,
              "end":5
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5eea766cf2144365f1a60e6a",
                  "profile": "USER",
                  "active": true,
                  "step": 1,
                  "email": "alexis@anna.com.co",
                  "code": "87529d03-a86a-4e02-8cd0-1f8d9a891990",
                  "fullRecord": false,
                  "createdAt": "2020-06-17T20:00:44.256Z",
                  "updatedAt": "2020-06-23T17:41:38.971Z"
                },
                {
                  "_id": "5eea76f9f2144365f1a60e6b",
                  "profile": "USER",
                  "active": true,
                  "step": 3,
                  "email": "aasvdj@gmail.com",
                  "code": "",
                  "fullRecord": false,
                  "createdAt": "2020-06-17T20:03:05.720Z",
                  "updatedAt": "2020-07-06T21:45:39.643Z",
                  "firstName": "Alexis ",
                  "urlProfileImage": "https://api.anna.com.co/images/avatar/a4b4a6b2-80f2-48c8-9526-ffa20b33e106.jpg"
                },
                {
                  "_id": "5eeaa1cb9d837b7aa6e7da77",
                  "profile": "USER",
                  "active": true,
                  "step": 4,
                  "phone": "+584124656273",
                  "code": "",
                  "fullRecord": false,
                  "createdAt": "2020-06-17T23:05:47.150Z",
                  "updatedAt": "2020-07-14T11:48:56.261Z",
                  "confirmPhone": true,
                  "firstName": "Alexis Sanchez",
                  "urlProfileImage": "https://api.anna.com.co/images/avatar/2a4dcc2a-3fcb-490e-a746-e53ddf6d48a4.jpg",
                  "email": "alexis.sanchez@crizz.com.co",
                  "password": "$2b$10$cSJkY05VLcV6gweHKL7hCOV7L3scmzEjqi001wDubEfNJ2/O22n8C",
                  "idCustomer": "6LEAvCq4Lc4DusGkb",
                  "pushToken": "ExponentPushToken[OJ503bI779MloM2cGwciYf]"
                },
                {
                  "_id": "5eeb7c12db996611a1865481",
                  "profile": "USER",
                  "active": false,
                  "step": 1,
                  "email": "test@test.com",
                  "code": "2dcb47cb-570f-4944-aebb-87bed8693531",
                  "fullRecord": false,
                  "createdAt": "2020-06-18T14:37:06.638Z",
                  "updatedAt": "2020-06-18T14:37:06.638Z"
                },
                {
                  "_id": "5ef65ab2f4148264c244655e",
                  "profile": "USER",
                  "active": true,
                  "step": 3,
                  "fullRecord": false,
                  "phone": "+573024473765",
                  "code": "",
                  "createdAt": "2020-06-26T20:29:38.710Z",
                  "updatedAt": "2020-06-26T21:23:16.557Z",
                  "lastLogin": "2020-06-26T20:29:38.710Z",
                  "confirmPhone": true,
                  "firstName": "Daniel",
                  "urlProfileImage": "https://api.anna.com.co/images/avatar/e0f2b48b-1945-4373-bbc9-b52b035e1500.gif"
                }
              ]
            }
          
        
      

Este endpoint lista los usuarios que no hayan completado su registro

HTTP Request

POST https://api.anna.com.co/api/v1/user/listIncomplete

Query Parameters

Parameters Description

Cambiar Estatus

        
          
            {
              "id":"5eea766cf2144365f1a60e6a"//ID del Usuario
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5eea766cf2144365f1a60e6a",
                "profile": "USER",
                "active": false,
                "step": 1,
                "email": "alexis@anna.com.co",
                "code": "87529d03-a86a-4e02-8cd0-1f8d9a891990",
                "fullRecord": false,
                "createdAt": "2020-06-17T20:00:44.256Z",
                "updatedAt": "2020-07-24T14:55:04.858Z"
              }
            }
          
        
      

Este endpoint sirve para alternar el estatus del usuario

HTTP Request

POST https://api.anna.com.co/api/v1/user/updateStatus

Query Parameters

Parameters Description

Buscar Data de Usuario

        
          
            {
              "id":"5eea766cf2144365f1a60e6a"//ID del Usuario
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5eea766cf2144365f1a60e6a",
                "profile": "USER",
                "active": false,
                "step": 1,
                "email": "alexis@anna.com.co",
                "code": "87529d03-a86a-4e02-8cd0-1f8d9a891990",
                "fullRecord": false,
                "createdAt": "2020-06-17T20:00:44.256Z",
                "updatedAt": "2020-07-24T14:55:04.858Z"
              }
            }
          
        
      

Este endpoint sirve para solicitar la data del usuario especificado

HTTP Request

POST https://api.anna.com.co/api/v1/user/findById

Query Parameters

Parameters Description

Lista de ordenes

        
          
            const headers = { Authorization: `${token}` }
            {
              "status": "ACTIVE"  //FINISHED, CANCELATED
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5f2acabd6226310a75df1ea0",
                  "amount": 67500,
                  "time": 290,
                  "status": "ACCEPTED",
                  "createdAt": "2020-08-05T15:05:33.717Z",
                  "updatedAt": "2020-08-21T00:26:51.835Z",
                  "hour": "06:56 pm",
                  "hourStart": "07:26 pm",
                  "haveFines" : true,
                  "dataPurchase": {
                    "_id": "5f2acabd6226310a75df1e9f",
                    "idUser": "5f247d2c9c0aba302c6c5fa4",
                    "idLocation": "5f247fad9c0aba302c6c5fa5",
                    "refPayment": 26105483,
                    "statusPayment": "Aceptada",
                    "messagePayment": "Aprobada",
                    "code": null,
                    "type": "FOR_NOW",
                    "amount": 112500,
                    "total": 112500,
                    "useWallet": false,
                    "payWallet": 0,
                    "useCode": false,
                    "descountCode": 0,
                    "paymentMethod": "TDC",
                    "status": "INPROGRESS",
                    "stepFind": 20,
                    "createdAt": "2020-08-05T15:05:33.716Z",
                    "updatedAt": "2020-08-13T19:22:02.892Z",
                    "numPurchase": "1",
                    "dataClient": {
                      "_id": "5f247d2c9c0aba302c6c5fa4",
                      "firstName": "Daniel",
                      "lastName": "Reverol",
                      "urlProfileImage": "https://api.anna.com.co/images/avatar/180f789a-2fc5-4689-9035-48505c5b4374.jpg",
                      "email": "danichini@anna.com.co",
                      "phone": "+573154473767",
                      "dni": "1126254078",
                      "dniType": "CC"
                    },
                    "dataLocation": {
                      "_id": "5f247fad9c0aba302c6c5fa5",
                      "address": "Cra 109a # 151-09",
                      "suggestion": "Apto",
                      "lat": 4.7513631,
                      "lng": -74.0972867,
                      "country": "Colombia",
                      "countryCode": "CO",
                      "city": "Bogotá",
                      "neighborhood": "Pinos de Lombardia"
                    }
                  },
                  "dataService": {
                    "_id": "5ec9459032ac9d1941acc019",
                    "name": "Aseo General",
                    "icon": "/images/s-aseo.png"
                  },
                  "dataPartner": {
                    "_id": "5ef53165d97eec6b3457cf33",
                    "firstName": "Maria Antonia",
                    "lastName": "Hernandez Gil",
                    "urlProfileImage": "/images/avatar-hombre.png",
                    "email": "partner2@anna.com.co",
                    "phone": "+573024473767",
                    "dni": "1024479619",
                    "dniType": "CC"
                  }
                }
              ]
            }
          
        
      

Este endpoint sirve para solicitar la data de operaciones por status, los status a consultar son: ACTIVE, FINISHED, CANCELATED

HTTP Request

POST https://api.anna.com.co/api/v1/order/list

Query Parameters

Parameters Description

Detalles de Orden

        
          
            const headers = { Authorization: `${token}` }
            {
              "id": "5f356d8e256b55796ccafa65"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "_id": "5f356d8e256b55796ccafa65",
                        "amount": 82500,
                        "time": 362,
                        "status": "ACCEPTED",
                        "createdAt": "2020-08-13T16:42:54.629Z",
                        "updatedAt": "2020-08-13T17:52:10.364Z",
                        "hour": "06:56 pm",
                        "dataPurchase": {
                            "_id": "5f356d8e256b55796ccafa64",
                            "idUser": "5f26fd75d5017918964d5296",
                            "idLocation": "5f273beeb788301e2678bf42",
                            "refPayment": 26660742,
                            "statusPayment": "Aceptada",
                            "messagePayment": "Aprobada",
                            "code": null,
                            "numPurchase": "9",
                            "type": "FOR_NOW",
                            "amount": 127500,
                            "total": 127500,
                            "useWallet": false,
                            "payWallet": 0,
                            "useCode": false,
                            "descountCode": 0,
                            "paymentMethod": "TDC",
                            "status": "INCOMPLETE",
                            "stepFind": 20,
                            "createdAt": "2020-08-13T16:42:54.627Z",
                            "updatedAt": "2020-09-11T22:54:00.355Z",
                            "dataClient": {
                                "_id": "5f26fd75d5017918964d5296",
                                "firstName": "Danichini",
                                "lastName": "Reverol",
                                "urlProfileImage": "https://api.anna.com.cohttps://api.anna.com.co/images/avatar/c4f46b95-81ac-48db-8075-9cc82aeb52ce.jpg",
                                "email": "daniel.reverol@anna.com.co",
                                "phone": "+573004473767",
                                "dni": "1126254078",
                                "dniType": "CC"
                            },
                            "dataLocation": {
                                "_id": "5f273beeb788301e2678bf42",
                                "address": "Cra 109a # 151-09",
                                "suggestion": "Apto 3204",
                                "lat": 4.7513631,
                                "lng": -74.0972867,
                                "country": "Colombia",
                                "countryCode": "CO",
                                "city": "Bogotá",
                                "neighborhood": "Pinos de Lombardia"
                            }
                        },
                        "dataPayment": {
                            "refPayment": 26660742,
                            "amount": 127500,
                            "bank": "Banco de Pruebas",
                            "paymentMethod": "TDC",
                            "status": "Aceptada",
                            "description": "00-Aprobada",
                            "date": "2020-08-13 11:42:46",
                            "number": "457562******0326",
                            "type": "visa"
                        },
                        "dataService": {
                            "_id": "5ec9459032ac9d1941acc019",
                            "name": "Aseo General",
                            "icon": "https://api.anna.com.co/images/icon_aseo_trasteo@2x.png"
                        },
                        "dataPartner": {
                            "_id": "5ef53165d97eec6b3457cf33",
                            "firstName": "Julia",
                            "lastName": "Garrido",
                            "urlProfileImage": "https://api.anna.com.co/images/avatar-hombre.png",
                            "email": "partner2@anna.com.co",
                            "phone": "+573024473761",
                            "dni": "1024479619",
                            "dniType": "CC"
                        }
                    }
                ]
            }
          
        
      

Este endpoint sirve para solicitar la data de una operación en específico

HTTP Request

POST https://api.anna.com.co/api/v1/order/orderDetails

Query Parameters

Parameters Description

Multar Usuarios

        
          
            {
              "profile":"user",
              "tag":"5f4e8743493d8e7835bfa1e4",
              "value":90000,
              "id" : "5f356d8e256b55796ccafa65" //Id de la orden
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idUser": "5f26fd75d5017918964d5296",
                "idOrder": "5f356d8e256b55796ccafa65",
                "profile": "USER",
                "value": 90000,
                "tag": "5f4e8743493d8e7835bfa1e4",
                "statusPay": "Aceptada",
                "typePay": "WALLET",
                "refPay": "Wallet",
                "numFine": 9,
                "createdAt": "2020-09-23T22:57:41.526Z",
                "updatedAt": "2020-09-23T22:57:41.526Z",
                "_id": "5f6bd2e58ca00e28988a9b02"
              }
            }
          
        
      

Este endpoint sirve para registrar multas a usuarios relacionados con la orden respectiva

HTTP Request

POST https://api.anna.com.co/api/v1/fines/storeFine

Query Parameters

Parameters Description

Listar Multas

        
          
            {
              "id" : "5f356d8e256b55796ccafa65" //Id de la orden
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "_id": "5f5189e36e14c06a9fd7d5fe",
                        "idUser": "5ef53165d97eec6b3457cf33",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "PARTNER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "Wallet",
                        "numFine": 1,
                        "createdAt": "2020-09-04T00:27:15.620Z",
                        "updatedAt": "2020-09-04T00:27:15.620Z"
                    },
                    {
                        "_id": "5f518a4bdf79326b7b8ea7c5",
                        "idUser": "5ef53165d97eec6b3457cf33",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "PARTNER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "0006",
                        "numFine": 2,
                        "createdAt": "2020-09-04T00:28:59.009Z",
                        "updatedAt": "2020-09-04T00:28:59.009Z"
                    },
                    {
                        "_id": "5f518dc17b45397278869389",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "Wallet",
                        "numFine": 3,
                        "createdAt": "2020-09-04T00:43:45.622Z",
                        "updatedAt": "2020-09-04T00:43:45.622Z"
                    },
                    {
                        "_id": "5f518df87611687389c683b4",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "Wallet",
                        "numFine": 4,
                        "createdAt": "2020-09-04T00:44:40.671Z",
                        "updatedAt": "2020-09-04T00:44:40.671Z"
                    },
                    {
                        "_id": "5f518e2eab6809742b2e90ea",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "Wallet",
                        "numFine": 5,
                        "createdAt": "2020-09-04T00:45:34.692Z",
                        "updatedAt": "2020-09-04T00:45:34.692Z"
                    },
                    {
                        "_id": "5f518eef90372375e69e74a7",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "FAIL",
                        "typePay": "",
                        "refPay": "",
                        "numFine": 6,
                        "createdAt": "2020-09-04T00:48:47.255Z",
                        "updatedAt": "2020-09-04T00:48:47.255Z"
                    },
                    {
                        "_id": "5f518fe2ae18447e906d6072",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "FAIL",
                        "typePay": "",
                        "refPay": "",
                        "numFine": 7,
                        "createdAt": "2020-09-04T00:52:50.810Z",
                        "updatedAt": "2020-09-04T00:52:50.810Z"
                    },
                    {
                        "_id": "5f51900a9b40607f0cc8cab9",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "Wallet",
                        "numFine": 8,
                        "createdAt": "2020-09-04T00:53:30.544Z",
                        "updatedAt": "2020-09-04T00:53:30.544Z"
                    },
                    {
                        "_id": "5f6bd2e58ca00e28988a9b02",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa65",
                        "profile": "USER",
                        "value": 90000,
                        "tag": "No Recibio A La Annita",
                        "statusPay": "Aceptada",
                        "typePay": "WALLET",
                        "refPay": "Wallet",
                        "numFine": 9,
                        "createdAt": "2020-09-23T22:57:41.526Z",
                        "updatedAt": "2020-09-23T22:57:41.526Z"
                    }
                ]
            }
          
        
      

Este endpoint sirve para listar las multas registradas a los usuarios (USER y PARTNER) asociados a una orden de servicio

HTTP Request

POST https://api.anna.com.co/api/v1/fines/findByOrders

Query Parameters

Parameters Description

Reembolso Usuarios

        
          
            {
              "id":"5f53bccf4d40705b5f53f0e8",    //Id Order
              "description":"Annita no se presentó",
              "value":50000
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idUser": "5f539f3f4d40705b5f53f0d1",
                "idOrder": "5f53bccf4d40705b5f53f0e8",
                "idWallet": "5f6be6d78ca00e28988a9b03",
                "value": 50000,
                "description": "Annita no se presentó",
                "numRefund": 36,
                "createdAt": "2020-09-24T00:22:47.599Z",
                "updatedAt": "2020-09-24T00:22:47.599Z",
                "_id": "5f6be6d78ca00e28988a9b04"
              }
            }
          
        
      

Este endpoint sirve para asignar reembolsos a los usuarios desde el modulo de operaciones

HTTP Request

POST https://api.anna.com.co/api/v1/refund/storeRefund

Query Parameters

Parameters Description

Listar Reembolsos

        
          
            {
              "id":"5f53bccf4d40705b5f53f0e8",    //Id Order
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "_id": "5f5bb8c8c4dd410395deaec8",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa66",
                        "idWallet": "5f5bb8c8c4dd410395deaec7",
                        "value": 45000,
                        "description": "Devolucion Cocinar Orden 9",
                        "numRefund": 1,
                        "createdAt": "2020-09-11T17:50:00.447Z",
                        "updatedAt": "2020-09-11T17:50:00.447Z"
                    },
                    {
                        "_id": "5f5c00082fdcd607112bcfd6",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idOrder": "5f356d8e256b55796ccafa66",
                        "idWallet": "5f5c00082fdcd607112bcfd5",
                        "value": 45000,
                        "description": "Devolucion Cocinar Orden 9",
                        "numRefund": 5,
                        "createdAt": "2020-09-11T22:54:00.030Z",
                        "updatedAt": "2020-09-11T22:54:00.030Z"
                    }
                ]
            }
          
        
      

Este endpoint sirve para listar los reembolsos realizados a los usuarios (USER) asociados a una orden de servicio

HTTP Request

POST https://api.anna.com.co/api/v1/refund/findByOrders

Query Parameters

Parameters Description

Lista de Capacitaciones

        
          
            {
              "start":0,
              "end":5
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee5035fdb235239813f7f3c",
                  "nameTraining": "Capacitación General",
                  "numTraining": "0001",
                  "necessary": true,
                  "serviceList": [
                    "5ec9459032ac9d1941acc019",
                    "5eff0e44ef8b1474d9b84dae",
                    "5eff1082ef8b1474d9b84daf"
                  ],
                  "status": false,
                  "createdAt": "2020-06-13T16:48:31.429Z",
                  "updatedAt": "2020-06-13T16:48:31.429Z"
                },
                {
                  "_id": "5ee50f739555277a7f7be3af",
                  "nameTraining": "Primera Leccion",
                  "numTraining": "0002",
                  "necessary": true,
                  "serviceList": [
                    "5ec9459032ac9d1941acc019",
                    "5eff1082ef8b1474d9b84daf"
                  ],
                  "status": true,
                  "createdAt": "2020-06-13T17:40:03.261Z",
                  "updatedAt": "2020-06-18T22:15:29.594Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para listar las capacitaciones registradas

HTTP Request

POST https://api.anna.com.co/api/v1/training/list

Query Parameters

Parameters Description

Lista de Capacitaciones

        
          
            {
              "start":0,
              "end":5
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee5035fdb235239813f7f3c",
                  "nameTraining": "Capacitación General",
                  "numTraining": "0001",
                  "necessary": true,
                  "serviceList": [
                    "5ec9459032ac9d1941acc019",
                    "5eff0e44ef8b1474d9b84dae",
                    "5eff1082ef8b1474d9b84daf"
                  ],
                  "status": false,
                  "createdAt": "2020-06-13T16:48:31.429Z",
                  "updatedAt": "2020-06-13T16:48:31.429Z"
                },
                {
                  "_id": "5ee50f739555277a7f7be3af",
                  "nameTraining": "Primera Leccion",
                  "numTraining": "0002",
                  "necessary": true,
                  "serviceList": [
                    "5ec9459032ac9d1941acc019",
                    "5eff1082ef8b1474d9b84daf"
                  ],
                  "status": true,
                  "createdAt": "2020-06-13T17:40:03.261Z",
                  "updatedAt": "2020-06-18T22:15:29.594Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para listar las capacitaciones registradas

HTTP Request

POST https://api.anna.com.co/api/v1/training/list

Query Parameters

Parameters Description

Crear Nueva Capacitación

        
          
            {
              "nameTraining":"Nueva Capacitación",
              "necessary":true,
              "status":true,
              "serviceList":["5ec9459032ac9d1941acc019","5eff1082ef8b1474d9b84daf"]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "nameTraining": "Nueva Capacitacion",
                "numTraining": "0004",
                "necessary" : true,
                "serviceList": [
                  "5ec9459032ac9d1941acc019",
                  "5eff1082ef8b1474d9b84daf"
                ],
                "status": true,
                "createdAt": "2020-07-24T15:23:09.430Z",
                "updatedAt": "2020-07-24T15:23:09.430Z",
                "_id": "5f1afcdd61ee2733c760a0c8"
              }
            }
          
        
      

Este endpoint sirve para registrar nuevas Capacitaciones

HTTP Request

POST https://api.anna.com.co/api/v1/training/store

Query Parameters

Parameters Description

Actualizar Capacitación

        
          
            {
              "id":"5f1afcdd61ee2733c760a0c8",
              "nameTraining":"Capacitación Cuatro",
              "necessary":false,
              "serviceList":["5ec9459032ac9d1941acc019","5eff1082ef8b1474d9b84daf"]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f1afcdd61ee2733c760a0c8",
                "nameTraining": "Capacitación Cuatro",
                "numTraining": "0004",
                "necessary": false,
                "serviceList": [
                  "5ec9459032ac9d1941acc019",
                  "5eff1082ef8b1474d9b84daf"
                ],
                "status": true,
                "createdAt": "2020-07-24T15:23:09.430Z",
                "updatedAt": "2020-07-24T15:48:00.174Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar data de las Capacitaciones

HTTP Request

POST https://api.anna.com.co/api/v1/training/update

Query Parameters

Parameters Description

Cambiar Estatus

        
          
            {
              "id":"5f1afcdd61ee2733c760a0c8",
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f1afcdd61ee2733c760a0c8",
                "nameTraining": "Capacitación Cuatro",
                "numTraining": "0004",
                "necessary": false,
                "serviceList": [
                  "5ec9459032ac9d1941acc019",
                  "5eff1082ef8b1474d9b84daf"
                ],
                "status": false,
                "createdAt": "2020-07-24T15:23:09.430Z",
                "updatedAt": "2020-07-24T15:58:18.586Z"
              }
            }
          
        
      

Este endpoint sirve para alternar el estatus de la Capacitación entre true o false

HTTP Request

POST https://api.anna.com.co/api/v1/training/updateStatus

Query Parameters

Parameters Description

Lista de Lecciones de una Capacitacion

        
          
            {
              "idTraining":"5ee50f739555277a7f7be3af" 
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee50fba9555277a7f7be3b0",
                  "nameLessons": "Probando Edicion 2",
                  "numLessons": "0002",
                  "descriptionLessons": "Descripcion Editada",
                  "idTraining": "5ee50f739555277a7f7be3af",
                  "status": false,
                  "questions": [
                    {
                      "question": "Esta es la pregunta Uno",
                      "options": [
                        {
                          "text": "Respuesta 1 de Uno"
                        },
                        {
                          "text": "Respuesta 2 de Uno"
                        },
                        {
                          "text": "Respuesta 3 de Uno"
                        },
                        {
                          "text": "Respuesta 4 de Uno"
                        }
                      ],
                      "numQuestion": 1
                    },
                    {
                      "question": "Esta es la pregunta Dos",
                      "options": [
                        {
                          "text": "Respuesta 1 de Uno"
                        },
                        {
                          "text": "Respuesta 2 de Uno"
                        },
                        {
                          "text": "Respuesta 3 de Uno"
                        },
                        {
                          "text": "Respuesta 4 de Uno"
                        }
                      ],
                      "numQuestion": 2
                    }
                  ],
                  "createdAt": "2020-06-13T17:41:14.391Z",
                  "updatedAt": "2020-06-18T22:39:46.583Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para listar las lecciones que pertenecen a una determinada capacitación

HTTP Request

POST https://api.anna.com.co/api/v1/lessons/list

Query Parameters

Parameters Description

Crear Nueva Lección

        
          
            {
              "nameLessons": "Leccion 2",
              "descriptionLessons": "Descripcion Segunda leccion",
              "idTraining": "5ee50f739555277a7f7be3af",
              "status": true,
              "questions":
                [
                  {
                    "question":"Esta es la pregunta Uno",
                    "answer":1,
                    "options":
                    [
                      {
                        "text":"Respuesta 1 de Uno"
                      },
                      {
                        "text":"Respuesta 2 de Uno"
                      },
                      {
                        "text":"Respuesta 3 de Uno"
                      },
                      {
                        "text":"Respuesta 4 de Uno"
                      }     
                    ]
                  },
                  {
                    "question":"Esta es la pregunta Dos",
                    "answer":3,
                    "options":
                    [
                      {
                        "text":"Respuesta 1 de Uno"
                      },
                      {
                        "text":"Respuesta 2 de Uno"
                      },
                      {
                        "text":"Respuesta 3 de Uno"
                      },
                      {
                        "text":"Respuesta 4 de Uno"
                      }     
                    ]
                  }   
                ]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "nameLessons": "Leccion 2",
                "numLessons": "0003",
                "descriptionLessons": "Descripcion Segunda Leccion",
                "idTraining": "5ee50f739555277a7f7be3af",
                "status": true,
                "questions": [
                  {
                    "question": "Esta es la pregunta Uno",
                    "answer": 1,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 1
                  },
                  {
                    "question": "Esta es la pregunta Dos",
                    "answer": 3,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 2
                  }
                ],
                "createdAt": "2020-07-24T16:36:08.488Z",
                "updatedAt": "2020-07-24T16:36:08.488Z",
                "_id": "5f1b0df845193263e723b0b6"
              }
            }
          
        
      

Este endpoint sirve para guardar nuevas lecciones asociadas a una determinada capacitación

HTTP Request

POST https://api.anna.com.co/api/v1/lessons/store

Query Parameters

Parameters Description

Actualizar Lección

        
          
            {
              "id": "5ee50fba9555277a7f7be3b0", 
              "nameLessons": "Probando Edicion 2",
              "descriptionLessons": "Descripcion Editada",
              "questions":
                [
                  {
                    "question":"Esta es la pregunta Uno",
                    "answer":0,
                    "options":
                    [
                      {
                        "text":"Respuesta 1 de Uno"
                      },
                      {
                        "text":"Respuesta 2 de Uno"
                      },
                      {
                        "text":"Respuesta 3 de Uno"
                      },
                      {
                        "text":"Respuesta 4 de Uno"
                      }     
                    ]
                  },
                  {
                    "question":"Esta es la pregunta Dos",
                    "answer":2,
                    "options":
                    [
                      {
                        "text":"Respuesta 1 de Uno"
                      },
                      {
                        "text":"Respuesta 2 de Uno"
                      },
                      {
                        "text":"Respuesta 3 de Uno"
                      },
                      {
                        "text":"Respuesta 4 de Uno"
                      }     
                    ]
                  }   
                ]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50fba9555277a7f7be3b0",
                "nameLessons": "Probando Edicion 2",
                "numLessons": "0002",
                "descriptionLessons": "Descripcion Editada",
                "idTraining": "5ee50f739555277a7f7be3af",
                "status": false,
                "questions": [
                  {
                    "question": "Esta es la pregunta Uno",
                    "answer": 0,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 1
                  },
                  {
                    "question": "Esta es la pregunta Dos",
                    "answer": 2,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 2
                  }
                ],
                "createdAt": "2020-06-13T17:41:14.391Z",
                "updatedAt": "2020-07-24T17:09:45.727Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar las lecciones asociadas a una determinada capacitación

HTTP Request

POST https://api.anna.com.co/api/v1/lessons/update

Query Parameters

Parameters Description

Cambiar Estatus de la Lección

        
          
            {
              "id":"5ee50fba9555277a7f7be3b0"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50fba9555277a7f7be3b0",
                "nameLessons": "Probando Edicion 2",
                "numLessons": "0002",
                "descriptionLessons": "Descripcion Editada",
                "idTraining": "5ee50f739555277a7f7be3af",
                "status": false,
                "questions": [
                  {
                    "question": "Esta es la pregunta Uno",
                    "answer": 0,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 1
                  },
                  {
                    "question": "Esta es la pregunta Dos",
                    "answer": 2,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 2
                  }
                ],
                "createdAt": "2020-06-13T17:41:14.391Z",
                "updatedAt": "2020-07-24T17:30:27.703Z"
              }
            }
          
        
      

Este endpoint sirve para alternar el estatus de la Lección entre true o false

HTTP Request

POST https://api.anna.com.co/api/v1/lessons/updateStatus

Query Parameters

Parameters Description

Cambiar Orden de la Lección

        
          
            {
              "id":"5ee50fba9555277a7f7be3b0",              //ID de la leccion a cambiar posicion
              "idTraining":"5ee50f739555277a7f7be3af",      //ID de la Capacitacion a la que pertenece
              "newPos": "0002"                              //Nueva posicion para la lección
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50fba9555277a7f7be3b0",
                "nameLessons": "Probando Edicion 2",
                "numLessons": "0002",
                "descriptionLessons": "Descripcion Editada",
                "idTraining": "5ee50f739555277a7f7be3af",
                "status": false,
                "questions": [
                  {
                    "question": "Esta es la pregunta Uno",
                    "answer": 0,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 1
                  },
                  {
                    "question": "Esta es la pregunta Dos",
                    "answer": 2,
                    "options": [
                      {
                        "text": "Respuesta 1 de Uno"
                      },
                      {
                        "text": "Respuesta 2 de Uno"
                      },
                      {
                        "text": "Respuesta 3 de Uno"
                      },
                      {
                        "text": "Respuesta 4 de Uno"
                      }
                    ],
                    "numQuestion": 2
                  }
                ],
                "createdAt": "2020-06-13T17:41:14.391Z",
                "updatedAt": "2020-07-24T17:30:27.703Z"
              }
            }
          
        
      

Este endpoint sirve para intercambiar el orden de la lección con otra leccion ya existente

HTTP Request

POST https://api.anna.com.co/api/v1/lessons/updateOrder

Query Parameters

Parameters Description

Lista de Contenido de Lecciones

        
          
            {
                "idLesson": "5ee50fba9555277a7f7be3b0"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5eebefdc52836c107fc7e871",
                  "numContent": "0001",
                  "typeContent": "TEXT",
                  "content": "Texto de prueba para agregar como contenido de las lecciones",
                  "idLesson": "5ee50fba9555277a7f7be3b0",
                  "status": true,
                  "createdAt": "2020-06-18T22:51:08.568Z",
                  "updatedAt": "2020-06-18T22:58:27.455Z"
                },
                {
                  "_id": "5ee50ff29555277a7f7be3b1",
                  "numContent": "0002",
                  "typeContent": "TEXT",
                  "content": "Texto editado para el contenido",
                  "idLesson": "5ee50fba9555277a7f7be3b0",
                  "status": true,
                  "createdAt": "2020-06-13T17:42:10.777Z",
                  "updatedAt": "2020-06-18T22:58:27.386Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para listar los contenidos de cada lección

HTTP Request

POST https://api.anna.com.co/api/v1/lessonscontent/list

Query Parameters

Parameters Description

Crear Nuevo Contenido de Lección

        
          
            {
              "typeContent": "text",
              "content": "Texto de prueba para agregar como contenido de las lecciones",
              "idLesson": "5ee50fba9555277a7f7be3b0",
              "status": true
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "numContent": "0003",
                "typeContent": "TEXT",
                "content": "Texto de prueba para agregar como contenido de las lecciones",
                "idLesson": "5ee50fba9555277a7f7be3b0",
                "status": true,
                "createdAt": "2020-07-24T17:53:21.688Z",
                "updatedAt": "2020-07-24T17:53:21.688Z",
                "_id": "5f1b201145193263e723b0b7"
              }
            }
          
        
      

Este endpoint sirve para crear nuevos contenidos de lecciones

HTTP Request

POST https://api.anna.com.co/api/v1/lessonscontent/store

Query Parameters

Parameters Description

Actualizar Contenido de Lección

        
          
            {
              "id":"5ee50ff29555277a7f7be3b1",
              "typeContent": "text",
              "content": "Texto editado para el contenido"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50ff29555277a7f7be3b1",
                "numContent": "0002",
                "typeContent": "TEXT",
                "content": "Texto editado para el contenido",
                "idLesson": "5ee50fba9555277a7f7be3b0",
                "status": true,
                "createdAt": "2020-06-13T17:42:10.777Z",
                "updatedAt": "2020-07-24T17:56:41.491Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los contenidos de lecciones

HTTP Request

POST https://api.anna.com.co/api/v1/lessonscontent/update

Query Parameters

Parameters Description

Cambiar Estatus

        
          
            {
              "id": "5ee50ff29555277a7f7be3b1"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50ff29555277a7f7be3b1",
                "numContent": "0002",
                "typeContent": "TEXT",
                "content": "Texto editado para el contenido",
                "idLesson": "5ee50fba9555277a7f7be3b0",
                "status": false,
                "createdAt": "2020-06-13T17:42:10.777Z",
                "updatedAt": "2020-07-24T17:59:04.955Z"
              }
            }
          
        
      

Este endpoint sirve para alternar el estatus del contenido entre true o false

HTTP Request

POST https://api.anna.com.co/api/v1/lessonscontent/updateStatus

Query Parameters

Parameters Description

Cambiar Orden

        
          
            {
              "id":"5ee50ff29555277a7f7be3b1",            //ID del contenido a cambiarle la posición
              "idLesson":"5ee50fba9555277a7f7be3b0",      //ID de la leccion a la que pertenece
              "newPos": "0002"                            //Nueva posición
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50ff29555277a7f7be3b1",
                "numContent": "0002",
                "typeContent": "TEXT",
                "content": "Texto editado para el contenido",
                "idLesson": "5ee50fba9555277a7f7be3b0",
                "status": false,
                "createdAt": "2020-06-13T17:42:10.777Z",
                "updatedAt": "2020-07-24T17:59:04.955Z"
              }
            }
          
        
      

Este endpoint sirve para intercambiar el orden del contenido con otra leccion ya existente

HTTP Request

POST https://api.anna.com.co/api/v1/lessonscontent/updateOrder

Query Parameters

Parameters Description

Buscar Comisiones por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5eebf8dacfa9062fb0265c22",
                  "idCountry": "CO",
                  "threeStarts": 0.6,
                  "fourStarts": 0.7,
                  "fiveStarts": 0.8,
                  "consecutiveRejection": {
                    "value": 3,
                    "penalty": 6,
                    "type": "hour"
                  },
                  "qualification": {
                    "value": 3,
                    "penalty": 12,
                    "type": "hour"
                  },
                  "delays": {
                    "value": 15,
                    "penalty": 0.05,
                    "type": "percent"
                  },
                  "createdAt": "2020-06-18T23:29:30.551Z",
                  "updatedAt": "2020-06-18T23:29:30.551Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de comisiones segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/commission/findByCountry

Query Parameters

Parameters Description

Guardar data de comisiones por país

        
          
            {
              "idCountry":"CO",
              "threeStarts":0.6,
              "fourStarts":0.7,
              "fiveStarts":0.8,
              "consecutiveRejection":
              {
                "value":"3",
                "penalty":"6",
                "type":"hour"
              },
              "qualification":
              {
                "value":"3",
                "penalty":"12",
                "type":"hour"   
              },
              "delays":
              {
                "value":"15",
                "penalty":"0.05",
                "type":"percent"  
              }
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5eebf8dacfa9062fb0265c22",
                "idCountry": "CO",
                "threeStarts": 0.6,
                "fourStarts": 0.7,
                "fiveStarts": 0.8,
                "consecutiveRejection": {
                  "value": 3,
                  "penalty": 6,
                  "type": "hour"
                },
                "qualification": {
                  "value": 3,
                  "penalty": 12,
                  "type": "hour"
                },
                "delays": {
                  "value": 15,
                  "penalty": 0.05,
                  "type": "percent"
                },
                "createdAt": "2020-06-18T23:29:30.551Z",
                "updatedAt": "2020-07-24T18:47:23.474Z"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de comisiones para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/commission/store

Query Parameters

Parameters Description

Actualizar comisiones por país

        
          
            {
              "id":"5eebf70a52836c107fc7e875",
              "idCountry":"US",
              "threeStarts":0.6,
              "fourStarts":0.7,
              "fiveStarts":0.8,
              "consecutiveRejection":
              {
                "value":"0,5",
                "penalty":"6",
                "type":"hour"
              },
              "qualification":
              {
                "value":"0.3",
                "penalty":"12",
                "type":"hour"   
              },
              "delays":
              {
                "value":"15",
                "penalty":"0.05",
                "type":"percent"  
              }
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5eebf70a52836c107fc7e875",
                "idCountry": "US",
                "threeStarts": 0.6,
                "fourStarts": 0.7,
                "fiveStarts": 0.8,
                "consecutiveRejection": {
                  "value": 0.5,
                  "penalty": 6,
                  "type": "hour"
                },
                "qualification": {
                  "value": 0.3,
                  "penalty": 12,
                  "type": "hour"
                },
                "delays": {
                  "value": 15,
                  "penalty": 0.05,
                  "type": "percent"
                },
                "createdAt": "2020-06-18T23:21:46.741Z",
                "updatedAt": "2020-07-24T18:51:50.856Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de comisiones para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/commission/update

Query Parameters

Parameters Description

Buscar Vecinos por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee3ddd1f193eb3b788f5150",
                  "idCountry": "CO",
                  "name": "vecino 1",
                  "num": "0001",
                  "value": 0.35,
                  "createdAt": "2020-06-12T19:56:01.751Z",
                  "updatedAt": "2020-06-12T19:56:01.751Z"
                },
                {
                  "_id": "5ee3de2479e8333c2a76d028",
                  "idCountry": "CO",
                  "name": "vecino 2",
                  "num": "0002",
                  "value": 0.7,
                  "createdAt": "2020-06-12T19:57:24.621Z",
                  "updatedAt": "2020-06-12T19:57:24.621Z"
                },
                {
                  "_id": "5ee510339555277a7f7be3b2",
                  "idCountry": "CO",
                  "name": "vecino 4",
                  "num": "0003",
                  "value": 0.35,
                  "createdAt": "2020-06-13T17:43:15.307Z",
                  "updatedAt": "2020-06-13T17:43:15.307Z"
                },
                {
                  "_id": "5eebfa6dcfa9062fb0265c23",
                  "idCountry": "CO",
                  "name": "vecino 4",
                  "num": "0004",
                  "value": 0.7,
                  "createdAt": "2020-06-18T23:36:13.462Z",
                  "updatedAt": "2020-06-18T23:39:03.193Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de vecinos segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/neighbours/findByCountry

Query Parameters

Parameters Description

Guardar data de vecinos por país

        
          
            {
              "idCountry":"CO",
              "name":"vecino 5",
              "value":"0.35"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idCountry": "CO",
                "name": "vecino 5",
                "num": "0005",
                "value": 0.35,
                "createdAt": "2020-07-24T19:06:36.982Z",
                "updatedAt": "2020-07-24T19:06:36.982Z",
                "_id": "5f1b313cdcf1623dc317f825"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de vecinos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/neighbours/store

Query Parameters

Parameters Description

Actualizar vecinos por país

        
          
            {
              "id":"5eebfa6dcfa9062fb0265c23",
              "idCountry":"CO",
              "name":"vecino 4",
              "value":"0.7"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5eebfa6dcfa9062fb0265c23",
                "idCountry": "CO",
                "name": "vecino 4",
                "num": "0004",
                "value": 0.7,
                "createdAt": "2020-06-18T23:36:13.462Z",
                "updatedAt": "2020-07-24T19:07:48.029Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de vecinos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/neighbours/update

Query Parameters

Parameters Description

Buscar Seguro por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee3e98762bb7e581891cddf",
                  "idCountry": "CO",
                  "idCity": "Medellin",
                  "type": "Servicio",
                  "value": "15000",
                  "createdAt": "2020-06-12T20:45:59.894Z",
                  "updatedAt": "2020-06-12T20:51:32.283Z"
                },
                {
                  "_id": "5ee3eae6b68c975a4afb3d0c",
                  "idCountry": "CO",
                  "idCity": "Bogotá",
                  "type": "Servicio",
                  "value": "12000",
                  "createdAt": "2020-06-12T20:51:50.783Z",
                  "updatedAt": "2020-06-12T20:51:50.783Z"
                },
                {
                  "_id": "5ee50d1420bba775a7a50626",
                  "idCountry": "CO",
                  "idCity": "Cali",
                  "type": "Servicio",
                  "value": "13000",
                  "createdAt": "2020-06-13T17:29:56.592Z",
                  "updatedAt": "2020-06-19T14:58:59.164Z"
                },
                {
                  "_id": "5eecd27d6186743de6846a98",
                  "idCountry": "CO",
                  "idCity": "Cartagena",
                  "type": "Servicio",
                  "value": "12000",
                  "createdAt": "2020-06-19T14:58:05.528Z",
                  "updatedAt": "2020-06-19T14:58:05.528Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de seguro segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/insurance/findByCountry

Query Parameters

Parameters Description

Guardar data de Seguro por país

        
          
            {
              "idCountry":"CO",
              "idCity":"Barranquilla",
              "type":"Servicio",
              "value":"12000"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idCountry": "CO",
                "idCity": "Barranquilla",
                "type": "Servicio",
                "value": "12000",
                "createdAt": "2020-07-25T14:13:45.314Z",
                "updatedAt": "2020-07-25T14:13:45.314Z",
                "_id": "5f1c3e19926baf2a687937a9"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de vecinos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/insurance/store

Query Parameters

Parameters Description

Actualizar Seguro por país

        
          
            {
              "id":"5ee50d1420bba775a7a50626",
              "idCountry":"CO",
              "idCity":"Cali",
              "type":"Servicio",
              "value":"13000"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee50d1420bba775a7a50626",
                "idCountry": "CO",
                "idCity": "Cali",
                "type": "Servicio",
                "value": "13000",
                "createdAt": "2020-06-13T17:29:56.592Z",
                "updatedAt": "2020-07-25T14:15:01.359Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de seguro para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/insurance/update

Query Parameters

Parameters Description

Buscar Gastos por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee40087b1e18425f2934b65",
                  "idCountry": "CO",
                  "typeExpense": "Pasarela",
                  "typePayment": "Porcentaje",
                  "name": "Pagos EPL",
                  "value": 0.012,
                  "createdAt": "2020-06-12T22:24:07.314Z",
                  "updatedAt": "2020-06-12T22:24:07.314Z"
                },
                {
                  "_id": "5ee400bbb1e18425f2934b66",
                  "idCountry": "CO",
                  "typeExpense": "Pasarela",
                  "typePayment": "Porcentaje",
                  "name": "Pagos EPL",
                  "value": 0.05,
                  "createdAt": "2020-06-12T22:24:59.358Z",
                  "updatedAt": "2020-06-19T15:33:30.145Z"
                },
                {
                  "_id": "5eecda8f6186743de6846a99",
                  "idCountry": "CO",
                  "typeExpense": "Pasarela",
                  "typePayment": "Porcentaje",
                  "name": "Pagos EPL",
                  "value": 0.012,
                  "createdAt": "2020-06-19T15:32:31.736Z",
                  "updatedAt": "2020-06-19T15:32:31.736Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de Gastos segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/expenses/findByCountry

Query Parameters

Parameters Description

Guardar data de Gastos por país

        
          
            {
              "idCountry":"CO",
              "typeExpense":"Pasarela",
              "typePayment":"Porcentaje",
              "name":"Pagos EPL",
              "value":"0.012"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idCountry": "CO",
                "typeExpense": "Pasarela",
                "typePayment": "Porcentaje",
                "name": "Pagos EPL",
                "value": 0.012,
                "createdAt": "2020-07-25T14:20:39.265Z",
                "updatedAt": "2020-07-25T14:20:39.265Z",
                "_id": "5f1c3fb7926baf2a687937aa"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de vecinos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/expenses/store

Query Parameters

Parameters Description

Actualizar Gastos por país

        
          
            {
              "id":"5ee400bbb1e18425f2934b66",
              "idCountry":"CO",
              "typeExpense":"Pasarela",
              "typePayment":"porcentaje",
              "name":"Pagos EPL",
              "value":"0.05"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee400bbb1e18425f2934b66",
                "idCountry": "CO",
                "typeExpense": "Pasarela",
                "typePayment": "Porcentaje",
                "name": "Pagos EPL",
                "value": 0.05,
                "createdAt": "2020-06-12T22:24:59.358Z",
                "updatedAt": "2020-07-25T14:21:35.041Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de Gastos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/expenses/update

Query Parameters

Parameters Description

Buscar Bonos por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee406db7b81be3362dbc218",
                  "idCountry": "CO",
                  "name": "Bono 1",
                  "value": "100000",
                  "services": "20",
                  "score": "4",
                  "reward": "Cualquiera",
                  "trainings": "Training 1",
                  "createdAt": "2020-06-12T22:51:07.012Z",
                  "updatedAt": "2020-06-19T16:08:21.988Z",
                  "visible": false
                },
                {
                  "_id": "5ee4075a7b81be3362dbc219",
                  "idCountry": "CO",
                  "name": "Bono 2",
                  "value": "120000",
                  "services": "40",
                  "score": "4.3",
                  "reward": "Cualquiera",
                  "trainings": "Training 2",
                  "visible": true,
                  "createdAt": "2020-06-12T22:53:14.892Z",
                  "updatedAt": "2020-06-12T22:53:14.892Z"
                },
                {
                  "_id": "5ee520816ec463220aaf99f5",
                  "idCountry": "CO",
                  "name": "Bono 2",
                  "value": "120000",
                  "services": "40",
                  "score": "4.3",
                  "reward": "Cualquiera",
                  "trainings": "Training 2",
                  "visible": true,
                  "createdAt": "2020-06-13T18:52:49.951Z",
                  "updatedAt": "2020-06-13T18:52:49.951Z"
                },
                {
                  "_id": "5eece2676186743de6846a9a",
                  "idCountry": "CO",
                  "name": "Bono 2",
                  "value": "120000",
                  "services": "40",
                  "score": "4.3",
                  "reward": "Cualquiera",
                  "trainings": "Training 2",
                  "visible": true,
                  "createdAt": "2020-06-19T16:05:59.240Z",
                  "updatedAt": "2020-06-19T16:05:59.240Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de Bonos segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/bonds/findByCountry

Query Parameters

Parameters Description

Guardar data de Bonos por país

        
          
            {
              "idCountry":"CO",
              "name":"Bono 2",
              "value":"120000",
              "services":"40",
              "score":"4,3",
              "reward":"Cualquiera",
              "trainings":"Training 2"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idCountry": "CO",
                "name": "Bono 2",
                "value": "120000",
                "services": "40",
                "score": "4.3",
                "reward": "Cualquiera",
                "trainings": "Training 2",
                "visible": true,
                "createdAt": "2020-07-25T14:26:16.980Z",
                "updatedAt": "2020-07-25T14:26:16.980Z",
                "_id": "5f1c4108926baf2a687937ab"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de vecinos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/bonds/store

Query Parameters

Parameters Description

Actualizar Bonos por país

        
          
            {
              "id":"5ee406db7b81be3362dbc218",
              "idCountry":"CO",
              "name":"Bono 1",
              "value":"100000",
              "services":"20",
              "score":"4",
              "reward":"Cualquiera",
              "trainings":"Training 1"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee406db7b81be3362dbc218",
                "idCountry": "CO",
                "name": "Bono 1",
                "value": "100000",
                "services": "20",
                "score": "4",
                "reward": "Cualquiera",
                "trainings": "Training 1",
                "createdAt": "2020-06-12T22:51:07.012Z",
                "updatedAt": "2020-07-25T14:26:57.809Z",
                "visible": false
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de Bonos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/bonds/update

Query Parameters

Parameters Description

Eliminar Bonos por país

        
          
            {
              "id":"5ee406db7b81be3362dbc218"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee406db7b81be3362dbc218",
                "idCountry": "CO",
                "name": "Bono 1",
                "value": "100000",
                "services": "20",
                "score": "4",
                "reward": "Cualquiera",
                "trainings": "Training 1",
                "createdAt": "2020-06-12T22:51:07.012Z",
                "updatedAt": "2020-07-25T14:35:14.731Z",
                "visible": false
              }
            }
          
        
      

Este endpoint sirve para eliminar los valores de Bonos para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/bonds/deleteBonds

Query Parameters

Parameters Description

Buscar Kits por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5ee520d654c30e238ff27970",
                  "idCountry": "CO",
                  "name": "Kit Annita 2",
                  "value": "130000",
                  "visible": false,
                  "createdAt": "2020-06-13T18:54:14.515Z",
                  "updatedAt": "2020-06-19T16:12:48.713Z"
                },
                {
                  "_id": "5eece3a96186743de6846a9b",
                  "idCountry": "CO",
                  "name": "Kit Annita 1",
                  "value": "120000",
                  "visible": true,
                  "createdAt": "2020-06-19T16:11:21.028Z",
                  "updatedAt": "2020-06-19T16:11:21.028Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de Kits segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/kits/findByCountry

Query Parameters

Parameters Description

Guardar data de Kits por país

        
          
            {
              "idCountry":"CO",
              "name":"Kit Annita 1",
              "value":"120000"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idCountry": "CO",
                "name": "Kit Annita 1",
                "value": "120000",
                "visible": true,
                "createdAt": "2020-07-25T14:52:34.041Z",
                "updatedAt": "2020-07-25T14:52:34.041Z",
                "_id": "5f1c4732926baf2a687937ac"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de Kits para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/kits/store

Query Parameters

Parameters Description

Actualizar Kits por país

        
          
            {
              "id":"5ee520d654c30e238ff27970",
              "idCountry":"CO",
              "name":"Kit Annita 2",
              "value":"130000"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee520d654c30e238ff27970",
                "idCountry": "CO",
                "name": "Kit Annita 2",
                "value": "130000",
                "visible": false,
                "createdAt": "2020-06-13T18:54:14.515Z",
                "updatedAt": "2020-07-25T14:53:18.440Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de Kits para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/kits/update

Query Parameters

Parameters Description

Actualizar Estatus de Kits

        
          
            {
              "id":"5ee520d654c30e238ff27970"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee520d654c30e238ff27970",
                "idCountry": "CO",
                "name": "Kit Annita 2",
                "value": "130000",
                "visible": true,
                "createdAt": "2020-06-13T18:54:14.515Z",
                "updatedAt": "2020-07-25T14:55:14.814Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar el estatus de los Kits

HTTP Request

POST https://api.anna.com.co/api/v1/kits/updateStatus

Query Parameters

Parameters Description

Agregar Kits a Usuarios

        
          
            {
              "idUser":"5eea766cf2144365f1a60e6a",
              "idKits":
              [
                "5ee520d654c30e238ff27970",
                "5ee520d654c30e238ff27970"
              ]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5eea766cf2144365f1a60e6a",
                "profile": "USER",
                "active": false,
                "step": 1,
                "email": "alexis@anna.com.co",
                "code": "87529d03-a86a-4e02-8cd0-1f8d9a891990",
                "fullRecord": false,
                "createdAt": "2020-06-17T20:00:44.256Z",
                "updatedAt": "2020-07-25T15:06:47.093Z",
                "idKits": [
                  "5ee520d654c30e238ff27970",
                  "5ee520d654c30e238ff27970"
                ]
              }
            }
          
        
      

Este endpoint sirve para agregar los kits a los usuarios

HTTP Request

POST https://api.anna.com.co/api/v1/kits/addKitsUser

Query Parameters

Parameters Description

Buscar Cupones por País

        
          
            {
              "idCountry":"CO"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5eece5bf6186743de6846a9c",
                  "idCountry": "CO",
                  "name": "Prueba Cupon 1",
                  "code": "36EFLE",
                  "value": 0.05,
                  "quantity": "100",
                  "used": "0",
                  "dateStart": "15/07/2020",
                  "dateEnd": "15/08/2020",
                  "active": true,
                  "visible": true,
                  "createdAt": "2020-06-19T16:20:15.086Z",
                  "updatedAt": "2020-06-19T16:20:15.086Z"
                },
                {
                  "_id": "5ee93a7441889e7c243b21ed",
                  "idCountry": "CO",
                  "name": "Prueba Cupon 1",
                  "code": "ZAZS6Z",
                  "value": 0.15,
                  "quantity": "200",
                  "used": "0",
                  "dateStart": "25/07/2020",
                  "dateEnd": "25/08/2020",
                  "active": false,
                  "visible": false,
                  "createdAt": "2020-06-16T21:32:36.134Z",
                  "updatedAt": "2020-06-19T16:25:01.905Z"
                },
                {
                  "_id": "5ee93a29650a6b7b5d0d4dc5",
                  "idCountry": "CO",
                  "name": "Prueba Cupon 1",
                  "code": "K2YFW7",
                  "value": 0.05,
                  "quantity": "100",
                  "used": "0",
                  "dateStart": "15/07/2020",
                  "dateEnd": "15/08/2020",
                  "active": true,
                  "visible": true,
                  "createdAt": "2020-06-16T21:31:21.020Z",
                  "updatedAt": "2020-06-16T21:31:21.020Z"
                },
                {
                  "_id": "5ee93a25650a6b7b5d0d4dc4",
                  "idCountry": "CO",
                  "name": "Prueba Cupon 1",
                  "code": "LS98ES",
                  "value": 0.05,
                  "quantity": "100",
                  "used": "0",
                  "dateStart": "15/07/2020",
                  "dateEnd": "15/08/2020",
                  "active": true,
                  "visible": true,
                  "createdAt": "2020-06-16T21:31:17.279Z",
                  "updatedAt": "2020-06-16T21:31:17.279Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para retornar los valores de Cupones segun el país

HTTP Request

POST https://api.anna.com.co/api/v1/coupons/list

Query Parameters

Parameters Description

Guardar data de Cupones por país

        
          
            {
              "idCountry":"CO",
              "name":"prueba cupon 1",
              "value":0.05,
              "quantity":"100",
              "used":"0",
              "dateStart":"15/07/2020",
              "dateEnd":"15/08/2020",
              "active":true,
              "visible":true
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "idCountry": "CO",
                "name": "Prueba Cupon 1",
                "code": "F4TM7X",
                "value": 0.05,
                "quantity": "100",
                "used": "0",
                "dateStart": "15/07/2020",
                "dateEnd": "15/08/2020",
                "active": true,
                "visible": true,
                "createdAt": "2020-07-25T16:13:53.948Z",
                "updatedAt": "2020-07-25T16:13:53.948Z",
                "_id": "5f1c5a4185d48d612465a85b"
              }
            }
          
        
      

Este endpoint sirve para guardar los valores de Cupones para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/coupons/store

Query Parameters

Parameters Description

Actualizar Cupones por país

        
          
            {
              "id":"5ee93a7441889e7c243b21ed",
              "idCountry":"CO",
              "name":"prueba cupon 1",
              "value":0.15,
              "quantity":"200",
              "used":"0",
              "dateStart":"25/07/2020",
              "dateEnd":"25/08/2020"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee93a7441889e7c243b21ed",
                "idCountry": "CO",
                "name": "Prueba Cupon 1",
                "code": "ZAZS6Z",
                "value": 0.15,
                "quantity": "200",
                "used": "0",
                "dateStart": "25/07/2020",
                "dateEnd": "25/08/2020",
                "active": false,
                "visible": false,
                "createdAt": "2020-06-16T21:32:36.134Z",
                "updatedAt": "2020-07-25T16:18:01.601Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los valores de Cupones para cada pais

HTTP Request

POST https://api.anna.com.co/api/v1/coupons/update

Query Parameters

Parameters Description

Actualizar Estatus de Cupón

        
          
            {
              "id":"5ee93a7441889e7c243b21ed"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee93a7441889e7c243b21ed",
                "idCountry": "CO",
                "name": "Prueba Cupon 1",
                "code": "ZAZS6Z",
                "value": 0.15,
                "quantity": "200",
                "used": "0",
                "dateStart": "25/07/2020",
                "dateEnd": "25/08/2020",
                "active": false,
                "visible": false,
                "createdAt": "2020-06-16T21:32:36.134Z",
                "updatedAt": "2020-07-25T16:24:34.495Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar el estatus de los Cupones

HTTP Request

POST https://api.anna.com.co/api/v1/coupons/updateStatus

Query Parameters

Parameters Description

Actualizar Visibilidad de Cupones

        
          
            {
              "id":"5ee93a7441889e7c243b21ed"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee93a7441889e7c243b21ed",
                "idCountry": "CO",
                "name": "Prueba Cupon 1",
                "code": "ZAZS6Z",
                "value": 0.15,
                "quantity": "200",
                "used": "0",
                "dateStart": "25/07/2020",
                "dateEnd": "25/08/2020",
                "active": false,
                "visible": true,
                "createdAt": "2020-06-16T21:32:36.134Z",
                "updatedAt": "2020-07-25T16:26:16.011Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar la visibilidad del cupón

HTTP Request

POST https://api.anna.com.co/api/v1/coupons/updateVisible

Query Parameters

Parameters Description

Listar Operaciones

        
          
            const headers = { Authorization: `${token}` };
            {
              "id":"5ee93a7441889e7c243b21ed"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5ee93a7441889e7c243b21ed",
                "idCountry": "CO",
                "name": "Prueba Cupon 1",
                "code": "ZAZS6Z",
                "value": 0.15,
                "quantity": "200",
                "used": "0",
                "dateStart": "25/07/2020",
                "dateEnd": "25/08/2020",
                "active": false,
                "visible": true,
                "createdAt": "2020-06-16T21:32:36.134Z",
                "updatedAt": "2020-07-25T16:26:16.011Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar la visibilidad del cupón

HTTP Request

POST https://api.anna.com.co/api/v1/coupons/updateVisible

Query Parameters

Parameters Description

Crear Multa

        
          
            {
              "profile":"user",       //user o partner
              "description":"no recibio a la annita",
              "value":"4"             //Porcentaje de la multa
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "profile": "USER",
                "description": "No Recibio A La Annita",
                "value": "4",
                "visible": true,
                "createdAt": "2020-09-01T17:39:15.602Z",
                "updatedAt": "2020-09-01T17:39:15.602Z",
                "_id": "5f4e8743493d8e7835bfa1e4"
              }
            }
          
        
      

Este endpoint sirve para registrar en la configuración las multas disponibles para ser asignadas a las annitas o clientes

HTTP Request

POST https://api.anna.com.co/api/v1/fines/store

Query Parameters

Parameters Description

Actualizar Multa

        
          
            {
              "id": "5f4e8743493d8e7835bfa1e4",
              "profile":"user",
              "description":"no recibio a la annita",
              "value":"2"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f4e8743493d8e7835bfa1e4",
                "profile": "USER",
                "description": "No Recibio A La Annita",
                "value": "2",
                "visible": true,
                "createdAt": "2020-09-01T17:39:15.602Z",
                "updatedAt": "2020-09-01T19:09:13.919Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar en la configuración las multas disponibles para ser asignadas a las annitas o clientes

HTTP Request

POST https://api.anna.com.co/api/v1/fines/update

Query Parameters

Parameters Description

Actualizar Status Multa

        
          
            {
              "id": "5f4e82ffd0b06c6fa8440def"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f4e82ffd0b06c6fa8440def",
                "profile": "PARTNER",
                "description": "Mala Presentación",
                "value": "2",
                "visible": false,
                "createdAt": "2020-09-01T17:21:03.058Z",
                "updatedAt": "2020-09-01T19:11:40.008Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar el status de las multas disponibles para ser asignadas a las annitas o clientes

HTTP Request

POST https://api.anna.com.co/api/v1/fines/updateStatus

Query Parameters

Parameters Description

Obtener Multas por Perfil

        
          
            {
              "profile": "user"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5f4e8743493d8e7835bfa1e4",
                  "profile": "USER",
                  "description": "No Recibio A La Annita",
                  "value": "2",
                  "visible": true,
                  "createdAt": "2020-09-01T17:39:15.602Z",
                  "updatedAt": "2020-09-01T19:09:13.919Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para obtener las multas disponibles activas en la configuración para ser asignadas a clientes o annitas

HTTP Request

POST https://api.anna.com.co/api/v1/fines/getFinesByProfile

Query Parameters

Parameters Description

Listar Multas

        
          
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5f4e82ffd0b06c6fa8440def",
                  "profile": "PARTNER",
                  "description": "Mala Presentación",
                  "value": "2",
                  "visible": false,
                  "createdAt": "2020-09-01T17:21:03.058Z",
                  "updatedAt": "2020-09-01T19:11:40.008Z"
                },
                {
                  "_id": "5f4e8743493d8e7835bfa1e4",
                  "profile": "USER",
                  "description": "No Recibio A La Annita",
                  "value": "2",
                  "visible": true,
                  "createdAt": "2020-09-01T17:39:15.602Z",
                  "updatedAt": "2020-09-01T19:09:13.919Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para listar todas las multas registradas en la configuración

HTTP Request

POST https://api.anna.com.co/api/v1/fines/listAllFines

Query Parameters

Parameters Description

Listar Soporte

        
          
            {
              "profile" : "USER" //PARTNER
            }            
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": [
                {
                  "_id": "5f6cf2b5b9d1703a15ca7dbc",
                  "title": "Tienes Problemas Con Tu Annita",
                  "profile": "USER",
                  "content": [
                    {
                      "type": "VIDEO",
                      "value": "https://youtu.be/KzSlyGHjTX8"
                    },
                    {
                      "type": "TEXT",
                      "value": "Este es un texto de prueba para el soporte"
                    }
                  ],
                  "status": true,
                  "count": 2,
                  "createdAt": "2020-09-24T19:25:41.589Z",
                  "updatedAt": "2020-09-24T19:28:03.002Z"
                }
              ]
            }
          
        
      

Este endpoint sirve para listar los elementos de soporte segun el tipo de perfil especificado

HTTP Request

POST https://api.anna.com.co/api/v1/support/list

Query Parameters

Parameters Description

Crear Soporte

        
          
            {
              "title" : "Tienes problemas con tu annita",
              "profile" : "partner",
              "content" : 
              [
                {
                  "type" : "TEXT",
                  "value" : "Este es un texto de prueba para el soporte"
                },
                {
                  "type" : "VIDEO",
                  "value" : "https://youtu.be/KzSlyGHjTX8"
                }
                {
                  "type" : "IMAGE",
                  "value" : "/support/bb6a17bb-acf5-4831-882f-bc5d89cc0934.jpg"
                }                
              ]
            }           
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "title": "Tienes Problemas Con Tu Annita",
                "profile": "PARTNER",
                "content": [
                  {
                    "type": "TEXT",
                    "value": "Este es un texto de prueba para el soporte"
                  },
                  {
                    "type": "VIDEO",
                    "value": "https://youtu.be/KzSlyGHjTX8"
                  },
                  {
                    "type": "IMAGE",
                    "value": "/support/bb6a17bb-acf5-4831-882f-bc5d89cc0934.jpg"
                  }
                ],
                "status": true,
                "count": 0,
                "createdAt": "2020-09-24T22:23:33.282Z",
                "updatedAt": "2020-09-24T22:23:33.282Z",
                "_id": "5f6d1c6523049e579c70b0dd"
              }
            }
          
        
      

Este endpoint sirve para crear nuevos elementos de soporte segun el tipo de perfil especificado

HTTP Request

POST https://api.anna.com.co/api/v1/support/store

Query Parameters

Parameters Description

Actualizar Soporte

        
          
            {
              "id": "5f6d1c6523049e579c70b0dd",
              "title" : "El cliente no se encontraba en la ubicación",
              "profile" : "partner",
              "content" : 
              [
                {
                  "type" : "VIDEO",
                  "value" : "https://youtu.be/KzSlyGHjTX8"
                },
                {
                  "type" : "TEXT",
                  "value" : "Este es un texto de prueba para el soporte"
                },
                {
                  "type" : "IMAGE",
                  "value" : "/support/bb6a17bb-acf5-4831-882f-bc5d89cc0934.jpg"
                }                 
              ]
            }           
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f6d1c6523049e579c70b0dd",
                "title": "El Cliente No Se Encontraba En La Ubicación",
                "profile": "PARTNER",
                "content": [
                  {
                    "type": "VIDEO",
                    "value": "https://youtu.be/KzSlyGHjTX8"
                  },
                  {
                    "type": "TEXT",
                    "value": "Este es un texto de prueba para el soporte"
                  },
                  {
                    "type": "IMAGE",
                    "value": "/support/bb6a17bb-acf5-4831-882f-bc5d89cc0934.jpg"
                  }
                ],
                "status": true,
                "count": 0,
                "createdAt": "2020-09-24T22:23:33.282Z",
                "updatedAt": "2020-09-24T22:32:11.290Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar los elementos de soporte segun el tipo de perfil especificado

HTTP Request

POST https://api.anna.com.co/api/v1/support/update

Query Parameters

Parameters Description

Actualizar Estatus

        
          
            {
              "id": "5f6cf2b5b9d1703a15ca7dbc"
            }          
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f6cf2b5b9d1703a15ca7dbc",
                "title": "Tienes Problemas Con Tu Annita",
                "profile": "USER",
                "content": [
                  {
                    "type": "VIDEO",
                    "value": "https://youtu.be/KzSlyGHjTX8"
                  },
                  {
                    "type": "TEXT",
                    "value": "Este es un texto de prueba para el soporte"
                  }
                ],
                "status": false,
                "count": 0,
                "createdAt": "2020-09-24T19:25:41.589Z",
                "updatedAt": "2020-09-24T22:34:39.786Z"
              }
            }
          
        
      

Este endpoint sirve para actualizar el estatus de los elementos de soporte segun el tipo de perfil especificado

HTTP Request

POST https://api.anna.com.co/api/v1/support/updateStatus

Query Parameters

Parameters Description

Detalles de Soporte

        
          
            {
              "id": "5f6cf2b5b9d1703a15ca7dbc"
            }          
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "_id": "5f6cf2b5b9d1703a15ca7dbc",
                "title": "Tienes Problemas Con Tu Annita",
                "profile": "USER",
                "content": [
                  {
                    "type": "VIDEO",
                    "value": "https://youtu.be/KzSlyGHjTX8"
                  },
                  {
                    "type": "TEXT",
                    "value": "Este es un texto de prueba para el soporte"
                  }
                ],
                "status": false,
                "count": 0,
                "createdAt": "2020-09-24T19:25:41.589Z",
                "updatedAt": "2020-09-24T22:34:39.786Z"
              }
            }
          
        
      

Este endpoint sirve para obtener los detalles de los elementos de soporte segun el tipo de perfil especificado

HTTP Request

POST https://api.anna.com.co/api/v1/support/findById

Query Parameters

Parameters Description

Cargar Imagen

        
          
            {
              "image": "imagen en base64"
            }          
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": "/support/bb6a17bb-acf5-4831-882f-bc5d89cc0934.jpg"
            }
          
        
      

Este endpoint sirve para cargar las imagenes a registrar en el array de soporte, el endpoint retorna la ruta

HTTP Request

POST https://api.anna.com.co/api/v1/support/uploadImage

Query Parameters

Parameters Description

Obtener Código

        
          
            {
              "phone":"+573182442283"
            }        
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": {
                    "_id": "5f98542ed4ba534363ac60fe",
                    "profile": "USER",
                    "active": false,
                    "step": 1,
                    "fullRecord": false,
                    "phone": "+573182442283",
                    "createdAt": "2020-10-27T17:09:02.746Z",
                    "updatedAt": "2020-10-27T17:09:02.746Z",
                    "lastLogin": "2020-10-27T17:09:02.746Z"
                }
            }
          
        
      

Este endpoint sirve para recibir el número de teléfono del usuario, enviar el sms con el código y verificar si el usuario esta o no registrado

HTTP Request

POST https://api.anna.com.co/api/v1/user/verifyPhoneAdmin

Query Parameters

Parameters Description

Validar Código

        
          
            {
              "code":"2320",
              "idUser": "5f98542ed4ba534363ac60fe"
            }   
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Ahora sube tu foto de perfil y tu nombre",
                "message_en": "",
                "result": {
                    "_id": "5f98542ed4ba534363ac60fe",
                    "profile": "USER",
                    "active": true,
                    "step": 2,
                    "fullRecord": false,
                    "phone": "+573182442283",
                    "code": "",
                    "createdAt": "2020-10-27T17:09:02.746Z",
                    "updatedAt": "2020-10-27T17:15:37.155Z",
                    "lastLogin": "2020-10-27T17:09:02.746Z",
                    "confirmPhone": true
                }
            }
          
        
      

Este endpoint sirve para recibir código de seguridad enviado por sms al cliente, validar el telefono y activar la cuenta del usuario

HTTP Request

POST https://api.anna.com.co/api/v1/user/validPhoneAdmin

Query Parameters

Parameters Description

Paso 1: Datos del usuario

        
          
            {
              "firstName":"Víctor",
              "lastName":"Franco",
              "email":"victorfranco19@gmail.com",
              "idUser": "5f98542ed4ba534363ac60fe"
            }  
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Ahora ingresa tus datos del inmueble",
                "message_en": "",
                "result": {
                    "_id": "5f98542ed4ba534363ac60fe",
                    "profile": "USER",
                    "active": true,
                    "step": 3,
                    "fullRecord": false,
                    "phone": "+573182442283",
                    "code": "",
                    "createdAt": "2020-10-27T17:09:02.746Z",
                    "updatedAt": "2020-10-27T17:20:27.517Z",
                    "lastLogin": "2020-10-27T17:09:02.746Z",
                    "confirmPhone": true,
                    "email": "victorfranco32@gmail.com",
                    "firstName": "Víctor",
                    "lastName": "Franco",
                    "location": []
                }
            }
          
        
      

Este endpoint sirve para recibir recibir y validar la información personal del usuario

HTTP Request

POST https://api.anna.com.co/api/v1/user/userStep2Admin

Query Parameters

Parameters Description

Paso 2: Crear Ubicación

        
          
            {
                "area":1,
                "alias":"Prueba",
                "property":"Apartamento",
                "floor":"Simple",
                "address":"Cra 83B #36B-145",
                "suggestion":"Manatí, T5, Apto 103",
                "lat":"10.390642",
                "lng":"-75.462820",
                "idUser": "5f98542ed4ba534363ac60fe"
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": {
                    "idUser": "5f98542ed4ba534363ac60fe",
                    "alias": "Prueba",
                    "property": "Apartamento",
                    "floor": "Simple",
                    "area": 1,
                    "address": "Cra 83B #36B-145",
                    "suggestion": "Manatí, T5, Apto 103",
                    "lat": "10.390642",
                    "lng": "-75.462820",
                    "country": "Colombia",
                    "countryCode": "CO",
                    "zipcode": "130008",
                    "city": null,
                    "neighborhood": "Provincia De Cartagena",
                    "active": true,
                    "createdAt": "2020-10-27T18:23:44.122Z",
                    "updatedAt": "2020-10-27T18:23:44.122Z",
                    "_id": "5f9865b0c238705f876bff91"
                }
            }
          
        
      

Este endpoint sirve para crear nuevos inmuebles del usuario por el administrador

HTTP Request

POST https://api.anna.com.co/api/v1/user/newLocationAdmin

Query Parameters

Parameters Description

Paso 3: Lista de Servicios

        
          
            {
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "_id": "5f767d678811a7822d44e0ab",
                        "name": "Cocina Pro",
                        "icon": "/images/icon_cocina_pro@2x.png",
                        "includes": [
                            "Limpieza Extrusiva de toda la cocina",
                            "Limpieza Extrusiva  nevera y Organización pro de alimentos",
                            "Limpieza Extrusiva de la campana extractora y Hornos",
                            "Organización pro de elementos de cocina (vajilla – menaje - elementos de aseo - alimentos etc.)",
                            "control de fechas vencidas y por vencen en todos los productos"
                        ],
                        "notIncludes": [
                            "Cocinar",
                            "Realizar el brillado de ollas o piezas de cobre",
                            "No incluye productos de aseo",
                            "Lavado de motores de licuadora",
                            "Lavado de electrodomésticos de cocina (sandwcheras, wafleras, cafeteras…)",
                            "No se realiza limpieza y organización es áreas diferentes a la cocina",
                            "Limpieza de techos"
                        ],
                        "details": [
                            "Barrido",
                            "Trapeado",
                            "Polvo",
                            "Desinfección",
                            "Limpieza Profunda"
                        ],
                        "suggestions": [
                            {
                                "id": "5f765b518811a7822d44bc2a"
                            },
                            {
                                "id": "5f767bd98811a7822d44deac"
                            },
                            {
                                "id": "5f767cad8811a7822d44dfa2"
                            },
                            {
                                "id": "5f7680be8811a7822d44e5dc"
                            },
                            {
                                "id": "5f7b8ba98811a7822d48a7cb"
                            }
                        ],
                        "active": false,
                        "createdAt": "2020-10-01T11:03:30.713Z",
                        "updatedAt": "2020-10-01T12:28:27.887Z",
                        "calculate": {
                            "basePrice": 45000,
                            "area": [
                                8000,
                                16000,
                                24000,
                                32000,
                                40000,
                                48000
                            ],
                            "time": 20000
                        },
                        "itemService": [
                            {
                                "_id": "5f007ded8811a7822d18dede",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Area",
                                "labelEs": "Area mt2",
                                "labelEn": "Area mt2",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "30 - 50 (mt2)",
                                        "porcent": 1,
                                        "time": 25
                                    },
                                    {
                                        "value": 2,
                                        "text": "51 - 80 (mt2)",
                                        "porcent": 1,
                                        "time": 45
                                    },
                                    {
                                        "value": 3,
                                        "text": "81 - 120 (mt2)",
                                        "porcent": 1,
                                        "time": 60
                                    },
                                    {
                                        "value": 4,
                                        "text": "121 - 180 (mt2)",
                                        "porcent": 1,
                                        "time": 85
                                    },
                                    {
                                        "value": 5,
                                        "text": "181 - 250 (mt2)",
                                        "porcent": 1,
                                        "time": 110
                                    },
                                    {
                                        "value": 6,
                                        "text": "Mayor a 250 (mt2)",
                                        "porcent": 1,
                                        "time": 135
                                    }
                                ],
                                "helpEs": "Area de la superficie del inmueble",
                                "helpEn": "Area de la superficie del inmueble"
                            }
                        ]
                    },
                    {
                        "_id": "5f7680be8811a7822d44e5dc",
                        "name": "Organización de Closets",
                        "icon": "/images/icon_Organizacion_Closet@2x.png",
                        "includes": [
                            "Organización pro de ropa",
                            "Organización pro de zapatos",
                            "Organización pro de accesorios",
                            "Armonías de Color",
                            "Mantener una estética unificada - Planimetría"
                        ],
                        "notIncludes": [
                            "No incluye cajas de almacenaje",
                            "No incluye productos de aseo",
                            "Realizar compras o alguna actividad diferente al Organizacion de Closet",
                            "Lavado o Planchado de Ropa",
                            "Sacar basura"
                        ],
                        "details": [
                            "Ordenar",
                            "Doblar La Ropa"
                        ],
                        "suggestions": [
                            {
                                "id": "5f765b518811a7822d44bc2a"
                            },
                            {
                                "id": "5f767bd98811a7822d44deac"
                            },
                            {
                                "id": "5f767cad8811a7822d44dfa2"
                            },
                            {
                                "id": "5f767d678811a7822d44e0ab"
                            },
                            {
                                "id": "5f7b8ba98811a7822d48a7cb"
                            }
                        ],
                        "active": false,
                        "createdAt": "2020-10-01T11:03:30.713Z",
                        "updatedAt": "2020-10-01T12:28:27.887Z",
                        "calculate": {
                            "area": [
                                65000,
                                65000,
                                75000,
                                75000,
                                95000,
                                95000
                            ],
                            "time": 15000
                        },
                        "itemService": [
                            {
                                "_id": "5f007ded8811a7822d18dede",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Area",
                                "labelEs": "Area mt2",
                                "labelEn": "Area mt2",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "30 - 50 (mt2)",
                                        "porcent": 1,
                                        "time": 25
                                    },
                                    {
                                        "value": 2,
                                        "text": "51 - 80 (mt2)",
                                        "porcent": 1,
                                        "time": 45
                                    },
                                    {
                                        "value": 3,
                                        "text": "81 - 120 (mt2)",
                                        "porcent": 1,
                                        "time": 60
                                    },
                                    {
                                        "value": 4,
                                        "text": "121 - 180 (mt2)",
                                        "porcent": 1,
                                        "time": 85
                                    },
                                    {
                                        "value": 5,
                                        "text": "181 - 250 (mt2)",
                                        "porcent": 1,
                                        "time": 110
                                    },
                                    {
                                        "value": 6,
                                        "text": "Mayor a 250 (mt2)",
                                        "porcent": 1,
                                        "time": 135
                                    }
                                ],
                                "helpEs": "Area de la superficie del inmueble",
                                "helpEn": "Area de la superficie del inmueble"
                            },
                            {
                                "_id": "5f7f7b158811a7822d4bfc1c",
                                "name": "Quantity",
                                "labelEs": "Cantidad",
                                "labelEn": "Quantity",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "1"
                                    },
                                    {
                                        "value": 2,
                                        "text": "2"
                                    },
                                    {
                                        "value": 3,
                                        "text": "3"
                                    },
                                    {
                                        "value": 4,
                                        "text": "4"
                                    },
                                    {
                                        "value": 5,
                                        "text": "5"
                                    },
                                    {
                                        "value": 6,
                                        "text": "6"
                                    }
                                ],
                                "helpEs": "Número De Closets",
                                "helpEn": "Number of Closets"
                            }
                        ]
                    },
                    {
                        "_id": "5f767cad8811a7822d44dfa2",
                        "name": "Aseo Profundo",
                        "icon": "/images/icon_aseo_profundo@2x.png",
                        "active": false,
                        "includes": [
                            "Aseo y organización profunda de los cuartos de baño",
                            "Aseo y organización profunda de las habitaciones",
                            "Aseo y organización profunda del cuarto de estudio",
                            "Aseo y organización profunda de sala comedor",
                            "Aseo superficial de cocina (limpieza de paredes, muebles solo exterior y lavado de pisos "
                        ],
                        "notIncludes": [
                            "Cocinar",
                            "Realizar el brillado de ollas o piezas de cobre",
                            "No incluye productos de aseo",
                            "Realizar compras o alguna actividad diferente al servicio de aseo general",
                            "Limpieza de techos",
                            "Limpieza o lavado de fachadas",
                            "Lavado o Planchado de ropa"
                        ],
                        "details": [
                            "Barrido",
                            "Trapeado",
                            "Polvo",
                            "Desinfección"
                        ],
                        "suggestions": [
                            {
                                "id": "5f767d678811a7822d44e0ab"
                            },
                            {
                                "id": "5f7680be8811a7822d44e5dc"
                            },
                            {
                                "id": "5f7b8ba98811a7822d48a7cb"
                            }
                        ],
                        "createdAt": "2020-10-01T11:03:30.713Z",
                        "updatedAt": "2020-10-01T12:28:27.887Z",
                        "calculate": {
                            "basePrice": {
                                "Apartamento": 62000,
                                "Casa": 69750
                            },
                            "rooms": {
                                "Apartamento": 8525,
                                "Casa": 11625
                            },
                            "bathrooms": {
                                "Apartamento": 8525,
                                "Casa": 11625
                            },
                            "area": [
                                0.03,
                                0.06,
                                0.09,
                                0.12,
                                0.15,
                                0.18
                            ],
                            "time": 15000
                        },
                        "itemService": [
                            {
                                "_id": "5ec953e8b605a3360a5c6b44",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Room",
                                "labelEs": "Habitaciones",
                                "labelEn": "Rooms",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "1",
                                        "priceApartament": 0,
                                        "priceHouse": 0,
                                        "time": 36
                                    },
                                    {
                                        "value": 2,
                                        "text": "2",
                                        "priceApartament": 5500,
                                        "priceHouse": 7500,
                                        "time": 72
                                    },
                                    {
                                        "value": 3,
                                        "text": "3",
                                        "priceApartament": 11000,
                                        "priceHouse": 15000,
                                        "time": 108
                                    },
                                    {
                                        "value": 4,
                                        "text": "4",
                                        "priceApartament": 16500,
                                        "priceHouse": 22500,
                                        "time": 144
                                    },
                                    {
                                        "value": 5,
                                        "text": "5",
                                        "priceApartament": 22000,
                                        "priceHouse": 30000,
                                        "time": 180
                                    },
                                    {
                                        "value": 6,
                                        "text": "6-10",
                                        "priceApartament": 27500,
                                        "priceHouse": 37500,
                                        "time": 216
                                    }
                                ],
                                "helpEs": "Número De Habitaciones Que Posee El Inmueble",
                                "helpEn": "Numbers Rooms Have This Property"
                            },
                            {
                                "_id": "5ec95514b605a3360a5c6b45",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Bathroom",
                                "labelEs": "Baños",
                                "labelEn": "Bathrooms",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "1",
                                        "priceApartament": 0,
                                        "priceHouse": 0,
                                        "time": 36
                                    },
                                    {
                                        "value": 2,
                                        "text": "2",
                                        "priceApartament": 5500,
                                        "priceHouse": 7500,
                                        "time": 72
                                    },
                                    {
                                        "value": 3,
                                        "text": "3",
                                        "priceApartament": 11000,
                                        "priceHouse": 15000,
                                        "time": 108
                                    },
                                    {
                                        "value": 4,
                                        "text": "4",
                                        "priceApartament": 16500,
                                        "priceHouse": 22500,
                                        "time": 144
                                    },
                                    {
                                        "value": 5,
                                        "text": "5",
                                        "priceApartament": 22000,
                                        "priceHouse": 30000,
                                        "time": 180
                                    },
                                    {
                                        "value": 6,
                                        "text": "6-10",
                                        "priceApartament": 27500,
                                        "priceHouse": 37500,
                                        "time": 216
                                    }
                                ],
                                "helpEs": "Número De Baños Que Posee El Inmueble",
                                "helpEn": "Numbers Baños Have This Property"
                            },
                            {
                                "_id": "5ec955ceb605a3360a5c6b46",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Property",
                                "labelEs": "Tipo De Inmueble",
                                "labelEn": "Property Type",
                                "type": "select",
                                "options": [
                                    {
                                        "value": "Apartamento",
                                        "textEs": "Apartamento",
                                        "textEn": "Apartament",
                                        "price": 40000
                                    },
                                    {
                                        "value": "Casa",
                                        "textEs": "Casa",
                                        "textEn": "House",
                                        "price": 45000
                                    }
                                ],
                                "helpEs": "Tipo De Inmueble",
                                "helpEn": "Property Type"
                            },
                            {
                                "_id": "5f007ded8811a7822d18dede",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Area",
                                "labelEs": "Area mt2",
                                "labelEn": "Area mt2",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "30 - 50 (mt2)",
                                        "porcent": 1,
                                        "time": 25
                                    },
                                    {
                                        "value": 2,
                                        "text": "51 - 80 (mt2)",
                                        "porcent": 1,
                                        "time": 45
                                    },
                                    {
                                        "value": 3,
                                        "text": "81 - 120 (mt2)",
                                        "porcent": 1,
                                        "time": 60
                                    },
                                    {
                                        "value": 4,
                                        "text": "121 - 180 (mt2)",
                                        "porcent": 1,
                                        "time": 85
                                    },
                                    {
                                        "value": 5,
                                        "text": "181 - 250 (mt2)",
                                        "porcent": 1,
                                        "time": 110
                                    },
                                    {
                                        "value": 6,
                                        "text": "Mayor a 250 (mt2)",
                                        "porcent": 1,
                                        "time": 135
                                    }
                                ],
                                "helpEs": "Area de la superficie del inmueble",
                                "helpEn": "Area de la superficie del inmueble"
                            }
                        ]
                    },
                    {
                        "_id": "5f767bd98811a7822d44deac",
                        "name": "Aseo Express",
                        "icon": "/images/icon_aseo_xpress@2x.png",
                        "active": false,
                        "includes": [
                            "Limpieza de cuartos de baño",
                            "Limpieza de las habitaciones",
                            "Limpieza de cuarto de estudio",
                            "Limpieza de sala comedor",
                            "Limpieza de cocina (lavado de platos, barrido y trapeado de pisos)"
                        ],
                        "notIncludes": [
                            "Cocinar, lavar o planchar ropa ",
                            "Realizar el brillado de ollas o piezas de cobre",
                            "No incluye productos de aseo",
                            "Lavado de Paredes internas, fachadas o limpieza profunda de polvo",
                            "Correr muebles o mesas para barrer o trapear ",
                            "Realizar compras o alguna actividad diferente al servicio Expess",
                            "Limpieza de techos, persianas, vidrios o ventanas exteriores"
                        ],
                        "details": [
                            "Barrido",
                            "Trapeado",
                            "Polvo",
                            "Desinfección"
                        ],
                        "suggestions": [
                            {
                                "id": "5f767d678811a7822d44e0ab"
                            },
                            {
                                "id": "5f7680be8811a7822d44e5dc"
                            },
                            {
                                "id": "5f7b8ba98811a7822d48a7cb"
                            }
                        ],
                        "createdAt": "2020-10-01T11:03:30.713Z",
                        "updatedAt": "2020-10-01T12:28:27.887Z",
                        "calculate": {
                            "basePrice": {
                                "Apartamento": 22000,
                                "Casa": 24750
                            },
                            "rooms": {
                                "Apartamento": 3025,
                                "Casa": 4125
                            },
                            "bathrooms": {
                                "Apartamento": 3025,
                                "Casa": 4125
                            },
                            "area": [
                                0.03,
                                0.06,
                                0.09,
                                0.12,
                                0.15,
                                0.18
                            ],
                            "time": 15000
                        },
                        "itemService": [
                            {
                                "_id": "5ec953e8b605a3360a5c6b44",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Room",
                                "labelEs": "Habitaciones",
                                "labelEn": "Rooms",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "1",
                                        "priceApartament": 0,
                                        "priceHouse": 0,
                                        "time": 36
                                    },
                                    {
                                        "value": 2,
                                        "text": "2",
                                        "priceApartament": 5500,
                                        "priceHouse": 7500,
                                        "time": 72
                                    },
                                    {
                                        "value": 3,
                                        "text": "3",
                                        "priceApartament": 11000,
                                        "priceHouse": 15000,
                                        "time": 108
                                    },
                                    {
                                        "value": 4,
                                        "text": "4",
                                        "priceApartament": 16500,
                                        "priceHouse": 22500,
                                        "time": 144
                                    },
                                    {
                                        "value": 5,
                                        "text": "5",
                                        "priceApartament": 22000,
                                        "priceHouse": 30000,
                                        "time": 180
                                    },
                                    {
                                        "value": 6,
                                        "text": "6-10",
                                        "priceApartament": 27500,
                                        "priceHouse": 37500,
                                        "time": 216
                                    }
                                ],
                                "helpEs": "Número De Habitaciones Que Posee El Inmueble",
                                "helpEn": "Numbers Rooms Have This Property"
                            },
                            {
                                "_id": "5ec95514b605a3360a5c6b45",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Bathroom",
                                "labelEs": "Baños",
                                "labelEn": "Bathrooms",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "1",
                                        "priceApartament": 0,
                                        "priceHouse": 0,
                                        "time": 36
                                    },
                                    {
                                        "value": 2,
                                        "text": "2",
                                        "priceApartament": 5500,
                                        "priceHouse": 7500,
                                        "time": 72
                                    },
                                    {
                                        "value": 3,
                                        "text": "3",
                                        "priceApartament": 11000,
                                        "priceHouse": 15000,
                                        "time": 108
                                    },
                                    {
                                        "value": 4,
                                        "text": "4",
                                        "priceApartament": 16500,
                                        "priceHouse": 22500,
                                        "time": 144
                                    },
                                    {
                                        "value": 5,
                                        "text": "5",
                                        "priceApartament": 22000,
                                        "priceHouse": 30000,
                                        "time": 180
                                    },
                                    {
                                        "value": 6,
                                        "text": "6-10",
                                        "priceApartament": 27500,
                                        "priceHouse": 37500,
                                        "time": 216
                                    }
                                ],
                                "helpEs": "Número De Baños Que Posee El Inmueble",
                                "helpEn": "Numbers Baños Have This Property"
                            },
                            {
                                "_id": "5ec955ceb605a3360a5c6b46",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Property",
                                "labelEs": "Tipo De Inmueble",
                                "labelEn": "Property Type",
                                "type": "select",
                                "options": [
                                    {
                                        "value": "Apartamento",
                                        "textEs": "Apartamento",
                                        "textEn": "Apartament",
                                        "price": 40000
                                    },
                                    {
                                        "value": "Casa",
                                        "textEs": "Casa",
                                        "textEn": "House",
                                        "price": 45000
                                    }
                                ],
                                "helpEs": "Tipo De Inmueble",
                                "helpEn": "Property Type"
                            },
                            {
                                "_id": "5f007ded8811a7822d18dede",
                                "idService": "5ec9459032ac9d1941acc019",
                                "name": "Area",
                                "labelEs": "Area mt2",
                                "labelEn": "Area mt2",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "30 - 50 (mt2)",
                                        "porcent": 1,
                                        "time": 25
                                    },
                                    {
                                        "value": 2,
                                        "text": "51 - 80 (mt2)",
                                        "porcent": 1,
                                        "time": 45
                                    },
                                    {
                                        "value": 3,
                                        "text": "81 - 120 (mt2)",
                                        "porcent": 1,
                                        "time": 60
                                    },
                                    {
                                        "value": 4,
                                        "text": "121 - 180 (mt2)",
                                        "porcent": 1,
                                        "time": 85
                                    },
                                    {
                                        "value": 5,
                                        "text": "181 - 250 (mt2)",
                                        "porcent": 1,
                                        "time": 110
                                    },
                                    {
                                        "value": 6,
                                        "text": "Mayor a 250 (mt2)",
                                        "porcent": 1,
                                        "time": 135
                                    }
                                ],
                                "helpEs": "Area de la superficie del inmueble",
                                "helpEn": "Area de la superficie del inmueble"
                            }
                        ]
                    },
                    {
                        "_id": "5f80c9738811a7822d4d2caa",
                        "name": "Planchado de Ropa",
                        "icon": "/images/icon_planchado@2x.png",
                        "includes": [
                            "Planchado de las prendas solicitadas.",
                            "Nos trasladamos al domicilio del cliente.",
                            "Prendas: Camisas, blusas, Pantalones Sport/Vestir, Vestidos, Faldas, Ropa interior, Camisetas Polos, Ropa deportiva, Consideraciones Ropa de hogar: Los juegos de sábanas se consideran 2 prendas.",
                            "Serán planchadas solamente la cantidad de prendas pactadas en la compra"
                        ],
                        "notIncludes": [
                            "El cliente debe proporcionar plancha, una base de planchado y una conexión eléctrica.",
                            "No organizaríamos la ropa.",
                            "Realizar compras o alguna actividad diferente al servicio de aseo general.",
                            "Lavado de ropa ",
                            "No se realiza planchados de prendas especiales (vestidos, trajes de novios, de gala, ni de comunión, cortinas de cuartos)"
                        ],
                        "details": [
                            "Trapeado",
                            "Desinfección",
                            "Limpieza Profunda"
                        ],
                        "suggestions": [
                            {
                                "id": "5eff0e44ef8b1474d9b84dae"
                            },
                            {
                                "id": "5eff121def8b1474d9b84db2"
                            },
                            {
                                "id": "5eff1082ef8b1474d9b84daf"
                            },
                            {
                                "id": "5eff110bef8b1474d9b84db0"
                            },
                            {
                                "id": "5ec9459032ac9d1941acc019"
                            }
                        ],
                        "active": false,
                        "createdAt": "2020-10-09T11:10:21.254Z",
                        "updatedAt": "2020-10-09T12:32:39.336Z",
                        "calculate": {
                            "basePrice": 30000,
                            "pieces": [
                                12500,
                                25000,
                                37500,
                                50000,
                                62500
                            ],
                            "time": [
                                120,
                                180,
                                240,
                                300,
                                360
                            ]
                        },
                        "itemService": [
                            {
                                "_id": "5f80cae18811a7822d4d2f1c",
                                "idService": "5f80c9738811a7822d4d2caa",
                                "name": "Pieces",
                                "labelEs": "Piezas",
                                "labelEn": "Pieces",
                                "type": "select",
                                "options": [
                                    {
                                        "value": 1,
                                        "text": "0 a 20",
                                        "price": 12500,
                                        "time": 45
                                    },
                                    {
                                        "value": 2,
                                        "text": "21 a 30",
                                        "price": 25000,
                                        "time": 90
                                    },
                                    {
                                        "value": 3,
                                        "text": "31 a 40",
                                        "price": 37500,
                                        "time": 135
                                    },
                                    {
                                        "value": 4,
                                        "text": "41 a 50",
                                        "price": 50000,
                                        "time": 180
                                    },
                                    {
                                        "value": 5,
                                        "text": "Mayor a 50",
                                        "price": 62500,
                                        "time": 225
                                    }
                                ],
                                "helpEs": "Numero de piezas",
                                "helpEn": "Number of pieces"
                            }
                        ]
                    }
                ]
            }
          
        
      

Este endpoint sirve para obtener los servicios disponibles para las compras de los usuarios

HTTP Request

GET https://api.anna.com.co/api/v1/service/active2

Query Parameters

Parameters Description

Paso 4: Compra Para Ya

        
          
            {
              "idUser":"5f26fd75d5017918964d5296",
              "idLocation" : "5f09cb056282f14eaeec9f2b",
              "type" : "FOR_NOW",
              "useWallet" : false,
              "useCode" : false,
              "code":"LS98ES",
              "orders" : [
                {
                  "idService": "5f765b518811a7822d44bc2a" ,
                  "itemService" : {
                    "Area": 1,
                    "Bathroom": 1,
                    "Frequency": 1,
                    "Property": "Apartamento",
                    "Room": 1
                  }       
                }
              ]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": {
                    "idUser": "5f26fd75d5017918964d5296",
                    "idLocation": "5f09cb056282f14eaeec9f2b",
                    "refPayment": "",
                    "code": "LS98ES",
                    "numPurchase": "40",
                    "type": "FOR_NOW",
                    "amount": 52530,
                    "total": 52530,
                    "useWallet": false,
                    "payWallet": 0,
                    "useCode": false,
                    "descountCode": 0,
                    "status": "PENDING",
                    "stepFind": 0,
                    "createdAt": "2020-10-27T22:51:38.067Z",
                    "updatedAt": "2020-10-27T22:51:38.067Z",
                    "_id": "5f98a47a722327b8ce22fde6"
                }
            }
          
        
      

Este endpoint sirve para registrar las compras para ya desde el administrador

HTTP Request

POST https://api.anna.com.co/api/v1/user/puchaseAdminForNow

Query Parameters

Parameters Description

Paso 5: Compra Agendados

        
          
            {
              "idUser":"5f26fd75d5017918964d5296",
              "idLocation" : "5f09cb056282f14eaeec9f2b",
              "type" : "SCHEDULE",
              "useWallet" : false,
              "useCode" : false,
              "dates":[{"date":"2020-10-29","hour":"10:00 am"},{"date":"2020-11-05","hour":"1:00 pm"},{"date":"2020-11-06","hour":"1:00 pm"}],
              "orders" : [
                {
                  "idService": "5f765b518811a7822d44bc2a" ,
                  "itemService" : 
                  {
                    "Area": 1,
                    "Bathroom": 1,
                    "Frequency": 1,
                    "Property": "Apartamento",
                    "Room": 1
                  }   
                }
              ]
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "idUser": "5f26fd75d5017918964d5296",
                        "idLocation": "5f09cb056282f14eaeec9f2b",
                        "refPayment": "",
                        "date": "2020-10-29",
                        "hour": "10:00 am",
                        "numPurchase": "41",
                        "type": "SCHEDULE",
                        "amount": 52530,
                        "total": 52530,
                        "useWallet": false,
                        "payWallet": 0,
                        "useCode": false,
                        "descountCode": 0,
                        "status": "PENDING",
                        "stepFind": 0,
                        "createdAt": "2020-10-27T22:58:29.411Z",
                        "updatedAt": "2020-10-27T22:58:29.411Z",
                        "_id": "5f98a615722327b8ce22fde8"
                    },
                    {
                        "idUser": "5f26fd75d5017918964d5296",
                        "idLocation": "5f09cb056282f14eaeec9f2b",
                        "refPayment": "",
                        "date": "2020-11-05",
                        "hour": "1:00 pm",
                        "numPurchase": "42",
                        "type": "SCHEDULE",
                        "amount": 52530,
                        "total": 52530,
                        "useWallet": false,
                        "payWallet": 0,
                        "useCode": false,
                        "descountCode": 0,
                        "status": "PENDING",
                        "stepFind": 0,
                        "createdAt": "2020-10-27T22:58:29.482Z",
                        "updatedAt": "2020-10-27T22:58:29.482Z",
                        "_id": "5f98a615722327b8ce22fde9"
                    },
                    {
                        "idUser": "5f26fd75d5017918964d5296",
                        "idLocation": "5f09cb056282f14eaeec9f2b",
                        "refPayment": "",
                        "date": "2020-11-06",
                        "hour": "1:00 pm",
                        "numPurchase": "43",
                        "type": "SCHEDULE",
                        "amount": 52530,
                        "total": 52530,
                        "useWallet": false,
                        "payWallet": 0,
                        "useCode": false,
                        "descountCode": 0,
                        "status": "PENDING",
                        "stepFind": 0,
                        "createdAt": "2020-10-27T22:58:29.553Z",
                        "updatedAt": "2020-10-27T22:58:29.553Z",
                        "_id": "5f98a615722327b8ce22fdea"
                    }
                ]
            }
          
        
      

Este endpoint sirve para registrar las compras agendadas desde el administrador

HTTP Request

POST https://api.anna.com.co/api/v1/user/puchaseAdminForSchedule

Query Parameters

Parameters Description

Reportar Pago Admin

        
          
            {
              "id":"5f98a47a722327b8ce22fde6",
              "typePayment" : "TDC", //PSE, CASH, TRANSFERENCIA
              "refPayco" : "31359838",
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": {
                    "_id" : ObjectId("5f8e16c4fdb254d2d8303b30"),
                    "idUser" : "5f8def55a1da7402055d9010",
                    "idLocation" : "5f8defeca1da7402055d9011",
                    "refPayment" : 31358190,
                    "statusPayment" : "Rechazada",
                    "messagePayment" : "Tarjeta restringida por el centro de autorizaciones",
                    "code" : "LS98ES",
                    "numPurchase" : "57",
                    "type" : "FOR_NOW",
                    "amount" : 52530,
                    "total" : 52530,
                    "useWallet" : false,
                    "payWallet" : 0,
                    "useCode" : false,
                    "descountCode" : 0,
                    "paymentMethod" : "TDC",
                    "status" : "PENDING",
                    "stepFind" : 0,
                    "createdAt" : ISODate("2020-10-19T22:44:20.751Z"),
                    "updatedAt" : ISODate("2020-10-19T22:44:20.751Z")
                }
            }
          
        
      

Este endpoint sirve para reportar los pagos en las compras realizadas por el admin

HTTP Request

POST https://api.anna.com.co/api/v1/purchaseRequisition/reportPayment

Query Parameters

Parameters Description

Lista de Compras Admin

        
          
            {
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
                "status": 200,
                "message_es": "Operación realizada con éxito",
                "message_en": "Operation performed successfully",
                "result": [
                    {
                        "_id": "5f97594334274ecba149d57f",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idLocation": "5f09cb056282f14eaeec9f2b",
                        "refPayment": "",
                        "statusPayment": null,
                        "messagePayment": null,
                        "date": "2020-10-29",
                        "hour": "10:00 am",
                        "code": null,
                        "numPurchase": "61",
                        "type": "SCHEDULE",
                        "amount": 52530,
                        "total": 52530,
                        "useWallet": false,
                        "payWallet": 0,
                        "useCode": false,
                        "descountCode": 0,
                        "paymentMethod": null,
                        "status": "PENDING",
                        "stepFind": 0,
                        "createdAt": "2020-10-26T23:18:27.719Z",
                        "updatedAt": "2020-10-26T23:18:27.719Z"
                    },
                    {
                        "_id": "5f97594334274ecba149d580",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idLocation": "5f09cb056282f14eaeec9f2b",
                        "refPayment": "",
                        "statusPayment": null,
                        "messagePayment": null,
                        "date": "2020-11-05",
                        "hour": "1:00 pm",
                        "code": null,
                        "numPurchase": "62",
                        "type": "SCHEDULE",
                        "amount": 52530,
                        "total": 52530,
                        "useWallet": false,
                        "payWallet": 0,
                        "useCode": false,
                        "descountCode": 0,
                        "paymentMethod": null,
                        "status": "PENDING",
                        "stepFind": 0,
                        "createdAt": "2020-10-26T23:18:27.783Z",
                        "updatedAt": "2020-10-26T23:18:27.783Z"
                    },
                    {
                        "_id": "5f97594334274ecba149d581",
                        "idUser": "5f26fd75d5017918964d5296",
                        "idLocation": "5f09cb056282f14eaeec9f2b",
                        "refPayment": "",
                        "statusPayment": null,
                        "messagePayment": null,
                        "date": "2020-11-06",
                        "hour": "1:00 pm",
                        "code": null,
                        "numPurchase": "63",
                        "type": "SCHEDULE",
                        "amount": 52530,
                        "total": 52530,
                        "useWallet": false,
                        "payWallet": 0,
                        "useCode": false,
                        "descountCode": 0,
                        "paymentMethod": null,
                        "status": "PENDING",
                        "stepFind": 0,
                        "createdAt": "2020-10-26T23:18:27.847Z",
                        "updatedAt": "2020-10-26T23:18:27.847Z"
                    }
                ]
            }
          
        
      

Este endpoint sirve para listar las compras hechas por el admin pendientes de reporte de pago

HTTP Request

POST https://api.anna.com.co/api/v1/purchaseRequisition/listPurchaseAdmin

Query Parameters

Parameters Description

Calculadora de precios

        
          
            //example aseo general
            {
                "id": "5ec9459032ac9d1941acc019",
                "Property": "Casa",
                "Room": 3,
                "Bathroom": 2,
                "Area": 1,
                "Frequency": 1
            }
          
        
      

The above command returns JSON structured like this:

        
          
            {
              "status": 200,
              "message_es": "Operación realizada con éxito",
              "message_en": "Operation performed successfully",
              "result": {
                "subtotalFormat": "67.500",
                "descuentoFormat": "0",
                "totalFormat": "67.500",
                "subtotal": 67500,
                "descuento": 0,
                "total": 67500,
                "time": 205
              }
            }
          
        
      

Este endpoint sirve de complemento para realizar el calculo del precio del servicio de forma individual, por ser administrables los precios y sus variables se deben enviar los para metros requeridos por cada servicio, los mismos vienen en la variable name de los options de cada servicio. "Nota: se debe enviar tal cual como esta en name con la primera letra en mayuscula", otra acotación importante: los valores de Room, Bathroom, Area se deben tomar por defecto del inmueble (location) si no los posee registrados se deben solicitar y actualizar.

HTTP Request

POST https://api.anna.com.co/api/v1/service/calculateVictor

Query Parameters

Parameters Description

Response Code

Code Meaning
400 Bad Request -- Su solicitud no es válida.
401 Error -- Retorna un json con el response.error = true y el response.message_es, response.message_en.
403 Unauthorized -- Tu token de API es incorrecta o expiró.
404 Not Found -- No se pudo encontrar el servicio especificado.
500 Internal Server Error -- Tuvimos un problema con nuestro servidor. Intenta nuevamente más tarde.
503 Service Unavailable -- Estamos temporalmente fuera de línea por mantenimiento. Por favor, inténtelo de nuevo más tarde.