Download OpenAPI specification:Download
The endpoint Generate Token requires this authencation method.
| Security Scheme Type | HTTP |
|---|---|
| HTTP Authorization Scheme | basic |
Registers a new alert or update an existing record.
| mallId required | string Example: mallId=5 Mall ID |
| alertTypeId required | number Alert type ID. |
| description | number Problem description. |
{- "alertTypeId": 34,
- "description": "description alert"
}{- "id": 67
}Lists many alert records by mall.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "alertId" Enum: "alertId" "alertTypeId" "dateAlert" "dateResolved" Property to order response list. |
| startDateTimeAlert | string <date-tme> Example: startDateTimeAlert=2022-01-04T17:05:25.000Z start date and time alert filter. |
| endDateTimeAlert | string <date-tme> Example: endDateTimeAlert=2022-01-04T17:05:25.000Z end date and time alert filter. |
| startDateTimeResolved | string <date-tme> Example: startDateTimeResolved=2022-01-04T17:05:25.000Z end date and time alert resolved filter. |
| endDateTimeResolved | string <date-tme> Example: endDateTimeResolved=2022-01-04T17:05:25.000Z end date and time alert resolved filter. |
| alertTypeId | string Example: alertTypeId=3 alert type Id filter. |
{- "data": [
- {
- "id": 56,
- "description": "prato eliana kertész",
- "dateAlertResolved": 250.99,
- "category": {
- "type": {
- "id": 2,
- "name": ""
}, - "level": {
- "id": 3,
- "name": "Crítico"
}, - "orign": {
- "id": 45,
- "name": ""
}
}
}
], - "total": 100
}Lists all alert types records.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "alertTypeName" Enum: "alertTypeId" "alertOrignId" "alertLevelId" "alertTypeName" Property to order response list. |
{- "data": [
- {
- "id": 2,
- "name": "",
- "level": {
- "id": 3,
- "name": "Crítico"
}, - "orign": {
- "id": 45,
- "name": ""
}
}
], - "total": 100
}Retrieves the summary of all loans from the specified mall
| mallId required | string Example: mallId=6 Mall ID |
| search | string Example: search=Carrinho Search parameter |
| page | string Example: page=2 |
| limit | string Example: limit=25 |
| column | string Example: column=3 |
| order | string Enum: "asc" "desc" |
| sortBy | string Enum: "id" "fullname" "type" "loaned" "datetime" |
| startDate | string <date> Example: startDate=2020-05-01 Loan start date |
| endDate | string <date> Example: endDate=2020-06-01 Loan end date |
[- {
- "data": [
- {
- "dateTime": "2019-08-24T14:15:22Z",
- "id": 10,
- "fullName": "João da Silva",
- "type": "Carrinho de Bebê",
- "inventoryNumber": "Q2PA409",
- "tag": 34,
- "loaned": true
}
], - "total": 144
}
]Registers a new loan
| mallId required | string Example: mallId=6 Mall ID |
required | object Loan Data |
required | object Customer Data |
{- "loan": {
- "loanItem": {
- "id": 3,
- "typeId": 4
}, - "acceptanceTermId": "e3258e47-227e-496d-8dec-e3789611cdab",
- "observation": "Cadeira estava com defeito no apoio esquerdo",
- "child": {
- "relationship": "Filho(a)",
- "birthday": "2020-01-30",
- "sex": "F"
}
}, - "customer": {
- "cpf": "54084425788",
- "mobileNumber": "21987659999",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "zipCode": "04180112",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
- "clubAcceptanceChannel": "email",
- "homePhone": "21475615",
- "customFields": { }
}
}{- "id": 10
}Send the acceptance term through the specified channel
| mallId required | string Example: mallId=6 Mall ID |
string <email> Email address | |
| mobileNumber | string Mobile number |
| channel required | string Enum: "email" "sms" "print" Channel to send the data acceptance term message. When channel = 'email' the property 'email' must be sent. When channel = 'sms' the property 'mobileNumber' must be sent |
{- "mobileNumber": "21987659999",
- "channel": "email"
}{- "id": "e3258e47-227e-496d-8dec-e3789611cdab"
}Retrieves a specific loan by ID
| id required | string Example: 10 Loan ID |
| mallId required | string Example: mallId=6 Mall ID |
{- "customer": {
- "cpf": "54084425788",
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
- "cluster": "active"
}, - "loan": {
- "loanItem": {
- "id": 3,
- "typeId": 4,
- "typeName": "Carrinho de Bebê",
- "inventoryNumber": "W269NWFGWX",
- "status": "excellent",
- "model": "Carrinho de Bebê Sweet Baby Style Rosa",
- "tag": 1
}, - "loanTermCommunicationChannel": "email",
- "observations": [
- {
- "dateTime": "2020-01-16T17:34:10-03:00",
- "employeeName": "Maria da Silva",
- "observation": "Cadeira foi concertada"
}, - {
- "dateTime": "2020-01-15T12:23:15-03:00",
- "employeeName": "Carlos da Silva",
- "observation": "Cadeira estava com defeito no apoio esquerdo"
}
], - "child": {
- "relationship": "Filho(a)",
- "birthday": "2020-01-30",
- "sex": "F"
}
}
}Updates a loan
| id required | string Example: 10 Loan ID |
| mallId required | string Example: mallId=6 Mall ID |
required | object |
object Customer Data |
{- "loan": {
- "return": true,
- "observation": "Cadeira estava com defeito no apoio esquerdo"
}, - "customer": {
- "mobileNumber": "21987659999",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "zipCode": "04180112",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
- "homePhone": "21475615",
- "customFields": { }
}
}Retrieves the summary of all loan items from the specified mall
| mallId required | string Example: mallId=6 Mall ID |
| typeId | string Example: typeId=2 The type of the loan item |
| status | string Enum: "excellent" "good" "damaged" Status of the loan item |
| enabled | boolean show enabled or disabled items |
| limit | string Example: limit=20 Length of list without pagination. |
| page | string Page number when searching with pagination. |
[- {
- "data": [
- {
- "id": 3,
- "tag": 1,
- "inventoryNumber": "W269NWFGWX",
- "typeId": 18,
- "typeName": "Carrinho de Bebê",
- "model": "Carrinho de Bebê Sweet Baby Style Rosa",
- "status": "excellent",
- "enabled": true,
- "loaned": true
}
], - "total": 567
}
]Creates a new loan item
| mallId required | string Example: mallId=6 Mall ID |
| tag required | integer Loan item tag |
| typeId required | integer Type ID of the loan item |
| inventoryNumber | string Loan item inventory number |
| model | string Model of the loan item |
| status required | string Enum: "excellent" "good" "damaged" Status of the loan item |
{- "tag": 1,
- "typeId": 18,
- "inventoryNumber": "W269NWFGWX",
- "model": "Carrinho de Bebê Sweet Baby Style Rosa",
- "status": "excellent"
}Retrieves data about the stock of loan items from the specified mall
| mallId required | string Example: mallId=6 Mall ID |
| typeId required | integer Example: typeId=4 The type of the loan item Loan item type IDs can be retrieved on the endpoint: Get Loan Item Types |
[- {
- "id": 10,
- "tag": 1,
- "loaned": true
}
]Retrieves the available ids to associated a loan item
| mallId required | string Example: mallId=6 Mall ID |
| typeId required | string Example: typeId=4 The type of the loan item Loan item type IDs can be retrieved on the endpoint: Get Loan Item Types |
| amount required | string Example: amount=10 The amount of this loan item type to be upserted |
[- 5,
- 8,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18
]Patches a loan item with specified id
| id required | string Example: 10 Loan Item ID |
| mallId required | string Example: mallId=6 Mall ID |
| inventoryNumber | string Loan item inventory number |
| model | string Model of the loan item |
| status | string Enum: "excellent" "good" "damaged" Status of the loan item |
{- "inventoryNumber": "W269NWFGWX",
- "model": "Carrinho de Bebê Sweet Baby Style Rosa",
- "status": "excellent"
}Retrieves information about a loan item
| id required | string Example: 10 Loan Item ID |
| mallId required | string Example: mallId=6 Mall ID |
{- "id": 3,
- "tag": 1,
- "inventoryNumber": "W269NWFGWX",
- "typeId": 18,
- "typeName": "Carrinho de Bebê",
- "model": "Carrinho de Bebê Sweet Baby Style Rosa",
- "status": "excellent"
}Registers a new loan item type
| mallId required | string Example: mallId=6 Mall ID |
| name required | string The name of the loan item type |
| forChild | boolean Default: false Indicator of whether the loan item has child information |
{- "name": "Carrinho de Bebê",
- "forChild": true
}{- "id": 3
}Update a Loan item type
| id required | string Example: 16 Type ID |
| mallId required | string Example: mallId=5 Mall ID |
| name | string type name |
| forChild | boolean says if the item is for children |
{- "name": "CARRINHO DE BEBÊ",
- "forChild": true
}| mallId required | string Example: mallId=6 Mall ID |
| typeId | integer Example: typeId=4 The type of the loan item Loan item type IDs can be retrieved on the endpoint: Get Loan Item Types |
| mode | string Enum: "stacked" "grouped-sorted" Example: mode=stacked mode |
| period required | string Enum: "year" "month" "week" "day" period |
{- "stacked/month": [
- {
- "data": "12-07",
- "Caneta": "6",
- "Carregador de celular": "7",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "6",
- "Power bank": "2"
}, - {
- "data": "13-07",
- "Caneta": "1",
- "Carregador de celular": "4",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "4",
- "Power bank": "13"
}, - {
- "data": "14-07",
- "Caneta": "4",
- "Carregador de celular": "3",
- "Carrinho de bebê": "3",
- "Mamadeira de bebê": "4",
- "Power bank": "3"
}, - {
- "data": "15-07",
- "Caneta": "4",
- "Carregador de celular": "6",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "4",
- "Power bank": "8"
}, - {
- "data": "16-07",
- "Caneta": "5",
- "Carregador de celular": "3",
- "Carrinho de bebê": "3",
- "Mamadeira de bebê": "7",
- "Power bank": "1"
}, - {
- "data": "17-07",
- "Caneta": "3",
- "Carregador de celular": "9",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "5",
- "Power bank": "7"
}, - {
- "data": "18-07",
- "Caneta": "2",
- "Carregador de celular": "6",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "8",
- "Power bank": "8"
}, - {
- "data": "19-07",
- "Caneta": "3",
- "Carregador de celular": "7",
- "Carrinho de bebê": "2",
- "Mamadeira de bebê": "4",
- "Power bank": "6"
}, - {
- "data": "20-07",
- "Caneta": "4",
- "Carregador de celular": "6",
- "Carrinho de bebê": "9",
- "Mamadeira de bebê": "7",
- "Power bank": "5"
}, - {
- "data": "21-07",
- "Caneta": "4",
- "Carregador de celular": "3",
- "Carrinho de bebê": "3",
- "Mamadeira de bebê": "7",
- "Power bank": "4"
}, - {
- "data": "22-07",
- "Caneta": "2",
- "Carregador de celular": "5",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "5",
- "Power bank": "3"
}, - {
- "data": "23-07",
- "Caneta": "5",
- "Carregador de celular": "8",
- "Carrinho de bebê": "3",
- "Mamadeira de bebê": "6",
- "Power bank": "4"
}, - {
- "data": "24-07",
- "Caneta": "5",
- "Carregador de celular": "6",
- "Carrinho de bebê": "12",
- "Mamadeira de bebê": "9",
- "Power bank": "8"
}, - {
- "data": "25-07",
- "Caneta": "6",
- "Carregador de celular": "4",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "7",
- "Power bank": "6"
}, - {
- "data": "26-07",
- "Caneta": "1",
- "Carregador de celular": "6",
- "Carrinho de bebê": "9",
- "Mamadeira de bebê": "7",
- "Power bank": "3"
}, - {
- "data": "27-07",
- "Caneta": "3",
- "Carregador de celular": "9",
- "Carrinho de bebê": "6",
- "Mamadeira de bebê": "5",
- "Power bank": "6"
}, - {
- "data": "28-07",
- "Caneta": "4",
- "Carregador de celular": "5",
- "Carrinho de bebê": "3",
- "Mamadeira de bebê": "0",
- "Power bank": "6"
}, - {
- "data": "29-07",
- "Caneta": "6",
- "Carregador de celular": "3",
- "Carrinho de bebê": "3",
- "Mamadeira de bebê": "3",
- "Power bank": "5"
}, - {
- "data": "30-07",
- "Caneta": "6",
- "Carregador de celular": "4",
- "Carrinho de bebê": "6",
- "Mamadeira de bebê": "8",
- "Power bank": "6"
}, - {
- "data": "31-07",
- "Caneta": "4",
- "Carregador de celular": "2",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "7",
- "Power bank": "4"
}, - {
- "data": "01-08",
- "Caneta": "3",
- "Carregador de celular": "4",
- "Carrinho de bebê": "2",
- "Mamadeira de bebê": "2",
- "Power bank": "7"
}, - {
- "data": "02-08",
- "Caneta": "6",
- "Carregador de celular": "4",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "4",
- "Power bank": "3"
}, - {
- "data": "03-08",
- "Caneta": "10",
- "Carregador de celular": "4",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "5",
- "Power bank": "3"
}, - {
- "data": "04-08",
- "Caneta": "6",
- "Carregador de celular": "6",
- "Carrinho de bebê": "6",
- "Mamadeira de bebê": "6",
- "Power bank": "3"
}, - {
- "data": "05-08",
- "Caneta": "8",
- "Carregador de celular": "4",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "4",
- "Power bank": "5"
}, - {
- "data": "06-08",
- "Caneta": "5",
- "Carregador de celular": "5",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "8",
- "Power bank": "6"
}, - {
- "data": "07-08",
- "Caneta": "7",
- "Carregador de celular": "3",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "3",
- "Power bank": "4"
}, - {
- "data": "08-08",
- "Caneta": "5",
- "Carregador de celular": "7",
- "Carrinho de bebê": "6",
- "Mamadeira de bebê": "6",
- "Power bank": "5"
}, - {
- "data": "09-08",
- "Caneta": "1",
- "Carregador de celular": "8",
- "Carrinho de bebê": "5",
- "Mamadeira de bebê": "6",
- "Power bank": "7"
}, - {
- "data": "10-08",
- "Caneta": "6",
- "Carregador de celular": "9",
- "Carrinho de bebê": "4",
- "Mamadeira de bebê": "9",
- "Power bank": "5"
}, - {
- "data": "11-08",
- "Caneta": "1",
- "Carregador de celular": "2",
- "Carrinho de bebê": "7",
- "Mamadeira de bebê": "5",
- "Power bank": "5"
}
], - "stacked/year": [
- {
- "data": "AGO-2019",
- "Caneta": "115",
- "Carregador de celular": "108",
- "Carrinho de bebê": "115",
- "Mamadeira de bebê": "96",
- "Power bank": "99"
}, - {
- "data": "SET-2019",
- "Caneta": "164",
- "Carregador de celular": "184",
- "Carrinho de bebê": "169",
- "Mamadeira de bebê": "161",
- "Power bank": "159"
}, - {
- "data": "OUT-2019",
- "Caneta": "183",
- "Carregador de celular": "164",
- "Carrinho de bebê": "155",
- "Mamadeira de bebê": "151",
- "Power bank": "158"
}, - {
- "data": "NOV-2019",
- "Caneta": "180",
- "Carregador de celular": "176",
- "Carrinho de bebê": "181",
- "Mamadeira de bebê": "184",
- "Power bank": "169"
}, - {
- "data": "DEZ-2019",
- "Caneta": "165",
- "Carregador de celular": "156",
- "Carrinho de bebê": "161",
- "Mamadeira de bebê": "167",
- "Power bank": "163"
}, - {
- "data": "JAN-2020",
- "Caneta": "159",
- "Carregador de celular": "172",
- "Carrinho de bebê": "163",
- "Mamadeira de bebê": "167",
- "Power bank": "179"
}, - {
- "data": "FEV-2020",
- "Caneta": "178",
- "Carregador de celular": "168",
- "Carrinho de bebê": "152",
- "Mamadeira de bebê": "158",
- "Power bank": "164"
}, - {
- "data": "MAR-2020",
- "Caneta": "167",
- "Carregador de celular": "189",
- "Carrinho de bebê": "171",
- "Mamadeira de bebê": "182",
- "Power bank": "186"
}, - {
- "data": "ABR-2020",
- "Caneta": "171",
- "Carregador de celular": "170",
- "Carrinho de bebê": "158",
- "Mamadeira de bebê": "155",
- "Power bank": "153"
}, - {
- "data": "MAI-2020",
- "Caneta": "188",
- "Carregador de celular": "159",
- "Carrinho de bebê": "174",
- "Mamadeira de bebê": "188",
- "Power bank": "165"
}, - {
- "data": "JUN-2020",
- "Caneta": "159",
- "Carregador de celular": "149",
- "Carrinho de bebê": "171",
- "Mamadeira de bebê": "130",
- "Power bank": "166"
}, - {
- "data": "JUL-2020",
- "Caneta": "137",
- "Carregador de celular": "165",
- "Carrinho de bebê": "175",
- "Mamadeira de bebê": "175",
- "Power bank": "170"
}, - {
- "data": "AGO-2020",
- "Caneta": "58",
- "Carregador de celular": "56",
- "Carrinho de bebê": "59",
- "Mamadeira de bebê": "58",
- "Power bank": "53"
}
], - "grouped-sorted/month": [
- {
- "data": "21-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "22-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "23-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "24-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "25-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "26-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "27-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "28-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "29-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "30-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "31-07",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "01-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "02-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "03-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "04-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "05-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "06-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "07-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "08-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "09-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "10-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "11-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "12-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "13-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "14-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "15-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "16-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "17-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "18-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "19-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "20-08",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "3",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 3
}
], - "grouped-sorted/year": [
- {
- "data": "AGO-2019",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "SET-2019",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "OUT-2019",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "NOV-2019",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "DEZ-2019",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "JAN-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "FEV-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "MAR-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "ABR-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "MAI-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "JUN-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "JUL-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "0",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 0
}, - {
- "data": "AGO-2020",
- "Carregador de Celular": "0",
- "Carrinho de Bebê": "3",
- "Power Bank": "0",
- "Teste": "0",
- "Teste 2": "0",
- "quantity": 3
}
]
}| mallId required | string Example: mallId=6 Mall ID |
| typeId | integer typeId |
| period required | string Enum: "year" "month" "week" "day" period |
[- {
- "hour": "00h",
- "weekday": "dom",
- "value": 59
}, - {
- "hour": "00h",
- "weekday": "seg",
- "value": 61
}, - {
- "hour": "00h",
- "weekday": "ter",
- "value": 58
}, - {
- "hour": "00h",
- "weekday": "qua",
- "value": 58
}, - {
- "hour": "00h",
- "weekday": "qui",
- "value": 50
}, - {
- "hour": "00h",
- "weekday": "sex",
- "value": 66
}, - {
- "hour": "00h",
- "weekday": "sáb",
- "value": 69
}, - {
- "hour": "01h",
- "weekday": "dom",
- "value": 57
}, - {
- "hour": "01h",
- "weekday": "seg",
- "value": 58
}, - {
- "hour": "01h",
- "weekday": "ter",
- "value": 69
}, - {
- "hour": "01h",
- "weekday": "qua",
- "value": 65
}, - {
- "hour": "01h",
- "weekday": "qui",
- "value": 69
}, - {
- "hour": "01h",
- "weekday": "sex",
- "value": 69
}, - {
- "hour": "01h",
- "weekday": "sáb",
- "value": 58
}, - {
- "hour": "02h",
- "weekday": "dom",
- "value": 60
}, - {
- "hour": "02h",
- "weekday": "seg",
- "value": 60
}, - {
- "hour": "02h",
- "weekday": "ter",
- "value": 66
}, - {
- "hour": "02h",
- "weekday": "qua",
- "value": 48
}, - {
- "hour": "02h",
- "weekday": "qui",
- "value": 51
}, - {
- "hour": "02h",
- "weekday": "sex",
- "value": 55
}, - {
- "hour": "02h",
- "weekday": "sáb",
- "value": 50
}, - {
- "hour": "03h",
- "weekday": "dom",
- "value": 62
}, - {
- "hour": "03h",
- "weekday": "seg",
- "value": 60
}, - {
- "hour": "03h",
- "weekday": "ter",
- "value": 60
}, - {
- "hour": "03h",
- "weekday": "qua",
- "value": 61
}, - {
- "hour": "03h",
- "weekday": "qui",
- "value": 62
}, - {
- "hour": "03h",
- "weekday": "sex",
- "value": 54
}, - {
- "hour": "03h",
- "weekday": "sáb",
- "value": 61
}, - {
- "hour": "04h",
- "weekday": "dom",
- "value": 62
}, - {
- "hour": "04h",
- "weekday": "seg",
- "value": 66
}, - {
- "hour": "04h",
- "weekday": "ter",
- "value": 57
}, - {
- "hour": "04h",
- "weekday": "qua",
- "value": 59
}, - {
- "hour": "04h",
- "weekday": "qui",
- "value": 68
}, - {
- "hour": "04h",
- "weekday": "sex",
- "value": 56
}, - {
- "hour": "04h",
- "weekday": "sáb",
- "value": 42
}, - {
- "hour": "05h",
- "weekday": "dom",
- "value": 63
}, - {
- "hour": "05h",
- "weekday": "seg",
- "value": 63
}, - {
- "hour": "05h",
- "weekday": "ter",
- "value": 63
}, - {
- "hour": "05h",
- "weekday": "qua",
- "value": 53
}, - {
- "hour": "05h",
- "weekday": "qui",
- "value": 55
}, - {
- "hour": "05h",
- "weekday": "sex",
- "value": 64
}, - {
- "hour": "05h",
- "weekday": "sáb",
- "value": 57
}, - {
- "hour": "06h",
- "weekday": "dom",
- "value": 66
}, - {
- "hour": "06h",
- "weekday": "seg",
- "value": 71
}, - {
- "hour": "06h",
- "weekday": "ter",
- "value": 61
}, - {
- "hour": "06h",
- "weekday": "qua",
- "value": 59
}, - {
- "hour": "06h",
- "weekday": "qui",
- "value": 51
}, - {
- "hour": "06h",
- "weekday": "sex",
- "value": 57
}, - {
- "hour": "06h",
- "weekday": "sáb",
- "value": 66
}, - {
- "hour": "07h",
- "weekday": "dom",
- "value": 58
}, - {
- "hour": "07h",
- "weekday": "seg",
- "value": 52
}, - {
- "hour": "07h",
- "weekday": "ter",
- "value": 63
}, - {
- "hour": "07h",
- "weekday": "qua",
- "value": 62
}, - {
- "hour": "07h",
- "weekday": "qui",
- "value": 70
}, - {
- "hour": "07h",
- "weekday": "sex",
- "value": 60
}, - {
- "hour": "07h",
- "weekday": "sáb",
- "value": 66
}, - {
- "hour": "08h",
- "weekday": "dom",
- "value": 56
}, - {
- "hour": "08h",
- "weekday": "seg",
- "value": 66
}, - {
- "hour": "08h",
- "weekday": "ter",
- "value": 60
}, - {
- "hour": "08h",
- "weekday": "qua",
- "value": 51
}, - {
- "hour": "08h",
- "weekday": "qui",
- "value": 66
}, - {
- "hour": "08h",
- "weekday": "sex",
- "value": 66
}, - {
- "hour": "08h",
- "weekday": "sáb",
- "value": 70
}, - {
- "hour": "09h",
- "weekday": "dom",
- "value": 60
}, - {
- "hour": "09h",
- "weekday": "seg",
- "value": 60
}, - {
- "hour": "09h",
- "weekday": "ter",
- "value": 49
}, - {
- "hour": "09h",
- "weekday": "qua",
- "value": 62
}, - {
- "hour": "09h",
- "weekday": "qui",
- "value": 63
}, - {
- "hour": "09h",
- "weekday": "sex",
- "value": 54
}, - {
- "hour": "09h",
- "weekday": "sáb",
- "value": 60
}, - {
- "hour": "10h",
- "weekday": "dom",
- "value": 69
}, - {
- "hour": "10h",
- "weekday": "seg",
- "value": 56
}, - {
- "hour": "10h",
- "weekday": "ter",
- "value": 77
}, - {
- "hour": "10h",
- "weekday": "qua",
- "value": 59
}, - {
- "hour": "10h",
- "weekday": "qui",
- "value": 75
}, - {
- "hour": "10h",
- "weekday": "sex",
- "value": 64
}, - {
- "hour": "10h",
- "weekday": "sáb",
- "value": 56
}, - {
- "hour": "11h",
- "weekday": "dom",
- "value": 55
}, - {
- "hour": "11h",
- "weekday": "seg",
- "value": 60
}, - {
- "hour": "11h",
- "weekday": "ter",
- "value": 61
}, - {
- "hour": "11h",
- "weekday": "qua",
- "value": 59
}, - {
- "hour": "11h",
- "weekday": "qui",
- "value": 61
}, - {
- "hour": "11h",
- "weekday": "sex",
- "value": 60
}, - {
- "hour": "11h",
- "weekday": "sáb",
- "value": 66
}, - {
- "hour": "12h",
- "weekday": "dom",
- "value": 58
}, - {
- "hour": "12h",
- "weekday": "seg",
- "value": 57
}, - {
- "hour": "12h",
- "weekday": "ter",
- "value": 49
}, - {
- "hour": "12h",
- "weekday": "qua",
- "value": 56
}, - {
- "hour": "12h",
- "weekday": "qui",
- "value": 72
}, - {
- "hour": "12h",
- "weekday": "sex",
- "value": 56
}, - {
- "hour": "12h",
- "weekday": "sáb",
- "value": 54
}, - {
- "hour": "13h",
- "weekday": "dom",
- "value": 67
}, - {
- "hour": "13h",
- "weekday": "seg",
- "value": 54
}, - {
- "hour": "13h",
- "weekday": "ter",
- "value": 55
}, - {
- "hour": "13h",
- "weekday": "qua",
- "value": 73
}, - {
- "hour": "13h",
- "weekday": "qui",
- "value": 52
}, - {
- "hour": "13h",
- "weekday": "sex",
- "value": 71
}, - {
- "hour": "13h",
- "weekday": "sáb",
- "value": 59
}, - {
- "hour": "14h",
- "weekday": "dom",
- "value": 66
}, - {
- "hour": "14h",
- "weekday": "seg",
- "value": 58
}, - {
- "hour": "14h",
- "weekday": "ter",
- "value": 58
}, - {
- "hour": "14h",
- "weekday": "qua",
- "value": 49
}, - {
- "hour": "14h",
- "weekday": "qui",
- "value": 51
}, - {
- "hour": "14h",
- "weekday": "sex",
- "value": 67
}, - {
- "hour": "14h",
- "weekday": "sáb",
- "value": 55
}, - {
- "hour": "15h",
- "weekday": "dom",
- "value": 48
}, - {
- "hour": "15h",
- "weekday": "seg",
- "value": 57
}, - {
- "hour": "15h",
- "weekday": "ter",
- "value": 61
}, - {
- "hour": "15h",
- "weekday": "qua",
- "value": 55
}, - {
- "hour": "15h",
- "weekday": "qui",
- "value": 70
}, - {
- "hour": "15h",
- "weekday": "sex",
- "value": 54
}, - {
- "hour": "15h",
- "weekday": "sáb",
- "value": 70
}, - {
- "hour": "16h",
- "weekday": "dom",
- "value": 61
}, - {
- "hour": "16h",
- "weekday": "seg",
- "value": 51
}, - {
- "hour": "16h",
- "weekday": "ter",
- "value": 57
}, - {
- "hour": "16h",
- "weekday": "qua",
- "value": 57
}, - {
- "hour": "16h",
- "weekday": "qui",
- "value": 56
}, - {
- "hour": "16h",
- "weekday": "sex",
- "value": 43
}, - {
- "hour": "16h",
- "weekday": "sáb",
- "value": 47
}, - {
- "hour": "17h",
- "weekday": "dom",
- "value": 56
}, - {
- "hour": "17h",
- "weekday": "seg",
- "value": 56
}, - {
- "hour": "17h",
- "weekday": "ter",
- "value": 46
}, - {
- "hour": "17h",
- "weekday": "qua",
- "value": 63
}, - {
- "hour": "17h",
- "weekday": "qui",
- "value": 47
}, - {
- "hour": "17h",
- "weekday": "sex",
- "value": 64
}, - {
- "hour": "17h",
- "weekday": "sáb",
- "value": 53
}, - {
- "hour": "18h",
- "weekday": "dom",
- "value": 50
}, - {
- "hour": "18h",
- "weekday": "seg",
- "value": 58
}, - {
- "hour": "18h",
- "weekday": "ter",
- "value": 52
}, - {
- "hour": "18h",
- "weekday": "qua",
- "value": 54
}, - {
- "hour": "18h",
- "weekday": "qui",
- "value": 69
}, - {
- "hour": "18h",
- "weekday": "sex",
- "value": 65
}, - {
- "hour": "18h",
- "weekday": "sáb",
- "value": 66
}, - {
- "hour": "19h",
- "weekday": "dom",
- "value": 72
}, - {
- "hour": "19h",
- "weekday": "seg",
- "value": 64
}, - {
- "hour": "19h",
- "weekday": "ter",
- "value": 57
}, - {
- "hour": "19h",
- "weekday": "qua",
- "value": 75
}, - {
- "hour": "19h",
- "weekday": "qui",
- "value": 49
}, - {
- "hour": "19h",
- "weekday": "sex",
- "value": 72
}, - {
- "hour": "19h",
- "weekday": "sáb",
- "value": 58
}, - {
- "hour": "20h",
- "weekday": "dom",
- "value": 62
}, - {
- "hour": "20h",
- "weekday": "seg",
- "value": 62
}, - {
- "hour": "20h",
- "weekday": "ter",
- "value": 56
}, - {
- "hour": "20h",
- "weekday": "qua",
- "value": 59
}, - {
- "hour": "20h",
- "weekday": "qui",
- "value": 53
}, - {
- "hour": "20h",
- "weekday": "sex",
- "value": 34
}, - {
- "hour": "20h",
- "weekday": "sáb",
- "value": 55
}, - {
- "hour": "21h",
- "weekday": "dom",
- "value": 46
}, - {
- "hour": "21h",
- "weekday": "seg",
- "value": 66
}, - {
- "hour": "21h",
- "weekday": "ter",
- "value": 65
}, - {
- "hour": "21h",
- "weekday": "qua",
- "value": 59
}, - {
- "hour": "21h",
- "weekday": "qui",
- "value": 58
}, - {
- "hour": "21h",
- "weekday": "sex",
- "value": 67
}, - {
- "hour": "21h",
- "weekday": "sáb",
- "value": 79
}, - {
- "hour": "22h",
- "weekday": "dom",
- "value": 64
}, - {
- "hour": "22h",
- "weekday": "seg",
- "value": 53
}, - {
- "hour": "22h",
- "weekday": "ter",
- "value": 58
}, - {
- "hour": "22h",
- "weekday": "qua",
- "value": 56
}, - {
- "hour": "22h",
- "weekday": "qui",
- "value": 48
}, - {
- "hour": "22h",
- "weekday": "sex",
- "value": 62
}, - {
- "hour": "22h",
- "weekday": "sáb",
- "value": 50
}, - {
- "hour": "23h",
- "weekday": "dom",
- "value": 56
}, - {
- "hour": "23h",
- "weekday": "seg",
- "value": 72
}, - {
- "hour": "23h",
- "weekday": "ter",
- "value": 66
}, - {
- "hour": "23h",
- "weekday": "qua",
- "value": 65
}, - {
- "hour": "23h",
- "weekday": "qui",
- "value": 61
}, - {
- "hour": "23h",
- "weekday": "sex",
- "value": 55
}, - {
- "hour": "23h",
- "weekday": "sáb",
- "value": 56
}
]| mallId required | string Example: mallId=6 Mall ID |
| typeId | integer typeId |
| period required | string Enum: "year" "month" "week" "day" period |
{- "month": [
- {
- "data": "12-07",
- "Caneta": 100,
- "Carregador de celular": 166,
- "Carrinho de bebê": 85,
- "Mamadeira de bebê": 100,
- "Power bank": 89
}, - {
- "data": "13-07",
- "Caneta": 166,
- "Carregador de celular": 105,
- "Carrinho de bebê": 120,
- "Mamadeira de bebê": 191,
- "Power bank": 116
}, - {
- "data": "14-07",
- "Caneta": 152,
- "Carregador de celular": 157,
- "Carrinho de bebê": 168,
- "Mamadeira de bebê": 114,
- "Power bank": 147
}, - {
- "data": "15-07",
- "Caneta": 122,
- "Carregador de celular": 115,
- "Carrinho de bebê": 123,
- "Mamadeira de bebê": 137,
- "Power bank": 130
}, - {
- "data": "16-07",
- "Caneta": 147,
- "Carregador de celular": 107,
- "Carrinho de bebê": 89,
- "Mamadeira de bebê": 121,
- "Power bank": 135
}, - {
- "data": "17-07",
- "Caneta": 117,
- "Carregador de celular": 104,
- "Carrinho de bebê": 133,
- "Mamadeira de bebê": 150,
- "Power bank": 110
}, - {
- "data": "18-07",
- "Caneta": 61,
- "Carregador de celular": 120,
- "Carrinho de bebê": 143,
- "Mamadeira de bebê": 129,
- "Power bank": 125
}, - {
- "data": "19-07",
- "Caneta": 157,
- "Carregador de celular": 121,
- "Carrinho de bebê": 82,
- "Mamadeira de bebê": 104,
- "Power bank": 64
}, - {
- "data": "20-07",
- "Caneta": 133,
- "Carregador de celular": 105,
- "Carrinho de bebê": 128,
- "Mamadeira de bebê": 107,
- "Power bank": 65
}, - {
- "data": "21-07",
- "Caneta": 85,
- "Carregador de celular": 152,
- "Carrinho de bebê": 155,
- "Mamadeira de bebê": 122,
- "Power bank": 103
}, - {
- "data": "22-07",
- "Caneta": 112,
- "Carregador de celular": 121,
- "Carrinho de bebê": 151,
- "Mamadeira de bebê": 116,
- "Power bank": 136
}, - {
- "data": "23-07",
- "Caneta": 116,
- "Carregador de celular": 156,
- "Carrinho de bebê": 120,
- "Mamadeira de bebê": 81,
- "Power bank": 147
}, - {
- "data": "24-07",
- "Caneta": 95,
- "Carregador de celular": 89,
- "Carrinho de bebê": 143,
- "Mamadeira de bebê": 103,
- "Power bank": 121
}, - {
- "data": "25-07",
- "Caneta": 87,
- "Carregador de celular": 179,
- "Carrinho de bebê": 146,
- "Mamadeira de bebê": 94,
- "Power bank": 122
}, - {
- "data": "26-07",
- "Caneta": 129,
- "Carregador de celular": 120,
- "Carrinho de bebê": 127,
- "Mamadeira de bebê": 115,
- "Power bank": 93
}, - {
- "data": "27-07",
- "Caneta": 68,
- "Carregador de celular": 126,
- "Carrinho de bebê": 102,
- "Mamadeira de bebê": 114,
- "Power bank": 151
}, - {
- "data": "28-07",
- "Caneta": 84,
- "Carregador de celular": 168,
- "Carrinho de bebê": 67,
- "Mamadeira de bebê": 0,
- "Power bank": 121
}, - {
- "data": "29-07",
- "Caneta": 142,
- "Carregador de celular": 63,
- "Carrinho de bebê": 154,
- "Mamadeira de bebê": 75,
- "Power bank": 116
}, - {
- "data": "30-07",
- "Caneta": 73,
- "Carregador de celular": 119,
- "Carrinho de bebê": 159,
- "Mamadeira de bebê": 141,
- "Power bank": 121
}, - {
- "data": "31-07",
- "Caneta": 123,
- "Carregador de celular": 199,
- "Carrinho de bebê": 124,
- "Mamadeira de bebê": 111,
- "Power bank": 130
}, - {
- "data": "01-08",
- "Caneta": 160,
- "Carregador de celular": 141,
- "Carrinho de bebê": 118,
- "Mamadeira de bebê": 126,
- "Power bank": 96
}, - {
- "data": "02-08",
- "Caneta": 140,
- "Carregador de celular": 96,
- "Carrinho de bebê": 100,
- "Mamadeira de bebê": 157,
- "Power bank": 76
}, - {
- "data": "03-08",
- "Caneta": 115,
- "Carregador de celular": 110,
- "Carrinho de bebê": 83,
- "Mamadeira de bebê": 94,
- "Power bank": 100
}, - {
- "data": "04-08",
- "Caneta": 93,
- "Carregador de celular": 129,
- "Carrinho de bebê": 167,
- "Mamadeira de bebê": 80,
- "Power bank": 142
}, - {
- "data": "05-08",
- "Caneta": 180,
- "Carregador de celular": 109,
- "Carrinho de bebê": 172,
- "Mamadeira de bebê": 149,
- "Power bank": 96
}, - {
- "data": "06-08",
- "Caneta": 100,
- "Carregador de celular": 99,
- "Carrinho de bebê": 150,
- "Mamadeira de bebê": 116,
- "Power bank": 108
}, - {
- "data": "07-08",
- "Caneta": 153,
- "Carregador de celular": 147,
- "Carrinho de bebê": 111,
- "Mamadeira de bebê": 122,
- "Power bank": 89
}, - {
- "data": "08-08",
- "Caneta": 81,
- "Carregador de celular": 149,
- "Carrinho de bebê": 132,
- "Mamadeira de bebê": 125,
- "Power bank": 87
}, - {
- "data": "09-08",
- "Caneta": 60,
- "Carregador de celular": 126,
- "Carrinho de bebê": 145,
- "Mamadeira de bebê": 106,
- "Power bank": 151
}, - {
- "data": "10-08",
- "Caneta": 131,
- "Carregador de celular": 88,
- "Carrinho de bebê": 173,
- "Mamadeira de bebê": 134,
- "Power bank": 111
}, - {
- "data": "11-08",
- "Caneta": 90,
- "Carregador de celular": 205,
- "Carrinho de bebê": 148,
- "Mamadeira de bebê": 132,
- "Power bank": 77
}
], - "year": [
- {
- "data": "AGO-2019",
- "Caneta": 115,
- "Carregador de celular": 120,
- "Carrinho de bebê": 118,
- "Mamadeira de bebê": 127,
- "Power bank": 116
}, - {
- "data": "SET-2019",
- "Caneta": 115,
- "Carregador de celular": 117,
- "Carrinho de bebê": 128,
- "Mamadeira de bebê": 120,
- "Power bank": 123
}, - {
- "data": "OUT-2019",
- "Caneta": 119,
- "Carregador de celular": 121,
- "Carrinho de bebê": 124,
- "Mamadeira de bebê": 117,
- "Power bank": 108
}, - {
- "data": "NOV-2019",
- "Caneta": 125,
- "Carregador de celular": 125,
- "Carrinho de bebê": 120,
- "Mamadeira de bebê": 117,
- "Power bank": 117
}, - {
- "data": "DEZ-2019",
- "Caneta": 123,
- "Carregador de celular": 121,
- "Carrinho de bebê": 115,
- "Mamadeira de bebê": 113,
- "Power bank": 116
}, - {
- "data": "JAN-2020",
- "Caneta": 116,
- "Carregador de celular": 123,
- "Carrinho de bebê": 119,
- "Mamadeira de bebê": 118,
- "Power bank": 113
}, - {
- "data": "FEV-2020",
- "Caneta": 111,
- "Carregador de celular": 119,
- "Carrinho de bebê": 112,
- "Mamadeira de bebê": 119,
- "Power bank": 112
}, - {
- "data": "MAR-2020",
- "Caneta": 115,
- "Carregador de celular": 120,
- "Carrinho de bebê": 125,
- "Mamadeira de bebê": 120,
- "Power bank": 108
}, - {
- "data": "ABR-2020",
- "Caneta": 119,
- "Carregador de celular": 124,
- "Carrinho de bebê": 114,
- "Mamadeira de bebê": 115,
- "Power bank": 111
}, - {
- "data": "MAI-2020",
- "Caneta": 113,
- "Carregador de celular": 120,
- "Carrinho de bebê": 121,
- "Mamadeira de bebê": 116,
- "Power bank": 112
}, - {
- "data": "JUN-2020",
- "Caneta": 109,
- "Carregador de celular": 127,
- "Carrinho de bebê": 119,
- "Mamadeira de bebê": 110,
- "Power bank": 122
}, - {
- "data": "JUL-2020",
- "Caneta": 112,
- "Carregador de celular": 132,
- "Carrinho de bebê": 125,
- "Mamadeira de bebê": 117,
- "Power bank": 122
}, - {
- "data": "AGO-2020",
- "Caneta": 127,
- "Carregador de celular": 121,
- "Carrinho de bebê": 137,
- "Mamadeira de bebê": 120,
- "Power bank": 105
}
]
}| mallId required | string Example: mallId=6 Mall ID |
| typeId | integer typeId |
| period required | string Enum: "year" "month" "week" "day" period |
[- {
- "name": "Carregador de Celular",
- "total": "0"
}, - {
- "name": "Power Bank",
- "total": "0"
}, - {
- "name": "Carrinho de Bebê",
- "total": "3"
}
]Retrieves the summary of all lost and founds from the specified mall
| mallId required | string Example: mallId=6 Mall ID |
| search | string Example: search=Carteira Search parameter |
| page | string Example: page=2 |
| limit | string Example: limit=25 |
| column | string Example: column=3 |
| sortBy | string Enum: "id" "description" "location" "item" "returned" |
| order | string Enum: "asc" "desc" |
| startDate | string <date> Example: startDate=2020-05-01 Lost found start date |
| endDate | string <date> Example: endDate=2020-06-01 Lost found end date |
| oldItems | boolean Example: oldItems=true filter by items older than ninety days with no return |
| status | string Enum: "lost" "found" "givenAway" "destroyed" Example: status=destroyed Filter for item status |
| clientIdInput | string Example: clientIdInput=4177 client input ID |
| clientIdOutput | string Example: clientIdOutput=1777 client output ID |
| itemTypeId | string Example: itemTypeId=10 item type ID |
{- "data": [
- {
- "dateTime": "2019-08-24T14:15:22Z",
- "id": 10,
- "description": "Chaveiro de cor azul",
- "item": "Chaveiro",
- "location": "Piso 1",
- "returned": true,
- "givenAway": true,
- "donationDestinationName": "IAC Transformando vidas",
- "dateDonation": "2021-09-30",
- "destroyed": false,
- "dateDestruction": "2021-08-30"
}
], - "total": 144
}Register a new Lost and Found
| mallId required | string Example: mallId=6 Mall ID |
required | object Lost and Found Data. At least one of the properties itemId and itemName must be sent. If both are sent, itemId has priority. |
object Customer Data | |
object Employee Data |
{- "lostFound": {
- "itemId": 3,
- "itemName": "Chaveiro",
- "observation": "Achei um chaveiro no Piso 1",
- "locationId": 2,
- "description": "Chaveiro de cor azul",
- "status": "excellent",
}, - "customer": {
- "cpf": "54084425788",
- "mobileNumber": "21987659999",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "zipCode": "04180112",
- "homePhone": "21475615",
- "customFields": { }
}, - "employee": {
- "companyName": "Marisa",
- "cpf": "54084425788",
- "fullName": "João da Silva"
}
}{- "id": 11231
}Returns the summary of all lost for the specified mall
| mallId required | string Example: mallId=6 Mall ID |
| page | string Example: page=2 |
| limit | string Example: limit=25 |
| order | string Enum: "asc" "desc" |
| startDate | string <date> Example: startDate=2020-05-01 Lost ocurrence start date |
| endDate | string <date> Example: endDate=2020-06-01 Lost ocurrence end date |
| status | string Enum: "foundItems" "lostItems" Example: status=foundItems filter by occurrence status. Lost Items or Found Items. |
| clientId | string Example: clientId=1097 Filter by client id |
| itemTypeId | string Example: itemTypeId=1097 Filter by item Type Id |
| sortBy | string Default: "id" Enum: "id" "clientId" "receivetTyeId" "lostFoundItemId" "ocurrenceDate" "description" "lostOcorrunceNumber" "userRegisterId" "registerDate" "lostfoundId" "registerLostFoundDate" "userUpdatedId" "updatedDate" Example: sortBy=1097 Possible sorting types |
{- "data": [
- {
- "id": 45,
- "lostOcorrunceNumber": 5,
- "customer": {
- "id": 1777,
- "fullName": "John Doe",
- "homePhone": "21987456123",
- "cpf": "87149930077"
}, - "lostFoundItem": {
- "id": 10,
- "name": "Carteira"
}, - "ocurrenceDate": "2021-10-15",
- "lostFoundItemId": 78,
- "receivetTyeId": 1,
- "userRegisterId": 1000,
- "description": "o cliente perdeu uma carteira amarela com chaveiro do bob esponja no banheiro masculino do 3° andar ",
- "updatedDate": "2021-10-15",
- "lostfoundId": 78,
- "userUpdatedId": 607
}
], - "total": 144
}Register a new Lost ocurrence
| mallId required | string Example: mallId=6 Mall ID |
| description | string <date> description of the lost item |
| ocurrenceDate | string <date> date the customer lost the item |
| lostFoundItemId | integer lost item type id |
required | object |
{- "description": "o cliente perdeu uma carteira amarela com chaveiro do bob esponja no banheiro masculino do 3° andar ",
- "ocurrenceDate": "2021-10-15",
- "lostFoundItemId": 78,
- "customer": {
- "id": 1777,
- "fullName": "John Doe",
- "homePhone": "21987456123",
- "cpf": "87149930077",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
- "customFields": { }
}
}Retrieves a specific lost and found by ID
| id required | string Example: 10 Lost Found ID |
| mallId required | string Example: mallId=6 Mall ID |
{- "input": {
- "customer": {
- "cpf": "54084425788",
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
- "cluster": "active"
}, - "employee": {
- "companyName": "Marisa",
- "cpf": "54084425788",
- "fullName": "João da Silva"
}
}, - "output": {
- "customer": {
- "cpf": "54084425788",
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
- "cluster": "active"
}
}, - "lostFound": {
- "itemId": 5,
- "itemName": "Chaveiro",
- "locationId": 3,
- "locationName": "Piso 1",
- "description": "Chaveiro de cor azul",
- "status": "excellent",
- "observations": [
- {
- "dateTime": "2020-01-16T17:34:10-03:00",
- "employeeName": "Maria da Silva",
- "observation": "Cliente ligou para mim avisando que vem buscar amanhã dia 17/01/2020"
}, - {
- "dateTime": "2020-01-15T12:23:15-03:00",
- "employeeName": "Carlos da Silva",
- "observation": "Achei um chaveiro no Piso 1"
}
], - "dateDonation": "2019-08-24",
- "donationDestinationName": "instituto da doação",
- "dateDestruction": "2019-08-24",
- "givenAway": true,
- "destroyed": false,
- "idUserUpdated": 1000
}
}Updates a Lost and Found
| id required | string Example: 11231 Lost and Found ID |
| mallId required | string Example: mallId=6 Mall ID |
| lostOcurrenceId | integer lost Ocurrence ID |
required | object |
object Input Data about Customer or Employee | |
object Output Data about Customer, required when lostFound.return = true |
{- "lostOcurrenceId": 0,
- "lostFound": {
- "return": true,
- "observation": "Cliente não veio buscar o item hoje como combinado, vamos remarcar",
}, - "input": {
- "customer": {
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
- "homePhone": "21475615",
- "customFields": { }
}, - "employee": {
- "companyName": "Marisa",
- "cpf": "54084425788",
- "fullName": "João da Silva"
}
}, - "output": {
- "customer": {
- "cpf": "54084425788",
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
- "homePhone": "21475615",
- "customFields": { }
}
}
}Donation of lost find items
| mallId required | string Example: mallId=6 Mall ID |
| dateDonation required | string <date> Date of donation |
| idItems required | Array of numbers[ items ] Lost found id array |
| donationDestinationName required | string Donation destination name |
| observation required | string observation for donated item |
{- "dateDonation": "2021-09-27",
- "idItems": [
- 4521
], - "donationDestinationName": "instituto de doação do RJ",
- "observation": "example description"
}Destruction of lost find items
| mallId required | string Example: mallId=6 Mall ID |
| dateDestruction required | string <date> Date of destruction |
| idItems required | Array of numbers[ items ] Lost found id array |
{- "dateDestruction": "2021-09-27",
- "idItems": [
- 6789
]
}lost and found object type.
| mallId required | string Example: mallId=6 Mall ID |
| id | integer lost found item ID for update |
| name required | string lost found item |
{- "id": 3,
- "name": "MEDICAMENTOS"
}Get lost found items
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| search | string Example: search=MEDICAMENTOS Search parameter: 'lost found item name' OU 'lost found item ID' |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "name" "id" Property to order response list. |
{- "data": [
- {
- "id": 90,
- "name": "CARTEIRA"
}
], - "total": 100
}| mallId required | string Example: mallId=6 Mall ID |
| itemId | integer Example: itemId=4 The type of the lost found item |
| startDate required | string <date> Example: startDate=2020-01-01 |
| endDate required | string <date> Example: endDate=2021-01-01 |
[- {
- "totalItems": 7,
- "returnedItems": 1,
- "notReturnedItems": 6
}
]| mallId required | string Example: mallId=6 Mall ID |
| itemId | integer Example: itemId=4 The type of the lost found item |
| startDate required | string <date> Example: startDate=2020-01-01 |
| endDate required | string <date> Example: endDate=2021-01-01 |
[- {
- "weekDay": 0,
- "Chaveiro": 21,
- "outros": 5,
- "Relógio": 6
}, - {
- "weekDay": 1,
- "Chaveiro": 12.76,
- "outros": 6,
- "Relógio": 10.1
}, - {
- "weekDay": 2,
- "Chaveiro": 9,
- "outros": 1.6,
- "Relógio": 5
}, - {
- "weekDay": 3,
- "Chaveiro": 9,
- "outros": 2,
- "Relógio": 4.5
}, - {
- "weekDay": 4,
- "Chaveiro": 8,
- "outros": 1.33,
- "Relógio": 4
}, - {
- "weekDay": 5,
- "Chaveiro": 20,
- "outros": 10,
- "Relógio": 15
}, - {
- "weekDay": 6,
- "Chaveiro": 17,
- "outros": 21,
- "Relógio": 18
}
]| mallId required | string Example: mallId=6 Mall ID |
| itemId | integer Example: itemId=4 The type of the lost found item |
| startDate required | string <date> Example: startDate=2020-01-01 |
| endDate required | string <date> Example: endDate=2021-01-01 |
[- {
- "itemName": "Relógio",
- "total": 23
}, - {
- "itemName": "Chaveiro",
- "total": 9
}
]| mallId required | string Example: mallId=6 Mall ID |
| itemId | integer Example: itemId=4 The type of the lost found item |
| startDate required | string <date> Example: startDate=2020-01-01 |
| endDate required | string <date> Example: endDate=2021-01-01 |
[- {
- "day": "2020-07-30",
- "Chaveiro": 1,
- "outros": 1,
- "Relógio": 0
}, - {
- "day": "2020-07-31",
- "Chaveiro": 1,
- "outros": 1,
- "Relógio": 0
}, - {
- "day": "2020-08-01",
- "Chaveiro": 2,
- "outros": 1,
- "Relógio": 1
}, - {
- "day": "2020-08-02",
- "Chaveiro": 2,
- "outros": 1,
- "Relógio": 2
}, - {
- "day": "2020-08-03",
- "Chaveiro": 2,
- "outros": 0,
- "Relógio": 1
}, - {
- "day": "2020-08-04",
- "Chaveiro": 3,
- "outros": 2,
- "Relógio": 5
}, - {
- "day": "2020-08-05",
- "Chaveiro": 1,
- "outros": 1,
- "Relógio": 1
}, - {
- "day": "2020-08-06",
- "Chaveiro": 0,
- "outros": 0,
- "Relógio": 0
}, - {
- "day": "2020-08-07",
- "Chaveiro": 1,
- "outros": 0,
- "Relógio": 3
}
]Uploads attachment files and returns the URLs
| mallId required | string Example: mallId=6 Mall ID |
| attachments required | string <binary> The attachment files to be uploaded |
[- {
- "originalFileName": "2341.png",
}
]List forward groups by mall
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | integer Example: limit=300 Length of list without pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "forwardGroupId" Enum: "forwardGroupId" "name" Property to order response list. |
{- "data": [
- {
- "id": 11,
- "name": "Tecnologia"
}
], - "total": 100
}Retrieves the summary of all customer service tickets from the specified mall with an optional search parameter
| mallId required | string Example: mallId=6 Mall ID |
| search | string Example: search=João Search parameter |
| clientId | string Example: clientId=1 Client Id |
| statusId | string Example: statusId=1 Status Id |
| employeeName | string Example: employeeName=Tarcísio Employee Name |
| reasonId | string Example: reasonId=2 Reason Id |
| channelId | string Example: channelId=3 Channel Id |
| page | string Example: page=2 |
| limit | string Example: limit=25 |
| column | string Example: column=3 |
| sortBy | string Enum: "id" "fullname" "score" "reason" "status" "channel" "cpf" |
| order | string Enum: "asc" "desc" |
| startDate | string <date> Example: startDate=2020-05-01 Start date |
| endDate | string <date> Example: endDate=2020-06-01 End date |
| _fields | string Example: _fields=fieldName Custom fields to search a keyword. To search in more than one field, the names of field must be separated by commas(,). |
| _keyword | string Example: _keyword=@search Keyword to search in the custom fields. |
{- "data": [
- {
- "id": 2341,
- "dateTime": "2019-08-24T14:15:22Z",
- "fullName": "João da Silva",
- "cpf": "54084425788",
- "score": 4,
- "status": {
- "id": 2,
- "name": "Em andamento"
}, - "reason": {
- "id": 1,
- "name": "Elogio"
}, - "channel": {
- "id": 2,
- "name": "Presencial"
}, - "complainantingStore": {
- "id": 0,
- "name": "string"
}, - "store": {
- "id": 2,
- "name": "imagine store"
}, - "serviceOrderOpening": {
- "id": 45,
- "legalName": "shell vidracaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "subordinateId": 47,
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}
], - "total": 144
}Registers a new customer service ticket
| mallId required | string Example: mallId=6 Mall ID |
required | object Ticket Data |
| complainantingStoreId | integer Complainant store ID |
required | object or object or object or object Customer Data |
object | |
object Vehicle Data | |
object Form to request an external service for the mall. |
{- "ticket": {
- "channelId": 3,
- "reasonId": 2,
- "statusId": 4,
- "forwardGroupIds": [
- 2,
- 3
], - "comment": {
- "comment": "Já resolvemos o problema e informamos o cliente das medidas tomadas - Resolvido",
}, - "clubAcceptanceChannel": "email"
}, - "complainantingStoreId": 98,
- "customer": { },
- "store": {
- "id": 2
}, - "vehicle": {
- "type": "car",
- "brand": "Nissan",
- "licensePlate": "FOR-1904",
- "color": "Azul",
- "year": "2014",
- "city": "Rio de Janeiro",
- "state": "RJ",
- "driverName": "Maria da Silva",
- "chassis": "SV30-0169266",
- "renavam": "775559066",
- "paymentTicket": "2220367683-24",
- "insuranceProof": "123456789",
- "ocurrenceLocation": "Piso 2"
}, - "serviceOrderOpening": {
- "legalName": "Shell Vidraçaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}{- "id": 2341
}Retrieves a customer service ticket
| id required | string Example: 2341 Ticket ID |
| mallId required | string Example: mallId=6 Mall ID |
{- "complainantingStore": {
- "id": 98,
- "name": "imagine store"
}, - "customer": {
- "cpf": "54084425788",
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "M",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
}, - "ticket": {
- "score": 4,
- "dateTime": "2019-08-24T14:15:22Z",
- "channel": {
- "id": 2,
- "name": "Presencial"
}, - "reasonTree": [
- [
- {
- "id": 1,
- "name": "Cinema",
- "children": true,
- "path": false,
- "editable": false
}, - {
- "id": 2,
- "name": "Estacionamento",
- "children": true,
- "path": true,
- "editable": false
}
], - [
- {
- "id": 3,
- "name": "Limpeza",
- "children": true,
- "path": true,
- "editable": false
}, - {
- "id": 4,
- "name": "Preço",
- "children": false,
- "path": false,
- "editable": false
}
], - [
- {
- "id": 5,
- "name": "Elogio",
- "children": false,
- "path": false,
- "editable": false
}, - {
- "id": 6,
- "name": "Reclamação",
- "children": false,
- "path": true,
- "editable": true
}
]
], - "status": {
- "id": 2,
- "name": "Em andamento"
}, - "forwardGroups": [
- {
- "id": 1,
- "name": "Jurídico"
}, - {
- "id": 2,
- "name": "Comercial"
}
], - "comments": [
- {
- "dateTime": "2020-01-16T17:34:10-03:00",
- "employeeName": "Maria da Silva",
- "comment": "Já resolvemos o problema e informamos o cliente das medidas tomadas - Resolvido",
- "status": {
- "id": 7,
- "name": "RESOLVIDO"
}, - "forwardGroups": [
- {
- "id": 1,
- "name": "Jurídico"
}, - {
- "id": 2,
- "name": "Comercial"
}, - {
- "id": 4,
- "name": "teste"
}
]
}, - {
- "dateTime": "2020-01-15T12:23:15-03:00",
- "employeeName": "Carlos da Silva",
- "comment": "O cliente reportou que o estacionamento do shopping está com problemas de limpeza - Em Andamento",
- "attachmentUrls": [ ],
- "status": {
- "id": 7,
- "name": "RESOLVIDO"
}, - "forwardGroups": [
- {
- "id": 1,
- "name": "Jurídico"
}, - {
- "id": 2,
- "name": "Comercial"
}, - {
- "id": 4,
- "name": "teste"
}
]
}
]
}, - "vehicle": {
- "type": "car",
- "brand": "Nissan",
- "licensePlate": "FOR-1904",
- "color": "Azul",
- "year": "2014",
- "city": "Rio de Janeiro",
- "state": "RJ",
- "driverName": "Maria da Silva",
- "chassis": "SV30-0169266",
- "renavam": "775559066",
- "paymentTicket": "2220367683-24",
- "insuranceProof": "123456789",
- "ocurrenceLocation": "Piso 2"
}, - "serviceOrderOpening": {
- "id": 40,
- "legalName": "shell vidracaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "subordinateId": 45,
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}Updates a customer service ticket
| id required | string Example: 2341 Ticket ID |
| mallId required | string Example: mallId=6 Mall ID |
required | object Ticket Data |
required | object |
object | |
object Vehicle Data | |
object Form to request an external service for the mall. |
{- "ticket": {
- "reasonId": 2,
- "statusId": 4,
- "forwardGroupIds": [
- 2,
- 3
], - "comment": {
- "comment": "Já resolvemos o problema e informamos o cliente das medidas tomadas - Resolvido",
}
}, - "customer": {
- "mobileNumber": "21987659999",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "zipCode": "04180112",
- "homePhone": "21475615",
- "customFields": { }
}, - "store": {
- "id": 2
}, - "vehicle": {
- "type": "car",
- "brand": "Nissan",
- "licensePlate": "FOR-1904",
- "color": "Azul",
- "year": "2014",
- "city": "Rio de Janeiro",
- "state": "RJ",
- "driverName": "Maria da Silva",
- "chassis": "SV30-0169266",
- "renavam": "775559066",
- "paymentTicket": "2220367683-24",
- "insuranceProof": "123456789",
- "ocurrenceLocation": "Piso 2"
}, - "serviceOrderOpening": {
- "id": 45,
- "legalName": "Shell Vidraçaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}Returns work order opening ticket records
| mallId required | string Example: mallId=6 mall ID |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "startDateTime" "endDateTime" Property to order response list. |
| statusId | string Example: statusId=6 status ID |
| startDateTime | string <date-time> |
| endDateTime | string <date-time> |
{- "data": [
- {
- "id": 345,
- "customerServiceId": 789,
- "status": {
- "id": 560,
- "name": "PENDENTE"
}, - "store": {
- "id": 560,
- "name": "Polishop"
}, - "activity": "LIMPEZA DE VITRINE",
- "startDateTime": "2022-01-29T11:20:05Z",
- "endDateTime": "2022-01-29T11:20:05Z",
- "subordinates": [
- {
- "id": 56,
- "name": "Amanda de Souza.",
- "cpf": "95354273005",
- "document": "48032170107"
}
]
}
], - "total": 100
}Create a new reason record or update an existing record.
| mallId required | string Example: mallId=6 Mall ID |
| active | boolean Enable or disable a reason. |
| parentId | integer Reason id father. |
| name required | string Reason name. |
| formsId | Array of integers[ items ] |
{- "active": true,
- "parentId": 2,
- "name": "ESTACIONAMENTO",
- "formsIds": [
- 1,
- 2,
- 3,
- 4
]
}Retrieves the customer service reasons of a parent reason (or the root reasons if no parent ID is provided)
| mallId required | string Example: mallId=6 Mall ID |
| parentId | string Example: parentId=2 Parent Reason ID |
| formId | string Example: formId=2 form Reason ID |
[- {
- "id": 4,
- "name": "Cinema",
- "children": true,
- "idForms": [ ],
- "idForwardGroups": [ ]
}, - {
- "id": 5,
- "name": "Estacionamento",
- "children": false,
- "idForms": [
- 6,
- 10,
- 26
], - "idForwardGroups": [
- 12,
- 21
]
}, - {
- "id": 6,
- "name": "Praça de Alimentação",
- "children": true,
- "idForms": [ ]
}, - {
- "id": 7,
- "name": "Fraldário",
- "children": false,
- "idForms": [ ],
- "idForwardGroups": [ ]
}
]Retrieves one customer service reasons in particular
| reasonId required | string Example: 10000 Reason ID |
| mallId required | string Example: mallId=6 Mall ID |
[- {
- "id": 10000,
- "name": "Estacionamento",
- "children": false,
- "idForms": [
- 6,
- 10,
- 26
], - "idForwardGroups": [
- 12,
- 21
]
}
]Retrieves the summary of all customer service short tickets from the specified mall
| mallId required | string Example: mallId=6 Mall ID |
| page | string Example: page=1 Page number when searching with pagination. |
| limitByPage | string Example: limitByPage=50 Length of list per page with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Default: "id" Enum: "id" "dateTime" Customer Property to order response list. (ENUM: 'id', 'dateTime'). |
| order | string Default: "desc" Enum: "asc" "desc" |
[- {
- "data": [
- {
- "id": 5432,
- "channel": {
- "id": 3,
- "name": "Presencial"
}, - "dateTime": "2019-08-24T14:15:22Z",
- "comment": {
- "dateTime": "2019-08-24T14:15:22Z",
- "employeeName": "Maria da Silva",
- "comment": "Um clinte perguntou se o shopping possuia a loja C&A"
}
}
], - "total": 1
}
]Registers a new customer service short ticket
| mallId required | string Example: mallId=6 Mall ID |
| channelId required | integer The ID of the channel that originated the short ticket. Channel ids can be retrieved on the endpoint: Get Channels |
| comment required | string <= 100 characters Short ticket comment |
{- "channelId": 3,
- "comment": "Um clinte perguntou se o shopping possuia a loja C&A"
}{- "id": 5432
}Retrieves a customer service short ticket
| id required | string Example: 5432 Short ticket ID |
| mallId required | string Example: mallId=6 Mall ID |
{- "id": 5432,
- "channel": {
- "id": 3,
- "name": "Presencial"
}, - "dateTime": "2019-08-24T14:15:22Z",
- "comment": {
- "dateTime": "2019-08-24T14:15:22Z",
- "employeeName": "Maria da Silva",
- "comment": "Um clinte perguntou se o shopping possuia a loja C&A"
}
}list many ticket relationship settings.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | integer Example: limit=300 Length of list without pagination. |
| page | string identifies the current page |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "reasonId" Value: "reasonId" Property to order response list. |
{- "data": [
- {
- "reasonId": 7,
- "forwardGroups": [
- {
- "id": 56,
- "name": "Comercial"
}
], - "reasonTree": [
- {
- "id": 150,
- "name": "Sugestão"
}
]
}
], - "total": 144
}Creates relationship between the reason for the occurrence with forwarding groups.
| mallId required | string Example: mallId=6 Mall ID |
| reasonId required | integer customer service reason ID |
| idForwardGroups required | Array of integers[ items ] |
{- "reasonId": 7,
- "idForwardGroups": [
- 50,
- 81
]
}List a ticket relationship setup
| reasonId required | string Example: 7 ID |
| mallId required | string Example: mallId=6 Mall ID |
{- "forwardGroups": [
- {
- "id": 56,
- "name": "Comercial"
}
], - "reasonTree": [
- {
- "id": 150,
- "name": "Sugestão"
}
]
}Retrieves the summary of all customer service tickets from the specified mall with an optional search parameter
| storeId required | string Example: storeId=6 store ID |
| search | string Example: search=João Search parameter |
| clientId | string Example: clientId=1 Client Id |
| statusId | string Example: statusId=1 Status Id |
| sectorId | string Example: sectorId=1 sector Id |
| employeeName | string Example: employeeName=Tarcísio Employee Name |
| reasonId | string Example: reasonId=2 Reason Id |
| channelId | string Example: channelId=3 Channel Id |
| page | string Example: page=2 |
| limit | string Example: limit=25 |
| column | string Example: column=3 |
| sortBy | string Enum: "id" "fullname" "score" "reason" "status" "channel" "cpf" |
| order | string Enum: "asc" "desc" |
| startDate | string <date> Example: startDate=2020-05-01 Start date |
| endDate | string <date> Example: endDate=2020-06-01 End date |
| _fields | string Example: _fields=fieldName Custom fields to search a keyword. To search in more than one field, the names of field must be separated by commas(,). |
| _keyword | string Example: _keyword=@search Keyword to search in the custom fields. |
{- "data": [
- {
- "id": 2341,
- "dateTime": "2019-08-24T14:15:22Z",
- "fullName": "João da Silva",
- "cpf": "54084425788",
- "score": 4,
- "status": {
- "id": 2,
- "name": "Em andamento"
}, - "reason": {
- "id": 1,
- "name": "Elogio"
}, - "channel": {
- "id": 2,
- "name": "Presencial"
}, - "complainantingStore": {
- "id": 0,
- "name": "string"
}, - "store": {
- "id": 2,
- "name": "imagine store"
}, - "serviceOrderOpening": {
- "id": 45,
- "legalName": "shell vidracaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "subordinateId": 47,
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}
], - "total": 144
}Registers a new customer service ticket
| storeId required | string Example: storeId=665 storeId ID |
required | object Ticket Data |
required | object or object or object or object Customer Data |
object | |
object Vehicle Data | |
object Form to request an external service for the mall. |
{- "ticket": {
- "reasonId": 2,
- "statusId": 4,
- "forwardGroupIds": [
- 2,
- 3
], - "comment": {
- "comment": "Já resolvemos o problema e informamos o cliente das medidas tomadas - Resolvido",
}, - "clubAcceptanceChannel": "email"
}, - "customer": { },
- "store": {
- "id": 2
}, - "vehicle": {
- "type": "car",
- "brand": "Nissan",
- "licensePlate": "FOR-1904",
- "color": "Azul",
- "year": "2014",
- "city": "Rio de Janeiro",
- "state": "RJ",
- "driverName": "Maria da Silva",
- "chassis": "SV30-0169266",
- "renavam": "775559066",
- "paymentTicket": "2220367683-24",
- "insuranceProof": "123456789",
- "ocurrenceLocation": "Piso 2"
}, - "serviceOrderOpening": {
- "legalName": "Shell Vidraçaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}{- "id": 2341
}Retrieves a customer service ticket
| id required | string Example: 2341 Ticket ID |
| storeId required | string Example: storeId=6 store ID |
{- "complainantingStore": {
- "id": 98,
- "name": "imagine store"
}, - "customer": {
- "cpf": "54084425788",
- "zipCode": "04180112",
- "fullName": "João da Silva",
- "sex": "M",
- "birthday": "1981-07-28",
- "mobileNumber": "21987659999",
}, - "ticket": {
- "score": 4,
- "dateTime": "2019-08-24T14:15:22Z",
- "channel": {
- "id": 2,
- "name": "Presencial"
}, - "reasonTree": [
- [
- {
- "id": 1,
- "name": "Cinema",
- "children": true,
- "path": false
}, - {
- "id": 2,
- "name": "Estacionamento",
- "children": true,
- "path": true
}
], - [
- {
- "id": 3,
- "name": "Limpeza",
- "children": true,
- "path": true
}, - {
- "id": 4,
- "name": "Preço",
- "children": false,
- "path": false
}
], - [
- {
- "id": 5,
- "name": "Elogio",
- "children": false,
- "path": false
}, - {
- "id": 6,
- "name": "Reclamação",
- "children": false,
- "path": true
}
]
], - "status": {
- "id": 2,
- "name": "Em andamento"
}, - "forwardGroups": [
- {
- "id": 1,
- "name": "Jurídico"
}, - {
- "id": 2,
- "name": "Comercial"
}
], - "comments": [
- {
- "dateTime": "2020-01-16T17:34:10-03:00",
- "employeeName": "Maria da Silva",
- "comment": "Já resolvemos o problema e informamos o cliente das medidas tomadas - Resolvido",
}, - {
- "dateTime": "2020-01-15T12:23:15-03:00",
- "employeeName": "Carlos da Silva",
- "comment": "O cliente reportou que o estacionamento do shopping está com problemas de limpeza - Em Andamento",
- "attachmentUrls": [ ]
}
]
}, - "vehicle": {
- "type": "car",
- "brand": "Nissan",
- "licensePlate": "FOR-1904",
- "color": "Azul",
- "year": "2014",
- "city": "Rio de Janeiro",
- "state": "RJ",
- "driverName": "Maria da Silva",
- "chassis": "SV30-0169266",
- "renavam": "775559066",
- "paymentTicket": "2220367683-24",
- "insuranceProof": "123456789",
- "ocurrenceLocation": "Piso 2"
}, - "serviceOrderOpening": {
- "id": 40,
- "legalName": "shell vidracaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "subordinateId": 45,
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}Updates a customer service ticket
| id required | string Example: 2341 Ticket ID |
| storeId required | string Example: storeId=62 store ID |
required | object Ticket Data |
object | |
required | object |
object Form to request an external service for the mall. |
{- "ticket": {
- "reasonId": 2,
- "statusId": 4,
- "forwardGroupIds": [
- 2,
- 3
], - "comment": {
- "comment": "Já resolvemos o problema e informamos o cliente das medidas tomadas - Resolvido",
}
}, - "store": {
- "id": 2
}, - "customer": {
- "mobileNumber": "21987659999",
- "fullName": "João da Silva",
- "sex": "F",
- "birthday": "1981-07-28",
- "zipCode": "04180112",
- "email": "[email protected]"
}, - "serviceOrderOpening": {
- "id": 45,
- "legalName": "Shell Vidraçaria",
- "cnpj": "35952101000147",
- "phoneNumber": "21985612345",
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "endDateTime": "2021-12-26T18:38:23.056Z",
- "subordinates": [
- {
- "name": "Xefamu",
- "cpf": "47733813026",
- "document": "65252388682"
}
]
}
}Retrieves the customer service reasons of a parent reason (or the root reasons if no parent ID is provided)
| storeId required | string Example: storeId=6 store ID |
| parentId | string Example: parentId=2 Parent Reason ID |
| formId | string Example: formId=2 form Reason ID |
[- {
- "id": 4,
- "name": "Cinema",
- "children": true,
- "idForms": [ ],
- "idForwardGroups": [ ]
}, - {
- "id": 5,
- "name": "Estacionamento",
- "children": false,
- "idForms": [
- 6,
- 10,
- 26
], - "idForwardGroups": [
- 12,
- 21
]
}, - {
- "id": 6,
- "name": "Praça de Alimentação",
- "children": true,
- "idForms": [ ]
}, - {
- "id": 7,
- "name": "Fraldário",
- "children": false,
- "idForms": [ ],
- "idForwardGroups": [ ]
}
]Lists many active sectors records.
| storeId required | integer Example: storeId=6 Associated store ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "order" Enum: "id" "name" Property to order response list. |
| search | string Search by name. |
{- "total": 100,
- "data": [
- {
- "id": 5,
- "name": "Marketing."
}
]
}Register or Update a signature.
| mallId required | string Example: mallId=6 Mall ID |
| id | integer A signature indentifier. |
| name required | string A Signature name. |
| active required | boolean Signature status. |
| entranceId required | integer A entrance indentifier. |
| mallAdministrationId | integer A mall administration indentifier. |
| urlSignature required | string A signature URL. |
required | Array of objects[ items ] A signature types array. |
{- "id": 1,
- "name": "CommunicationSignature",
- "active": true,
- "entranceId": 1,
- "mallAdministrationId": 1,
- "urlSignature": "www.spot-signature.com.br",
- "signatureTypes": [
- {
- "id": 1,
- "active": true,
- "required": false
}
]
}Update signatures content.
| mallId required | string Example: mallId=6 Mall ID |
| smsText required | string A text message to be sent to the customer. |
| emailContent | string A email's content to be sent to the customer. |
{- "smsText": "text message",
- "emailContent": "<hmtl></html>"
}Get Signatures by mall
| mallId required | string Example: mallId=6 Mall ID |
| entranceId | string Example: entranceId=6 Entrance ID |
{- "id": 1,
- "name": "Communication",
- "entranceId": 1,
- "active": true,
- "urlSignature": "www.url.com",
- "mallId": 1,
- "administrationId": 1,
- "signatureTypes": {
- "dataUsage": {
- "active": true,
- "required": true
}, - "communicationEmail": {
- "active": true,
- "required": true
}, - "communicationSMS": {
- "active": true,
- "required": true
}, - "communicationPush": {
- "active": true,
- "required": true
}, - "communicationWhatsapp": {
- "active": true,
- "required": true
}, - "loyaltyAgreement": {
- "active": true,
- "required": true
}, - "walletAgreement": {
- "active": true,
- "required": true
}
}
}Get Signatures by administration
| mallId required | string Example: mallId=6 Mall ID |
| entranceId | string Example: entranceId=6 Entrance ID |
{- "id": 1,
- "name": "Communication",
- "entranceId": 1,
- "active": true,
- "urlSignature": "www.url.com",
- "mallId": 1,
- "administrationId": 1,
- "signatureTypes": {
- "dataUsage": {
- "active": true,
- "required": true
}, - "communicationEmail": {
- "active": true,
- "required": true
}, - "communicationSMS": {
- "active": true,
- "required": true
}, - "communicationPush": {
- "active": true,
- "required": true
}, - "communicationWhatsapp": {
- "active": true,
- "required": true
}, - "loyaltyAgreement": {
- "active": true,
- "required": true
}, - "walletAgreement": {
- "active": true,
- "required": true
}
}
}Progress Acceptance
| mallId required | string Example: mallId=6 Mall ID |
| channel required | string channel type |
| originId required | integer Acceptance Origin ID |
| clientId required | integer Client who is accepting. |
| programId required | integer Loyalty program ID |
| itemId | integer Loan item ID |
| lostId | integer Lost found item ID |
{- "channel": "email",
- "originId": 5,
- "clientId": 9,
- "programId": 98,
- "itemId": 2044,
- "lostId": 653
}{- "hash": "5572abda6ca2dd996d26dd02ac109c5f"
}Get progress acceptance infos
| hash required | string Example: 5572abda6ca2dd996d26dd02ac109c5f Progress Hash |
{- "customerName": "John",
- "htmlContent": "<html></html>",
- "mallName": "Mall",
- "signedOptIn": true
}Accept Progress
| hash required | string Example: 5572abda6ca2dd996d26dd02ac109c5f Progress Hash |
| optIn | boolean Reject or Accept All Terms |
{- "optIn": true
}{- "hash": "5572abda6ca2dd996d26dd02ac109c5f"
}Get mall loan terms
| itemId required | string Example: 6 Item ID |
| mallId required | string Example: mallId=6 Mall ID |
| id | integer A client indentifier. |
| cpf | string A brazilian's unique citizen identifier. |
| fullName | string A full name. |
| birthday | string <date> A date following the format (YYYY-MM-DD). |
| sex | string Enum: "F" "M" "O" A character representing the sex. |
| mobileNumber | string A mobile number. |
| homePhone | string A home phone |
string An email address. | |
| zipCode | string Postal address code. |
{- "id": 1,
- "cpf": "54084425788",
- "fullName": "Fulano Teste",
- "birthday": "2015-07-28",
- "sex": "F",
- "mobileNumber": "21987659999",
- "homePhone": "2140028922",
- "zipCode": "51562673"
}{- "term": "<html></html>"
}Get mall lost found terms
| itemId required | string Example: 6 Item ID |
| mallId required | string Example: mallId=6 Mall ID |
| id | integer A client indentifier. |
| cpf | string A brazilian's unique citizen identifier. |
| fullName | string A full name. |
| birthday | string <date> A date following the format (YYYY-MM-DD). |
| sex | string Enum: "F" "M" "O" A character representing the sex. |
| mobileNumber | string A mobile number. |
| homePhone | string A home phone |
string An email address. | |
| zipCode | string Postal address code. |
{- "id": 1,
- "cpf": "54084425788",
- "fullName": "Fulano Teste",
- "birthday": "2015-07-28",
- "sex": "F",
- "mobileNumber": "21987659999",
- "homePhone": "2140028922",
- "zipCode": "51562673"
}{- "term": "<html></html>"
}Retrieves the store bank accounts
| storeId required | string Example: storeId=820 Store ID |
[- {
- "id": 3,
- "holderName": "João Silva",
- "bankName": "Banco Bradesco S.A.",
- "bankCode": "237",
- "routingNumber": "0215",
- "accountNumber": "09747087",
- "cnpj": "69331772000102",
- "type": "Checking"
}
]Creates a bank account
| storeId required | string Example: storeId=6 store ID |
| bankAccountToken required | string Bank account token. It can be generated using the endpoint: Generate Token |
{- "bankAccountToken": "d9184d7ad5ef48a2a7bf8cb634d5ffeb"
}{- "message": "Conta bancária cadastrada com sucesso."
}Disables a bank account
| bankAccountId required | string Example: 4 Bank account ID |
| storeId required | string Example: storeId=6 store ID |
{- "message": "Conta bancária desabilitada com sucesso."
}Generates a Bank Account Token
| marketplace_id required | string |
| holder_name required | string Account holder's name |
| bank_code required | string Bank institution number |
| routing_number required | string Bank branch number without verification digit |
| account_number required | string Bank account number with verification digit |
| ein required | string CNPJ |
| type required | string Enum: "checking" "savings" |
{- "holder_name": "João Silva",
- "bank_code": "237",
- "routing_number": "0215",
- "account_number": "09747087",
- "ein": "75136476000153",
- "type": "checking"
}{- "id": "string"
}Retrieves the store bank tranfers
| storeId required | string Example: storeId=820 Store ID |
| search | string Example: search=Banco Bradesco S.A. Search parameter: (bank name, account number) |
| page | string Example: page=1 Page number when searching with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Enum: "id" "bankName" "accountNumber" "createdAt" "value" Property to order response list. |
| order | string Enum: "asc" "desc" |
| startDateTime | string <date-time> Example: startDateTime=2021-10-25T23:00:00Z start date time |
| endDateTime | string <date-time> Example: endDateTime=2021-11-20T23:00:00Z end date time |
{- "data": [
- {
- "id": 3,
- "bankName": "Banco Bradesco S.A.",
- "accountNumber": "09747087",
- "createdAt": "2019-08-24T14:15:22Z",
- "value": 2050.35
}
]
}Creates a bank transfer
| storeId required | string Example: storeId=6 store ID |
| bankAccountId required | integer |
| value required | number |
{- "bankAccountId": 2,
- "value": 2050.35
}{- "message": "Transferência bancária realizada com sucesso."
}Returns store sale plan
| storeId | string Example: storeId=820 Store ID |
| storeCode | string Example: storeCode=e077 Store code |
{- "id": 4,
- "name": "americanas",
- "fee_details": [
- {
- "card_brand": "Visa",
- "percent_amount": 0,
- "payment_type": "credit",
- "number_installments": 6
}
]
}Retrieves the store payments
| clientId required | string Example: clientId=820 Client ID, it must be sent when storeId is not sent |
| storeId required | string Example: storeId=820 Store ID, it must be sent when clientId is not sent |
| search | string Example: search=João Search parameter: (customer name, invoice number, store name) |
| page | string Example: page=1 Page number when searching with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Enum: "id" "invoiceNumber" "createdAt" "storeName" "clientName" "installments" "value" "status" Property to order response list. |
| order | string Enum: "asc" "desc" |
| startDateTime | string <date-time> Example: startDateTime=2021-10-25T23:00:00Z start date time |
| endDateTime | string <date-time> Example: endDateTime=2021-11-20T23:00:00Z end date time |
| status | string Enum: "pending" "succeeded" "refunded" |
{- "data": [
- {
- "id": 10,
- "createdAt": "2019-08-24T14:15:22Z",
- "clientName": "João da Silva",
- "storeName": "M de mãe",
- "installments": 5,
- "invoiceNumber": 0,
- "status": "pending",
- "value": 3520.35
}
], - "total": 18
}Accepts a payment
| paymentId required | string Example: 4 Payment ID |
| storeId required | string Example: storeId=820 Store ID |
| invoiceNumber required | string Invoice number |
{- "invoiceNumber": "100301098"
}{- "message": "Pagamento foi aceito com sucesso."
}Retrieve store payment reconciliation
| clientId required | string Example: clientId=820 Client ID, it must be sent when storeId is not sent |
| storeId required | string Example: storeId=820 Store ID, it must be sent when clientId is not sent |
| search | string Example: search=João Search parameter: (customer name, invoice number, store name) |
| page | string Example: page=1 Page number when searching with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Enum: "id" "invoiceNumber" "createdAt" "clientName" "value" "origin" "storeName" Property to order response list. |
| column | string Example: column=3 |
| order | string Enum: "asc" "desc" |
| startDateTime | string <date-time> Example: startDateTime=2021-10-25T23:00:00Z start date time |
| endDateTime | string <date-time> Example: endDateTime=2021-11-20T23:00:00Z end date time |
| status | string Enum: "pending" "succeeded" "refunded" |
| origin | string Enum: "creditcard" "cashback" |
{- "data": [
- {
- "id": 10,
- "createdAt": "2019-08-24T14:15:22Z",
- "clientName": "João da Silva",
- "storeName": "M de mãe",
- "invoiceNumber": 0,
- "value": 3520.35,
- "origin": "creditcard"
}
], - "total": 18
}Create a new campain
| mallId required | string Example: mallId=6 Mall ID |
| name required | string campaign name |
required | object |
required | object |
| type required | string Enum: "flash" "campaign" campaign type |
| clubExclusive required | boolean campaign exclusivity |
| contextTags | Array of integers[ items ] Contextos da campanha |
| personaTags | Array of integers[ items ] Personas da campanha |
| stores required | Array of integers[ items ] stores |
object |
{- "name": "campanha teste 1",
- "startDate": {
- "date": "2019-08-24",
- "time": "14:15:22Z"
}, - "endDate": {
- "date": "2019-08-24",
- "time": "14:15:22Z"
}, - "type": "campaign",
- "clubExclusive": false,
- "contextTags": [
- 0
], - "personaTags": [
- 0
], - "stores": [
- 0
], - "channels": {
- "sms": 1000066,
- "email": 1000041,
- "push": 1000057
}
}{- "id": 10
}Read campaigns
| mallId required | string Example: mallId=3 mall id |
| endDate | string <date> Example: endDate=2021-04-20 End date |
| startDate | string <date> Example: startDate=2021-03-20 Start date |
| search | string Example: search=xxx Search parameter |
| limit | string Example: limit=25 |
| page | string Example: page=2 |
| column | string Example: column=3 |
| order | string Enum: "asc" "desc" |
| type required | string Enum: "campaign" "flash" |
| published | string Enum: "true" "false" |
{- "data": [
- {
- "id": 2,
- "name": "campanha teste 1",
- "startDate": {
- "date": "2019-08-24"
}, - "endDate": {
- "date": "2019-08-24"
}, - "clubExclusive": false,
- "contextTags": [
- {
- "id_campaigntag": 1,
- "nme_campaigntag": "Natal",
- "nme_description": "Contexto"
}
], - "personaTags": [
- {
- "id_campaigntag": 1,
- "nme_campaigntag": "Aniversariantes",
- "nme_description": "Persona"
}
], - "stores": [
- 0
], - "channels": {
- "sms": 1000066,
- "email": 1000041,
- "push": 1000057
}, - "reinforcementId": 43
}
], - "total": 237
}Read a specific campaign
| id required | string Example: 10 campaign ID |
| mallId required | string Example: mallId=6 mall ID |
{- "id": 0,
- "name": "campanha teste 1",
- "startDate": {
- "date": "2019-08-24"
}, - "endDate": {
- "date": "2019-08-24"
}, - "clubExclusive": false,
- "contextTags": [
- {
- "id_campaigntag": 1,
- "nme_campaigntag": "Natal",
- "nme_description": "Contexto"
}
], - "personaTags": [
- {
- "id_campaigntag": 1,
- "nme_campaigntag": "Aniversariantes",
- "nme_description": "Persona"
}
], - "stores": [
- 0
], - "channels": {
- "sms": 1000066,
- "email": 1000041,
- "push": 1000057
}, - "reinforcementId": 43,
- "type": "campaign"
}Update a specific campaign
| id required | string Example: 10 campaign ID |
| mallId required | string Example: mallId=6 mall ID |
| name | string campaign name |
object | |
object | |
| type required | string campaign type |
| clubExclusive | boolean campaign exclusivity |
| contextTags | Array of integers[ items ] Contextos da campanha |
| personaTags | Array of integers[ items ] Personas da campanha |
| stores | Array of integers[ items ] stores |
object |
{- "name": "campanha teste 1",
- "startDate": {
- "date": "2019-08-24",
- "time": "14:15:22Z"
}, - "endDate": {
- "date": "2019-08-24",
- "time": "14:15:22Z"
}, - "type": "campaign",
- "clubExclusive": false,
- "contextTags": [
- 0
], - "personaTags": [
- 0
], - "stores": [
- 0
], - "channels": {
- "sms": 1000066,
- "email": 1000041,
- "push": 1000057
}
}Get campaign preview
| mallId required | string Example: mallId=6 Mall ID |
| stores | Array of integers[ items ] Store IDs |
| contextTags | Array of integers[ items ] |
| personaTags | Array of integers[ items ] |
| channels required | Array of strings[ items non-empty ] Items Enum: "email" "sms" |
{- "stores": [
- 2,
- 11,
- 36
], - "contextTags": [
- 25,
- 69
], - "personaTags": [
- 55,
- 78
], - "channels": [
- "email"
]
}{- "total": 10,
- "email": 5,
- "sms": 5
}Create a new email
| mallId required | string Example: mallId=6 Mall ID |
| subject required | string email subject |
| content required | string email content |
| metadata | string email metadata |
{- "subject": "teste",
- "content": "<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body>\n<h1>This is a Email</h1> <p>This is a Email.</p>\n</body> </html>",
- "metadata": "dados"
}{- "id": 12
}read a specific email
| id required | string Example: 10 email ID |
| mallId required | string Example: mallId=6 mall ID |
{- "id": 6,
- "subject": "subject-teste",
- "content": "<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body>\n<h1>This is a Email</h1> <p>This is a Email.</p>\n</body> </html>",
- "metadata": "dados"
}updates a specific email
| id required | string Example: 10 email ID |
| mallId required | string Example: mallId=6 mall ID |
| subject | string subject |
| content | string email content |
| metadata | string email metadata |
{- "subject": "subject-test2",
- "content": "<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body>\n<h1>This is an Email</h1> <p>This is an Email.</p> <p>This is an Email.</p>\n</body> </html>",
- "metadata": "dados"
}Create a new push
| mallId required | string Example: mallId=6 Mall ID |
| heading required | string heading |
| content required | string content |
{- "heading": "teste-heading",
- "content": "test-content"
}{- "id": 13
}update a specific push
| id required | string Example: 10 sms ID |
| mallId required | string Example: mallId=6 mall ID |
| content | string content |
{- "content": "test-content2"
}Create a new sms
| mallId required | string Example: mallId=6 Mall ID |
| subject required | string subject |
| content required | string content |
| marketing required | boolean marketing |
{- "subject": "teste",
- "content": "content teste",
- "marketing": true
}{- "id": 13
}update a specific sms
| id required | string Example: 10 sms ID |
| mallId required | string Example: mallId=6 mall ID |
| content | string content |
| marketing | boolean marketing |
{- "content": "updated SMS content",
- "marketing": false
}Register a new email template.
| mallId required | string Example: mallId=5 Mall ID |
| subject required | string |
| metadata required | string |
| content required | string |
{- "id": 0,
- "subject": "string",
- "metadata": "string",
- "content": "string"
}{- "id": 34
}Lists many active email template records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| subject | string Filter by subject. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "subject" Property to order response list. |
{- "data": [
- {
- "id": 0,
- "subject": "string",
- "metadata": "string",
- "content": "string"
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Email template ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "O template de email informado não foi encontrado."
}Lists one active email template record by mall.
| id required | integer Example: 6 Email template id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 0,
- "subject": "string",
- "metadata": "string",
- "content": "string"
}Send e-mail.
| mallId required | number Mall Identifier. |
| emails | Array of strings |
| emailId | number Email Identifier. |
| content required | string |
| subject required | string |
| sourceType required | string Enum: "OPERACIONAL" "PLATAFORMA" "REGUA" |
{ }Registers a new Store .
| mallId required | string Example: mallId=6 Mall ID |
| mallId required | integer MallId where the store is located |
| name required | string Store's legal name |
| legalName required | string Store's name |
| logo | string Store's Logo |
| location | string Store stand number |
| receberCurriculo | boolean If the store wants to receive a resume |
| emBreve | boolean If the store is going to open soon |
| complement | string Store complement information |
| contactName required | string Name to contact |
| contactPhone required | string Number to contact |
| email required | string <email> Email address |
| type required | string Enum: "loja" "quiosque" Store's type |
| active required | boolean If store are active |
| cnpj | string Store's CNPJ |
| phones required | Array of strings |
| lucs | Array of integers[ items ] |
| segmentId required | number |
| activityIds required | Array of numbers[ items ] |
Array of objects[ items ] | |
object | |
| metadata | string The store's answer to de custom property. |
{- "mallId": 2,
- "name": "Lojas Americanas",
- "legalName": "Lojas Americanas SA",
- "logo": "string",
- "location": "L13",
- "receberCurriculo": true,
- "emBreve": true,
- "complement": "Loja",
- "contactName": "João da Silva",
- "contactPhone": "11111111111",
- "type": "loja",
- "active": true,
- "cnpj": "30621140000148",
- "phones": [
- "11111111111"
], - "lucs": [
- [
- 502,
- 503,
- 504
]
], - "segmentId": 1,
- "activityIds": [
- [
- 7,
- 8,
- 9
]
], - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String"
}{- "id": 1,
- "mallId": 1,
- "cnpj": "30621140000148",
- "name": "Lojas Americanas",
- "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String"
}Returns a list of stores.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
[- {
- "id": 423,
- "name": "Lojas Americanas",
- "legalName": "Lojas Americanas SA",
- "cnpj": "30621140000148",
- "location": "1º PISO",
- "slug": "lojas-americanas",
- "receberCurriculo": 0,
- "emBreve": 0,
- "phones": [
- [
- "(21) 987654321",
- "(21) 912345678"
]
], - "products": "",
- "presentation": {
- "title": "Lojas Americanas S.A.",
- "description": "Lojas Americanas S.A. é uma empresa brasileira do segmento de varejo fundada em 1929 na cidade de Niterói pelo austríaco Max Landesmann e pelos norte-americanos John Lee, Glen Matson, James Marshall e Batson Borger. A empresa conta com mais de 1320 estabelecimentos de vendas em todo o Brasil."
}, - "lucs": [
- {
- "floor": {
- "id_floor": 2,
- "nme_floor": "Lojas Americanas"
}, - "lucs": [
- {
- "id_luc": 3,
- "nme_luc": "B12"
}
]
}
], - "segmentId": 1,
- "activityIds": [
- [
- 7,
- 8,
- 9
]
], - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String"
}
]Get All Stores
| mallId required | string Example: 820 Mall ID |
[- {
- "id": 1,
- "mall_id": 2,
- "name": "Lojas Americanas",
- "legal_name": "Lojas Americanas SA",
- "stand_number": "1234",
- "logo": "string",
- "location": "L13",
- "receber_curriculo": true,
- "em_breve": true,
- "complement": "loja",
- "contactName": "Lucas",
- "contactPhone": "11111111111",
- "type": "loja",
- "active": true,
- "cnpj": "30621140000148",
- "phones": [
- "11111111111"
], - "lucs": [
- {
- "floor": {
- "id_floor": 2,
- "nme_floor": "Lojas Americanas"
}, - "lucs": [
- {
- "id_luc": 3,
- "nme_luc": "B12"
}
]
}
], - "segmentId": 1,
- "activityIds": [
- [
- 7,
- 8,
- 9
]
], - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String"
}
]Find a Store .
| mallId required | string Example: mallId=6 Mall ID |
| mallId | integer MallId where the store is located |
| name | string Store's name |
{- "mallId": 2,
- "name": "Lojas Americanas"
}{- "id": 1,
- "mall_id": 2,
- "name": "Lojas Americanas",
- "legal_name": "Lojas Americanas SA",
- "stand_number": "1234",
- "logo": "string",
- "location": "L13",
- "receber_curriculo": true,
- "em_breve": true,
- "complement": "loja",
- "contactName": "Lucas",
- "contactPhone": "11111111111",
- "type": "loja",
- "active": true,
- "cnpj": "30621140000148",
- "phones": [
- "11111111111"
], - "activities": [
- 5
], - "mcc_activity_id": 5,
- "employee_register_id": 5,
- "employee_update_id": 5,
- "register_date": "2021-05-17T15:05:22.691Z",
- "last_update": "2021-05-17T15:05:22.691Z",
- "average_ticket": 1,
- "external_id": 1,
- "coalition_pin": 1,
- "coalition_id": 1,
- "customFields": {
- "whatsapp": "2109828374"
}, - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "metadata": "String"
}Returns a list of stores filtered by a search string.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| name | string Example: name=mc Store's name |
| legalName | string Example: legalName=SERVIÇOS LTDA Store's legal name. |
| cnpj | |
| standNumber | string Example: standNumber=L12 Store's stand number. |
| location | string Example: location=2F Store's location. |
| category | string Example: category=1 Store's category. |
| subcategories | string Example: subcategories=6,7 Store's subcategories IDs. To search in more than one field, the names of field must be separated by commas(,). |
| active | string Enum: "true" "false" Example: active=true Store's status |
| page | string Example: page=1 Page number when searching with pagination. |
| limitByPage | string Example: limitByPage=50 Length of list per page with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Default: "id" Enum: "name" "legalName" "type" "cpf" "email" "mobileNumber" "id" Customer Property to order response list. (ENUM: 'name', 'cpf', 'email', 'mobileNumber'). |
| order | string Default: "desc" Enum: "asc" "desc" |
| _fields | string Example: _fields=Instagram,Twitter Custom fields to search a keyword. To search in more than one field, the names of field must be separated by commas(,). |
| _keyword | string Example: _keyword=@search Keyword to search in the custom fields. |
| _display | string Example: _display=cpf,fullName,address.zipCode,customFields.rg List of properties to be displayed on response. To search in more than one field, the names of field must be separated by commas(,). PS: To select subproperties must be sended 'property.subproperty'. Ex: address.zipCode |
{- "data": [
- {
- "id": 423,
- "name": "MC DONALD'S",
- "legalName": "MC DONALD'S LTDA",
- "slug": "MC",
- "receberCurriculo": true,
- "emBreve": true,
- "type": "loja",
- "cnpj": 93457203000192,
- "facebook": "@store",
- "instagram": "@store",
- "phones": [
- "(21)27037876"
], - "products": "food",
- "presentation": {
- "title": "MC Donald's",
- "descriptions": "Fast food network"
}, - "lucs": [
- {
- "floor": {
- "id_floor": 2,
- "nme_floor": "Lojas Americanas"
}, - "lucs": [
- {
- "id_luc": 3,
- "nme_luc": "B12"
}
]
}
], - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "customFields": {
- "customProperty": "Client Answer"
}, - "metadata": "String",
- "segmentId": 1,
- "activityIds": [
- [
- 7,
- 8,
- 9
]
]
}
], - "total": 1
}AutoComplete
| mallId required | string Example: mallId=6 Mall ID |
| search required | string Example: search=6 Mall ID |
| page | string Example: page=1 Page number when searching with pagination. |
| limitByPage | string Example: limitByPage=50 Length of list per page with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Enum: "name" "legalName" "cnpj" "email" Store Property to order response list. (ENUM: 'name', 'legalName', 'cnpj', 'email'). |
| active | string Enum: "true" "false" Store's status. (ENUM: 'true', 'false'). |
| order | string Default: "desc" Enum: "asc" "desc" |
| _display | string Example: _display=fullName,cnpj,name |
{- "id": 423,
- "name": "MC DONALD'S",
- "legalName": "MC DONALD'S LTDA",
- "slug": "MC",
- "receberCurriculo": true,
- "emBreve": true,
- "type": "loja",
- "cnpj": 93457203000192,
- "active": true,
- "phones": [
- "(21)27037876"
], - "url": "example.com",
- "facebook": "@store",
- "instagram": "@store",
- "products": "",
- "presentation": {
- "title": "MC Donald's",
- "descriptions": "Fast food network"
}, - "storeluc": [
- {
- "id_luc": 1,
- "nme_luc": "A01",
- "id_floor": 1,
- "nme_floor": "PISO 1",
- "store_name": "Americanas"
}, - {
- "id_luc": 5,
- "nme_luc": "B01",
- "id_floor": 2,
- "nme_floor": "PISO 2"
}
], - "additionallegalentities": [
- {
- "cnpj": null,
- "legalname": null
}
], - "activities": [
- {
- "segmentId": null,
- "activityId": null,
- "segmentName": null,
- "activityName": null
}
]
}AutoCompleteReduced
| mallId required | string Example: mallId=6 Mall ID |
| search required | string Example: search=6 Mall ID |
| page | string Example: page=1 Page number when searching with pagination. |
| limitByPage | string Example: limitByPage=50 Length of list per page with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Enum: "name" "legalName" "cnpj" "email" Store Property to order response list. (ENUM: 'name', 'legalName', 'cnpj', 'email'). |
| active | string Enum: "true" "false" Store's status. (ENUM: 'true', 'false'). |
| order | string Default: "desc" Enum: "asc" "desc" |
{- "id": 423,
- "name": "MC DONALD'S",
- "legalName": "MC DONALD'S LTDA",
- "cnpj": 93457203000192
}Update a Store.
| id required | string Example: 820 Store ID |
| mallId required | string Example: mallId=1 Mall ID |
| id | integer Store ID |
| mallId required | integer MallId where the store is located |
| name required | string Store's legal name |
| legalName required | string Store's name |
| logo | string Store's Logo |
| location | string Store stand number |
| receberCurriculo | boolean If the store wants to receive a resume |
| emBreve | boolean If the store is going to open soon |
| complement | string Store complement information |
| contactName required | string Name to contact |
| contactPhone required | string Number to contact |
| email required | string <email> Email address |
| type required | string Enum: "loja" "quiosque" Store's type |
| active required | boolean If store are active |
| cnpj | string Store's CNPJ |
| phones required | Array of strings |
| segmentId required | number |
| lucs | Array of integers[ items ] |
| activityIds required | Array of numbers[ items ] |
Array of objects[ items ] | |
object | |
| metadata | string The store's answer to de custom property. |
{- "id": 1,
- "mallId": 2,
- "name": "Lojas Americanas",
- "legalName": "Lojas Americanas SA",
- "logo": "string",
- "location": "L13",
- "receberCurriculo": true,
- "emBreve": true,
- "complement": "Loja",
- "contactName": "João da Silva",
- "contactPhone": "11111111111",
- "type": "loja",
- "active": true,
- "cnpj": "30621140000148",
- "phones": [
- "11111111111"
], - "segmentId": 1,
- "lucs": [
- [
- 502,
- 503,
- 504
]
], - "activityIds": [
- [
- 7,
- 8,
- 9
]
], - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String"
}{- "id": 1,
- "mallId": 1,
- "cnpj": "30621140000148",
- "name": "Lojas Americanas",
- "email": "[email protected]"
}Get Stores
| storeId required | string Example: 6 Store ID |
| mallId required | string Example: mallId=1 Mall ID |
{- "id": 1,
- "mall_id": 2,
- "name": "Lojas Americanas",
- "legal_name": "Lojas Americanas SA",
- "stand_number": "1234",
- "logo": "string",
- "location": "L13",
- "receber_curriculo": true,
- "em_breve": true,
- "complement": "loja",
- "contactName": "Lucas",
- "contactPhone": "11111111111",
- "type": "loja",
- "active": true,
- "cnpj": "30621140000148",
- "phones": [
- "11111111111"
], - "segmentId": 5,
- "activityIds": [
- [
- 7,
- 8,
- 9
]
], - "lucs": [
- {
- "floor": {
- "id_floor": 2,
- "nme_floor": "Lojas Americanas"
}, - "lucs": [
- {
- "id_luc": 3,
- "nme_luc": "B12"
}
]
}
], - "additionalLegalEntities": [
- {
- "cnpj": 82151789000146,
- "legalName": "Imagine store"
}
], - "employee_register_id": 5,
- "employee_update_id": 5,
- "register_date": "2021-05-17T15:05:22.691Z",
- "last_update": "2021-05-17T15:05:22.691Z",
- "average_ticket": 1,
- "external_id": 1,
- "coalition_pin": 1,
- "coalition_id": 1,
- "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String"
}Update store active
| storeId required | string Example: 6 Store ID |
| mallId required | string Example: mallId=6 Mall ID |
| active required | boolean field to update store operating status |
{- "active": true
}Create or Update Shopkeeper.
| storeId required | string Example: 20 Store ID |
| mallId required | string Example: mallId=6 Mall ID |
| clientId required | integer Existing customer id |
| name | string Shopkeeper name |
| cpf | string |
| phone | string Shopkeeper phone |
string <email> Shopkeeper email | |
| relationshipType required | string Value: "PROPRIETÁRIO(A)" |
| idStorePosition | integer |
| dtaAdmission | string <date> Shopkeeper admission date |
| dtaEnd | string <date> shopkeeper disabling date |
| statusShopkeeper | string Default: "active" Enum: "active" "inactive" shopkeeper status |
{ }{- "id": 52
}Get shopkeepers by storeId.
| storeId required | string Example: 20 Store ID |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| search | string Example: search=FUNCIONÁRIO Search parameter: 'cpf' OU 'name' OU 'nme relationshiptype' OU 'nme storeposition' |
| validity | string Value: "valid" Example: validity=valid search for valid benefit records |
| limitByPage | string Example: limitByPage=5 Limit of itens per page. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "id" "idStore" "IdClient" "idRelationshiptype" "idStoreposition" "dtaRegister" "dtaAdmission" "dtaEnd" "flgContact" Property to order response list. |
| statusShopkeeper | string Enum: "active" "inactive" Search by shopkeeper status |
{- "data": [
- {
- "id": 1,
- "name": "John Doe",
- "cpf": "string",
- "clientId": 0,
- "phone": "999999999",
- "relationshipType": "PROPRIETÁRIO(A)",
- "idStorePosition": 12,
- "dtaAdmission": "2019-08-24",
- "dtaEnd": "2019-08-24",
- "statusShopkeeper": "inactive"
}
], - "total": 100
}Disable Shopkeeper.
| storeId required | string Example: 20 Store ID |
| shopkeeperId required | string Example: 20 Shopkeeper id |
| mallId required | string Example: mallId=6 Mall ID |
| dtaEnd | string <date> shopkeeper's dismissal date |
{- "dtaEnd": "2019-08-24"
}Get shopkeeper
| storeId required | string Example: 20 Store ID |
| shopkeeperId required | integer Example: 5 shopkeeper ID |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 1,
- "name": "John Doe",
- "cpf": "string",
- "clientId": 0,
- "phone": "999999999",
- "relationshipType": "PROPRIETÁRIO(A)",
- "idStorePosition": 12,
- "dtaAdmission": "2019-08-24",
- "dtaEnd": "2019-08-24",
- "statusShopkeeper": "inactive"
}Register or update a new Luc .
| mallId required | string Example: mallId=6 Mall ID |
object | |
| floorId required | integer id of the ground where the luc will be raised |
{- "luc": {
- "id": 3,
- "name": "A99"
}, - "floorId": 7
}Get lucs
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| search | string Example: search=Piso 3 Search parameter: 'luc name' OU 'floor name' |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "floorId" "lucId" "lucName" Property to order response list. |
{- "data": [
- {
- "id": 1,
- "name": "A88",
- "floor": {
- "id": 1,
- "name": "A88"
}
}
], - "total": 100
}Register a new report or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| tooltip | integer Additional explanation about the report. |
| order | integer Report order. |
| queryString required | string Report query string. |
| reportMenuId | integer report menu ID. |
| numberColumns required | integer Enum: 6 8 12 24 Occupancy of the report on the grid. |
| name required | string Report name. |
| chartType required | string Enum: "area" "bar" "horizontalBar" "line" "number" "pie" "radar" "table" chart type |
{- "id": 56,
- "tooltip": "relatorio que busca a quantidade de clientes que entraram no programa de fidelidade nmos ultimos 7 dias",
- "order": 3,
- "queryString": "SELECT COUNT(DISTINCT column) FROM table;",
- "reportMenuId": 5,
- "numberColumns": 6,
- "name": "string",
- "chartType": "area"
}{- "id": 34
}Lists many active report records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "numOrder" Enum: "id" "numOrder" "name" Property to order response list. |
| search | string Search by name. |
| fallback | string Enum: "true" "false" Prioritizes the return of customized reports, if the mall has not returned standard reports. |
| reportMenuId | string Filter records by report menu ID |
| chartType | string Enum: "area" "bar" "horizontalBar" "line" "number" "pie" "radar" "table" Filter records by chart type. |
{- "data": [
- {
- "id": 56,
- "tooltip": "relatorio que busca a quantidade de clientes que entraram no programa de fidelidade nmos ultimos 7 dias",
- "order": 3,
- "queryString": "SELECT COUNT(DISTINCT column) FROM table;",
- "reportMenu": {
- "id": 5,
- "name": "relatorio de sac"
}, - "numberColumns": 6,
- "name": "string",
- "chartType": "area"
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Report ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "O relatório informado não foi encontrado."
}Lists one active report record by mall.
| id required | integer Example: 6 Report id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 1,
- "tooltip": "relatorio que busca a quantidade de clientes que entraram no programa de fidelidade nmos ultimos 7 dias",
- "order": 3,
- "queryString": "SELECT COUNT(DISTINCT column) FROM table;",
- "reportMenu": {
- "id": 5,
- "name": "relatorio de sac"
}, - "numberColumns": 6,
- "name": "string",
- "chartType": "area"
}Lists many report entity records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "name" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 56,
- "name": "RELATORIO"
}
], - "total": 100
}Load a administrator report.
| mallId required | string Example: mallId=5 Mall ID |
| query | string |
{- "query": "{\"limit\":500}"
}{- "query": { },
- "data": { },
- "lastRefreshTime": "2022-08-11T12:55:12.988Z",
- "annotation": { },
- "dataSource": "default",
- "dbType": "snowflake",
- "external": false,
- "slowQuery": false
}Register a new script stage or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| scriptId required | integer Example: scriptId=90 Script campaign ID. |
| stageText required | string Stage Text |
{- "id": 345,
- "stageText": "Em frete a loja Aquamar"
}{- "id": 34
}Lists many script stage records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| scriptId required | integer Example: scriptId=90 Script campaign ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "numOrder" Enum: "id" "numOrder" Property to order response list. |
| nextStageId | string Filter to return the next navigation script |
{- "data": [
- {
- "id": 345,
- "scriptId": 780,
- "stageText": "Em frete a loja Aquamar"
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Script Stage ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| scriptId required | integer Example: scriptId=90 Script campaign ID. |
{- "message": "A etapa do roteiro de atendimento informada não foi encontrada."
}Lists one active script stage record by mall and script campaign.
| id required | integer Example: 6 Report id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| scriptId required | integer Example: scriptId=90 Script campaign ID. |
{- "id": 345,
- "scriptId": 780,
- "stageText": "Em frete a loja Aquamar"
}Register a new script or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Script Name |
| stageStartId required | integer stage start ID. |
{- "id": 345,
- "name": "ATENDIMENTO VIA PARQUE",
- "stageStartId": 0
}{- "id": 34
}Lists many script records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "numOrder" Enum: "id" "numOrder" Property to order response list. |
{- "data": [
- {
- "id": 345,
- "name": "ATENDIMENTO VIA PARQUE",
- "stageStartId": 170
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Script Stage ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "status": 400,
- "message": "A etapa do roteiro de atendimento informada não foi encontrada."
}Lists one active script record by mall and script campaign.
| id required | integer Example: 6 Script id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 345,
- "name": "ATENDIMENTO VIA PARQUE",
- "stageStartId": 170
}Lists many script campaign records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "numOrder" Enum: "id" "numOrder" Property to order response list. |
{- "data": [
- {
- "id": 345,
- "name": "ATENDIMENTO VIA PARQUE",
- "description": "string",
- "dateBegin": "2019-08-24T14:15:22Z",
- "dateEnd": "2019-08-24T14:15:22Z",
- "script": {
- "id": 345,
- "stageStartId": 170
}
}
], - "total": 100
}Lists one active script record by mall and script campaign.
| id required | integer Example: 6 Script campaign ID to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 345,
- "name": "ATENDIMENTO VIA PARQUE",
- "description": "string",
- "dateBegin": "2019-08-24T14:15:22Z",
- "dateEnd": "2019-08-24T14:15:22Z",
- "script": {
- "id": 345,
- "stageStartId": 170
}
}Register a new persona or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Persona name. |
| description | string Persona description/tooltip. |
| query required | string Persona query string cubejs. |
{- "name": "Lojista",
- "description": "description persona",
- "query": "SELECT COUNT(DISTINCT column) FROM table;"
}{- "id": 34
}Lists many active persona records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 56,
- "query": "SELECT COUNT(DISTINCT column) FROM table;",
- "name": "string",
- "default": true,
- "readonly": true,
- "description": "persona description..."
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Persona ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "A persona informada não foi encontrada."
}Lists one active persona record by mall.
| id required | integer Example: 6 Persona id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 1,
- "query": "SELECT COUNT(DISTINCT column) FROM table;",
- "name": "string",
- "default": true,
- "readonly": true,
- "description": "string"
}Register a new promotion or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name | string Promotion name. |
| imageURL | string Promotion image URL. |
| disclaimer | string Promotion disclaimer. |
| startDate | string Promotion start date. |
| endDate | string Promotion end date. |
| exchangeValue | integer Amount that should be spent in order to exchange for a ticket |
| extendedFields | string extended fields in JSON Object string format |
| regulationURL | string Regulation details. |
| indicatesSeller | boolean Flag to indicate seller |
| issueCoupon | string Flag to indicate coupon issuance. |
| issueGifts | boolean Flag to indicate gifts issuance. |
| luckyNumber | boolean Flag to indicate lucky number. |
{- "id": 56,
- "name": "Dia das Mães",
- "disclaimer": "Promoção para o dia das mães",
- "startDate": "2023-02-03",
- "endDate": "2023-03-10",
- "exchangeValue": 150,
- "extendedFields": {
}, - "indicatesSeller": true,
- "issueCoupon": true,
- "issueGifts": true,
- "luckyNumber": true
}{- "id": 34
}Lists many active promotion records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| active | string Default: "true" Enum: "true" "false" Property to response list active or inactive promotions. |
{- "data": [
- {
- "id": 56,
- "name": "Dia das Mães",
- "disclaimer": "Promoção para o dia das mães",
- "startDate": "2023-02-03",
- "endDate": "2023-03-10",
- "exchangeValue": 150,
- "extendedFields": {
}, - "indicatesSeller": true,
- "isRunning": true,
- "exchangeType": true
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Promotion ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "A promoção informada não foi encontrada."
}Lists one active promotion record by mall.
| id required | integer Example: 6 Promotion id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 56,
- "name": "Dia das Mães",
- "disclaimer": "Promoção para o dia das mães",
- "startDate": "2023-02-03",
- "endDate": "2023-03-10",
- "exchangeValue": 150,
- "extendedFields": {
}, - "indicatesSeller": true,
- "isRunning": true,
- "exchangeType": true
}Register a new quiz or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Quiz name. |
| startDateTime required | string <date-time> Date on which the quiz will be made available to customers. |
| endDateTime | string <date-time> Date the survey will be closed to customers. |
| order | integer Order in which the questionnaire will appear in the list in relation to the others. |
{- "id": 102,
- "name": "Questionario natalino 2022.",
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z",
- "order": 5
}{- "id": 34
}Lists many active quizzes records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "order" Enum: "id" "name" "order" "startDateTime" "endDateTime" Property to order response list. |
| search | string Search by name. |
{- "data": [
- {
- "id": 5,
- "name": "Questionario natalino 2022.",
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z",
- "order": 2
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Quiz ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "O questionario informado não foi encontrado."
}Lists one active quiz record by mall.
| id required | integer Example: 6 Quiz id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 5,
- "name": "Questionario natalino 2022.",
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z",
- "order": 2
}Register a new question in a quiz or update a record.
| mallId required | string Example: mallId=5 Mall ID |
| quizId required | string Example: quizId=34 quiz ID |
| question required | string New question for the quiz. |
| visible required | boolean Used to show or not show a question in the form used by the user |
| mandatory required | boolean Says if the question is mandatory |
| order required | integer Says the order of the question in a quiz |
| typeId required | integer The type of answer button |
Array of objects[ items ] |
{- "id": 469,
- "question": "Você pretende vir ao shopping no natal ?.",
- "questionOptions": [
- {
- "id": 56,
- "answerOption": "SIM"
}
]
}{- "id": 34
}List many active quiz questions
| mallId required | integer Example: mallId=6 Associated mall ID. |
| quizId required | integer Example: quizId=6 Quiz ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "order" Enum: "id" "order" Property to order response list. |
{- "data": [
- {
- "id": 2,
- "question": "Você pretende vir ao shopping no natal ?.",
- "visible": true,
- "mandatory": true,
- "order": 4,
- "type": {
- "id": 2,
- "type": "checkbox"
}, - "questionOptions": [
- {
- "id": 567,
- "answerOption": "SIM"
}
]
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Question ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "A opção de pergunta informada não foi encontrada."
}Lists one active quiz record by mall.
| id required | integer Example: 6 Quiz id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 2,
- "question": "Você pretende vir ao shopping no natal ?.",
- "visible": true,
- "mandatory": true,
- "order": 4,
- "type": {
- "id": 2,
- "type": "checkbox"
}, - "questionOptions": [
- {
- "id": 567,
- "answerOption": "SIM"
}
]
}Logically delete an active record.
| id required | integer Example: 6 Question ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "A opção de pergunta informada não foi encontrada."
}List many active types answer question
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "order" Enum: "id" "type" Property to order response list. |
{- "data": [
- {
- "id": 2,
- "type": "radio"
}
], - "total": 100
}Register a new quiz Answer.
| mallId required | string Example: mallId=5 Mall ID |
| quizId required | string Example: quizId=34 quiz ID |
| clientId required | string Example: clientId=34 client ID |
Array of objects[ items ] |
{- "answerQuestions": [
- {
- "questionId": 5,
- "answers": [
- 1,
- 4
]
}
]
}{- "message": "A pergunta informada não foi encontrada."
}List of quiz answers by customer
| mallId required | integer Example: mallId=6 Associated mall ID. |
| quizId | integer Quiz ID. |
| clientId | integer Example: clientId=67 client ID. |
[- {
- "clientId": 2,
- "questions": [
- {
- "id": 156,
- "question": "Você pretende vir ao shopping no natal ?.",
- "typeId": 5,
- "order": 2,
- "mandatory": true,
- "answers": [
- {
- "id": 45,
- "answer": "SIM",
- "typeId": "string",
- "selected": true
}
]
}
]
}
]Registers a sales declaration.
| storeId required | string Example: storeId=5 Store ID |
| salesDeclarationDate required | string <date> sales declaration date |
| salesValue required | number sales value |
| auditedValue | number audited value |
{- "salesDeclarationDate": "2021-05-04",
- "salesValue": 123888.85,
- "auditedValue": 123888.85
}list many sales declarations
| limit | integer Example: limit=300 Length of list without pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| month | integer Example: month=5 filter month number. |
| year | integer Example: year=2020 filters by year. |
| storeId required | integer Example: storeId=101 filters by storeId. |
| sortBy | string Default: "id" Enum: "id" "storeId" "salesDeclarationDate" "salesValue" "auditedValue" Property to order response list. |
{- "data": [
- {
- "id": 11,
- "storeId": 101,
- "salesValue": 150582.89,
- "auditedValue": 150582.89,
- "salesDeclarationDate": "2021-08-10"
}
], - "total": 100
}list a sales declaration
| id required | integer Example: 6 sales declaration ID to be filtered |
| storeId required | integer Example: storeId=6 The ID of the associated store. |
{- "id": 11,
- "storeId": 101,
- "salesValue": 150582.89,
- "auditedValue": 150582.89,
- "salesDeclarationDate": "2021-08-10"
}Update a sales declaration.
| id required | integer Example: 6 sales declaratin ID to be filtered |
| storeId required | string Example: storeId=5 Store ID |
| storeId | number store ID |
| salesValue | number sales value |
| auditedValue | number audited value |
| salesDeclarationDate | string <date> sales declaration date |
{- "storeId": 101,
- "salesValue": 150582.89,
- "auditedValue": 150582.89,
- "salesDeclarationDate": "2021-08-10"
}list many sales declarations
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | integer Example: limit=300 Length of list without pagination. |
| page | string Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| startDate | string Example: startDate=2021-05-19 Start date to be searched. |
| endDate | string <date> Example: endDate=2021-07-18 End date to be searched. |
| storeId | integer Example: storeId=101 filters by storeId. |
| sortBy | string Default: "id" Enum: "id" "storeId" "salesDeclarationDate" "salesValue" "auditedValue" Property to order response list. |
{- "data": [
- {
- "id": 11,
- "storeId": 101,
- "salesValue": 150582.89,
- "auditedValue": 150582.89,
- "salesDeclarationDate": "2021-08-10"
}
], - "total": 100
}list a sales declaration
| id required | integer Example: 6 sales declaration ID to be filtered |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 11,
- "storeId": 101,
- "salesValue": 150582.89,
- "auditedValue": 150582.89,
- "salesDeclarationDate": "2021-08-10"
}audit a sales declaration.
| id required | integer Example: 6 sales declaratin ID to be filtered |
| mallId required | string Example: mallId=5 Mall ID |
| auditedValue required | number audited value |
{- "auditedValue": 150582.89
}Get All babycare
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| search | string Example: search=Joãozinho Silva Search by customer name or baby name |
| startDate | string Example: startDate=2021-05-19 Start date to be searched. |
| endDate | string <date> Example: endDate=2021-07-18 End date to be searched. |
| limit | string Example: limit=300 Length of list without pagination. |
| limitByPage | string Example: limitByPage=5 Limit of itens per page. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "id" "dateTime" "customerName" "childName" "score" Property to order response list. (ENUM: 'dateTime', 'customerName', 'childName', 'score'). |
{- "data": [
- {
- "id": 2,
- "datetime": "2021-08-10",
- "customerName": "João da Silva",
- "childName": "Frank Herbert Silva",
- "score": 5
}
], - "total": 1
}Create a babycare visit
| mallId required | string Example: mallId=6 The ID of the associated mall. |
object Babycare object request | |
object or object or object or object | |
object Custom fields object request |
{- "babycare": {
- "childName": "Frank Herbert Silva",
- "birthday": "2019-08-24",
- "activityTypeId": 4,
- "usageTypeId": 3,
- "description": "Clean place."
}, - "customer": { },
- "customFields": {
- "customField": "customField example"
}
}{- "babyCare": {
- "id": 987
}
}Return a babycare visit
| babycareId required | string Example: 552 babycare ID |
| mallId required | string Example: mallId=6 The ID of the associated mall. |
{- "babycare": {
- "id": 2,
- "dateTime": "2021-08-10",
- "childName": "Frank Herbert Silva",
- "score": 5,
- "birthday": "2021-08-10",
- "description": "Description about the service",
- "activityType": {
- "id": 1,
- "name": "Clean baby"
}, - "usageType": {
- "id": 3,
- "name": "Diaper change"
}
}, - "customer": {
- "cpf": "string",
- "zipCode": "23933135",
- "name": "string",
- "sex": "F",
- "birthday": "2019-08-24",
- "mobileNumber": "string",
- "city": "Angra dos Reis",
- "complement": "Apt. 401",
- "neighborhood": "Nova Angra",
- "state": "RJ",
- "street": "Travessa Nova Angra",
- "number": "567",
}, - "customFields": {
- "customField": "custom field example"
}
}Return a babycare heatmap
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| selectedMallIds required | string Example: selectedMallIds=1,2,3 The IDs of the associateds malls. |
| offset | string Default: "week" Enum: "today" "week" "month" "year" |
[- {
- "day": 5,
- "hour": 1,
- "value": 0
}
]Return babycare categories pizza
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| selectedMallIds required | string Example: selectedMallIds=1,2,3 The IDs of the associateds malls. |
| offset | string Default: "today" Enum: "today" "week" "month" "year" |
[- {
- "label": "Prospect (13)",
- "value": 13
}, - {
- "label": "Base (133)",
- "value": 133
}, - {
- "label": "Intermediário (29)",
- "value": 29
}
]Return babycar visits bars data
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| selectedMallIds required | string Example: selectedMallIds=1,2,3 The IDs of the associateds malls. |
| offset | string Default: "today" Enum: "today" "week" "month" "year" |
[- {
- "letter": "18-08",
- "frequency": 0
}
]Return the recurrence data
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| selectedMallIds required | string Example: selectedMallIds=1,2,3 The IDs of the associateds malls. |
| offset | string Default: "week" Enum: "today" "week" "month" "year" |
[- {
- "Frequency": "Prospect",
- "Data": [
- {
- "Name": "1x visitas",
- "value": 0
}, - {
- "Name": "2x visitas",
- "value": 0
}, - {
- "Name": "3x visitas",
- "value": 0
}, - {
- "Name": "4x visitas",
- "value": 0
}, - {
- "Name": "5+ visitas",
- "value": 0
}
]
}, - {
- "Frequency": "Base",
- "Data": [
- {
- "Name": "1x visitas",
- "value": 0
}, - {
- "Name": "2x visitas",
- "value": 0
}, - {
- "Name": "3x visitas",
- "value": 0
}, - {
- "Name": "4x visitas",
- "value": 0
}, - {
- "Name": "5+ visitas",
- "value": 0
}
]
}
]Return the average consumption
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| selectedMallIds required | string Example: selectedMallIds=1,2,3 The IDs of the associateds malls. |
| offset | string Default: "today" Enum: "today" "week" "month" "year" |
{- "reais": 1
}Return the conversions
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| selectedMallIds required | string Example: selectedMallIds=1,2,3 The IDs of the associateds malls. |
| offset | string Default: "today" Enum: "today" "week" "month" "year" |
{- "conversions": 1
}List Many registers of babycare usage types.
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 12,
- "name": "troca de fralda"
}
], - "total": 1000
}Insert a new babycare usage type.
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| name | string babycare usage type name. |
{- "name": "banho"
}List a register of babycare usage type.
| id required | string Example: 6 babycare usage type ID. |
| mallId required | string Example: mallId=6 The ID of the associated mall. |
{- "id": 12,
- "name": "troca de fralda"
}Returns a list of transactions.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| limitByPage | string Example: limitByPage=5 Limit of itens per page. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "cnpj" "cpf" "invoiceDate" "invoiceNumber" "value" "qrcodeUrl" "imageUrl" "invoiceSerialNumber" Property to order response list. |
| clientId | string Example: clientId=3 Search parameter: 'clientId' |
| recordReturnType | string Value: "all" Attention! when passing the value 'all', the response may take a while as it will return all records from all possible sources. |
| startDateTime | string <date-time> Example: startDateTime=2021-10-25T23:00:00Z Filter by invoice start date |
| endDateTime | string <date-time> Example: endDateTime=2021-11-20T23:00:00Z Filter by invoice end date |
{- "data": [
- {
- "id": 22,
- "cnpj": "95858430000155",
- "cpf": "33847651099",
- "invoiceNumber": "string",
- "invoiceSerialNumber": "5678",
- "loyaltyRejection": {
- "id": 0,
- "name": "string"
}, - "deniedReason": {
- "id": 0,
- "name": "string"
}, - "value": 10.5,
- "invoiceDate": "2019-08-24T14:15:22Z",
- "registrationDate": "2019-08-24T14:15:22Z",
- "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String",
- "origin": {
- "id": 1,
- "name": "ACHADOS E PERDIDOS"
}, - "status": {
- "id": 1,
- "name": "PENDENTE"
}, - "client": {
- "id": 0,
- "name": "string"
}, - "store": {
- "id": 0,
- "name": "string"
}
}
], - "total": 20
}Reverse an approved transaction.
| mallId required | string Example: mallId=5 Mall ID |
| clientId required | integer client ID |
| transactionId required | integer Transaction ID |
{- "clientId": 409,
- "transactionId": 34
}Returns a transaction record.
| codeTransaction required | string Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d uuid record to filter transaction. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "data": [
- {
- "id": 22,
- "codeTransaction": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
- "cnpj": "95858430000155",
- "cpf": "33847651099",
- "invoiceNumber": "string",
- "invoiceSerialNumber": "5678",
- "value": 1050,
- "invoiceDate": "2019-08-24T14:15:22Z",
- "registrationDate": "2019-08-24T14:15:22Z",
- "customFields": {
- "whatsapp": "2109828374"
}, - "metadata": "String",
- "origin": {
- "id": 1,
- "name": "ACHADOS E PERDIDOS"
}, - "status": {
- "id": 1,
- "name": "PENDENTE"
}, - "client": {
- "id": 0,
- "name": "string"
}, - "store": {
- "id": 0,
- "name": "string"
}, - "loyaltyRejection": {
- "id": 0,
- "name": "string"
}, - "deniedReason": {
- "id": 0,
- "name": "string"
}
}
]
}Registers a new transaction.
The 'originId' must be retrieved from Get Origins
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| id | integer |
| originId required | integer |
| storeId | integer |
| cnpj required | string |
| clientId | integer |
| cpf | string |
| invoiceNumber required | string |
| invoiceSerialNumber | string |
| value | number |
| invoiceDate | string <date-time> |
| customFields | object |
| metadata | string |
| qrcodeUrl | string <uri> |
| imageUrl | string <uri> |
{- "id": 22,
- "originId": 10,
- "storeId": 45,
- "cnpj": "95858430000155",
- "clientId": 678,
- "cpf": "33847651099",
- "invoiceNumber": "string",
- "invoiceSerialNumber": "5632",
- "value": 1050,
- "invoiceDate": "2019-08-24T14:15:22Z",
- "customFields": { },
- "metadata": "string",
}{- "codeTransaction": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
}Returns a QRCode infos.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| qrCodeUrl required | string Example: qrCodeUrl=6700703807216330880636;76001;2022-08-18T12:18:13.978-03:00;812e31e0091d44eaadfc8dd19bc70e63;76301:179162;33220802952485001897650070001791621321004551 QRCode string value. |
{- "invoiceDate": "2018-11-07T02:00:00.000Z",
- "invoiceNumber": "010432",
- "invoiceSerialNumber": "14406358000123",
- "cnpj": "11111111111111",
- "value": 29.8,
- "imageUrl": "6700703807216330880636;76001;2022-08-18T12:18:13.978-03:00;812e31e0091d44eaadfc8dd19bc70e63;76301:179162;33220802952485001897650070001791621321004551"
}Returns transaction list.
| mallId required | string Example: mallId=6 Mall ID |
| statusId | string Example: statusId=2 Status ID |
| clientId | string Example: clientId=62837 Client ID |
| employeeId | string Example: employeeId=1000 Employee ID |
{- "id": 1,
- "statusId": 2,
- "reason": {
- "id": 1,
- "message": "Nota rasurada ou imagem fora de foco. Por favor, envie uma nova foto da nota inteira."
}, - "status": {
- "id": 4,
- "name": "PENDENTE_BACKOFFICE"
}, - "employee": {
- "id": 1000,
- "name": "ADMIN"
}, - "client": {
- "id": 62837,
- "name": "ClientName"
}, - "store": {
- "id": 1040,
- "name": "Americanas",
- "legalName": "Americanas SA"
}, - "registerDate": "2021-09-17 10:47:07.372155",
}Returns transaction count.
| mallId required | string Example: mallId=6 Mall ID |
[- {
- "id": 2,
- "name": "APROVADO",
- "count": 2
}, - {
- "id": 3,
- "name": "NEGADO",
- "count": 3
}, - {
- "id": 4,
- "name": "PENDENTE_BACKOFFICE",
- "count": 19
}, - {
- "id": 5,
- "name": "ANALISE_BACKOFFICE",
- "count": 6
}, - {
- "id": 6,
- "name": "SUSPENSO_BACKOFFICE",
- "count": 2
}
]Approve backoffice transaction
| mallId required | string Example: mallId=6 Mall ID |
| id | integer |
| storeId | integer |
| invoiceNumber | string |
| invoiceSerialNumber | string |
| purchaseDate | string |
| purchaseValue | integer |
| paymentTypeId | integer |
{- "id": 1,
- "storeId": 2,
- "invoiceNumber": "2JS492NVJ23DV",
- "invoiceSerialNumber": "5678",
- "purchaseDate": "2021-09-17 10:47:07.372155",
- "purchaseValue": 230.3,
- "paymentTypeId": 2
}Register a new benefit or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Name of the new benefit. |
| valRecharge | number Unit to recharge benefits for rechargeable benefits. |
| programId required | integer Loyalty program ID. |
| storeId | integer Store id associated with the benefit. |
| description | string Benefit description. |
| voucherText | string or null Returns the html of the voucher if the benefit is printed, otherwise it will be returned null. |
| voucherDescription | string or null voucher description. |
| amountStock | number It is necessary to fill in the value of the benefit in stock if the stockable flag is true. |
| usageRule | string Description of the benefit use rule. |
| categoryId | integer Benefit category id. |
Array of objects[ items ] Array of properties of the association between benefit and modality. |
{- "name": "prato eliana kertész",
- "programId": 3,
- "storeId": 2,
- "description": "string",
- "usageRule": "string",
- "amountStock": 2000,
- "valRecharge": 10.8,
- "voucherText": "<section>n <strong>BENEFÍCIO:</strong> {{redeemName}}<br/>n <strong>NOME DO CLIENTE:</strong> {{customer.fullName}}<br/>n <strong>CPF:</strong> {{customer.cpf}}<br/>n <strong>CÓDIGO DA TROCA:</strong> {{voucherId}}<br/>n <strong>DATA RESGATE:</strong> {{redeemDate}}<br/>n</section>n<section>n <strong>ATENDENTE:</strong> {{employee.name}}<br/>n <strong>INFORMAÇÕES GERAIS:</strong> {{redeemDescription}}<br/>n <strong>Autorizo que sejam descontados {{redeemPoints}} pontos do Programa Solar em<br/>n troca do benefício {{redeemName}} e estou de <br/>acordo com as regras de utilização do mesmo.n </strong><br/>n <strong>NOME DO CLIENTE:</strong> {{customer.fullName}}<br/>n <strong>CPF:</strong> {{customer.cpf}}<br/>n <strong>CÓDIGO DA TROCA:</strong> {{voucherId}}<br/>n <strong>DATA RESGATE:</strong> {{redeemDate}}<br/>n <strong>Saldo de Pontos {{balance}} em {{date}}</strong><br/>n <strong>ASSINATURA DO CLIENTE:</strong> __________________________________n </section>",
- "voucherDescription": "voucher description",
- "categoryId": 5,
- "modalities": [
- {
- "id": 1,
- "qtdMinpoints": 400,
- "qtdClientlimit": 234,
- "dteBegin": "2022-03-10",
- "dteEnd": "2022-04-10",
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 2,
- "qtdMinpoints": 400,
- "qtdClientlimit": 234,
- "dteBegin": "2022-03-10",
- "dteEnd": "2022-04-10",
- "nmeLoyaltytimetype": "WEEK",
- "qtdLoyaltytimetype": 20
}
]
}{- "id": 67
}Lists many active benefit records by mall.
| programId required | integer Example: programId=6 Program ID. |
| mallId required | integer Example: mallId=6 Associated mall ID. |
| clientId | string Example: clientId=20022 |
| modalityId | string Example: modalityId=2 |
| categoryId | string Example: categoryId=2 |
| stock | string Enum: "true" "false" Example: stock=true |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| search | string Example: search=Americanas S.A Search parameter: 'categorieName OU storeName OU benefitName' |
| rechargable | string Value: "rechargable" Example: rechargable=rechargable search by benefit rechargable |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 56,
- "name": "Prato Eliana Kertész",
- "description": "Belíssimo prato de porcelana decorado com imagens de diversas esculturas icônicas da artista",
- "amountStock": 25,
- "valRecharge": null,
- "store": {
- "id": 177,
- "name": "UP Craft"
}, - "voucherText": null,
- "voucherDescription": null,
- "usageRule": null,
- "category": {
- "id": 10,
- "name": "Utilidades para casa"
}, - "modalities": [
- {
- "id": 7,
- "name": "Ouro",
- "current": true,
- "qtdMinpoints": 1750,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 14,
- "name": "Diamante",
- "current": false,
- "qtdMinpoints": 1500,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}
]
}, - {
- "id": 80,
- "name": "Voucher desconto 5%/R$ 50,00 Lojas Americanas",
- "description": "Voucher para ser trocado no balcão das Lojas Americanas e obter desconto de 5% na compra, com valor máximo de R$ 50,00",
- "amountStock": 313,
- "valRecharge": null,
- "store": {
- "id": 200,
- "name": "Lojas Americanas"
}, - "voucherText": "<section>n <strong>BENEFÍCIO:</strong> {{redeemName}}<br/>n <strong>NOME DO CLIENTE:</strong> {{customer.fullName}}<br/>n <strong>CPF:</strong> {{customer.cpf}}<br/>n <strong>CÓDIGO DA TROCA:</strong> {{voucherId}}<br/>n <strong>DATA RESGATE:</strong> {{redeemDate}}<br/>n</section>n<section>n <strong>ATENDENTE:</strong> {{employee.name}}<br/>n <strong>INFORMAÇÕES GERAIS:</strong> {{redeemDescription}}<br/>n <strong>Autorizo que sejam descontados {{redeemPoints}} pontos do Programa Solar em<br/>n troca do benefício {{redeemName}} e estou de <br/>acordo com as regras de utilização do mesmo.n </strong><br/>n <strong>NOME DO CLIENTE:</strong> {{customer.fullName}}<br/>n <strong>CPF:</strong> {{customer.cpf}}<br/>n <strong>CÓDIGO DA TROCA:</strong> {{voucherId}}<br/>n <strong>DATA RESGATE:</strong> {{redeemDate}}<br/>n <strong>Saldo de Pontos {{balance}} em {{date}}</strong><br/>n <strong>ASSINATURA DO CLIENTE:</strong> __________________________________n </section>",
- "vouncherDescription": "VOUCHER LOJAS AMERICANAS - 5% de DESCONTO, valor máximo do desconto R$ 50,00",
- "usageRule": "Apresente no balcão nas Lojas Americanas no momento do pagamento",
- "category": {
- "id": 10,
- "name": "Cupons e vouchers"
}, - "modalities": [
- {
- "id": 3,
- "name": "Prata",
- "current": false,
- "qtdMinpoints": 500,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": "MONTH",
- "qtdLoyaltytimetype": 1
}, - {
- "id": 7,
- "name": "Ouro",
- "current": true,
- "qtdMinpoints": 450,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": "MONTH",
- "qtdLoyaltytimetype": 1
}, - {
- "id": 14,
- "name": "Diamante",
- "current": false,
- "qtdMinpoints": 400,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-15",
- "nmeLoyaltytimetype": "MONTH",
- "qtdLoyaltytimetype": 2
}
]
}, - {
- "id": 115,
- "name": "Cartão de Estacionamento",
- "description": "Recarga no cartão de estacionamento do Shopping",
- "amountStock": null,
- "store": null,
- "voucherText": null,
- "voucherDescription": null,
- "usageRule": null,
- "category": {
- "id": 10,
- "name": "Serviços do Shopping"
}, - "modalities": [
- {
- "id": 3,
- "name": "Prata",
- "current": false,
- "qtdMinpoints": 1000,
- "qtdClientlimit": null,
- "dteBegin": null,
- "dteEnd": null,
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 7,
- "name": "Ouro",
- "current": true,
- "qtdMinpoints": 1000,
- "qtdClientlimit": null,
- "dteBegin": null,
- "dteEnd": null,
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 14,
- "name": "Diamante",
- "current": false,
- "qtdMinpoints": 1000,
- "qtdClientlimit": null,
- "dteBegin": null,
- "dteEnd": null,
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}
]
}
], - "total": 2265,
- "pagination": {
- "page": 6,
- "limit": 100,
- "pageCount": 23,
- "total": 2265,
- "links": {
- "self": "?limit=100&page=6",
- "first": "?limit=100&page=1",
- "previous": "?limit=100&page=5",
- "next": "?limit=100&page=7"
}
}
}Lists one active benefit record by mall.
| id required | integer Example: 6 Benefit id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 56,
- "name": "prato eliana kertész",
- "description": "string",
- "amountStock": 3000,
- "valRecharge": 10.8,
- "store": {
- "id": 177,
- "name": "UP Craft",
- "voucherText": "voucher text",
- "voucherDescription": "VOUCHER LOJAS AMERICANAS - 5% de DESCONTO, valor máximo do desconto R$ 50,00"
}, - "category": {
- "id": 10,
- "name": "CAMA MESA E BANHO"
}, - "modalities": [
- {
- "id": 0,
- "name": "string",
- "current": true,
- "qtdMinpoints": 0,
- "qtdClientlimit": 0,
- "dteBegin": "2019-08-24",
- "dteEnd": "2019-08-24",
- "nmeLoyaltytimetype": "string",
- "qtdLoyaltytimetype": 0
}
]
}Lists Many benefit category records per mall.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "benefitCategoryName" Enum: "benefitCategoryName" "benefitCategoryId" Property to order response list. |
{- "data": [
- {
- "id": 3,
- "name": "CAMA MESA E BANHO"
}
], - "total": 100
}Lists many Available benefit records by mall.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| clientId required | string Example: clientId=20022 |
| programId | integer Example: programId=6 Program ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 56,
- "name": "Prato Eliana Kertész",
- "description": "Belíssimo prato de porcelana decorado com imagens de diversas esculturas icônicas da artista",
- "amountStock": 25,
- "amountRemain": 12,
- "rechargable": null,
- "store": {
- "id": 177,
- "name": "UP Craft"
}, - "voucherText": null,
- "voucherDescription": null,
- "usageRule": null,
- "category": {
- "id": 10,
- "name": "Utilidades para casa"
}, - "modalities": [
- {
- "id": 7,
- "name": "Ouro",
- "qtdMinpoints": 1750,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 14,
- "name": "Diamante",
- "qtdMinpoints": 1500,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}
]
}, - {
- "id": 80,
- "name": "Voucher desconto 5%/R$ 50,00 Lojas Americanas",
- "description": "Voucher para ser trocado no balcão das Lojas Americanas e obter desconto de 5% na compra, com valor máximo de R$ 50,00",
- "amountStock": 313,
- "amountRemain": 120,
- "rechargable": null,
- "store": {
- "id": 200,
- "name": "Lojas Americanas"
}, - "voucherText": "<section>n <strong>BENEFÍCIO:</strong> {{redeemName}}<br/>n <strong>NOME DO CLIENTE:</strong> {{customer.fullName}}<br/>n <strong>CPF:</strong> {{customer.cpf}}<br/>n <strong>CÓDIGO DA TROCA:</strong> {{voucherId}}<br/>n <strong>DATA RESGATE:</strong> {{redeemDate}}<br/>n</section>n<section>n <strong>ATENDENTE:</strong> {{employee.name}}<br/>n <strong>INFORMAÇÕES GERAIS:</strong> {{redeemDescription}}<br/>n <strong>Autorizo que sejam descontados {{redeemPoints}} pontos do Programa Solar em<br/>n troca do benefício {{redeemName}} e estou de <br/>acordo com as regras de utilização do mesmo.n </strong><br/>n <strong>NOME DO CLIENTE:</strong> {{customer.fullName}}<br/>n <strong>CPF:</strong> {{customer.cpf}}<br/>n <strong>CÓDIGO DA TROCA:</strong> {{voucherId}}<br/>n <strong>DATA RESGATE:</strong> {{redeemDate}}<br/>n <strong>Saldo de Pontos {{balance}} em {{date}}</strong><br/>n <strong>ASSINATURA DO CLIENTE:</strong> __________________________________n </section>",
- "voucherDescription": "VOUCHER LOJAS AMERICANAS - 5% de DESCONTO, valor máximo do desconto R$ 50,00",
- "usageRule": "Apresente no balcão nas Lojas Americanas no momento do pagamento",
- "category": {
- "id": 10,
- "name": "Cupons e vouchers"
}, - "modalities": [
- {
- "id": 3,
- "name": "Prata",
- "qtdMinpoints": 500,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": "MONTH",
- "qtdLoyaltytimetype": 1
}, - {
- "id": 7,
- "name": "Ouro",
- "qtdMinpoints": 450,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-01",
- "nmeLoyaltytimetype": "MONTH",
- "qtdLoyaltytimetype": 1
}, - {
- "id": 14,
- "name": "Diamante",
- "qtdMinpoints": 400,
- "qtdClientlimit": 1,
- "dteBegin": "2022-01-01",
- "dteEnd": "2022-02-15",
- "nmeLoyaltytimetype": "MONTH",
- "qtdLoyaltytimetype": 2
}
]
}, - {
- "id": 115,
- "name": "Cartão de Estacionamento",
- "description": "Recarga no cartão de estacionamento do Shopping",
- "amountStock": null,
- "amountRemain": null,
- "rechargable": {
- "items": [
- {
- "id": "25221",
- "code": "C3-S22111"
}, - {
- "id": "27500",
- "code": "C3-S55231"
}
], - "unit": "R$ 10,00"
}, - "store": null,
- "voucherText": null,
- "voucherDescription": null,
- "usageRule": null,
- "category": {
- "id": 10,
- "name": "Serviços do Shopping"
}, - "modalities": [
- {
- "id": 3,
- "name": "Prata",
- "qtdMinpoints": 1000,
- "qtdClientlimit": null,
- "dteBegin": null,
- "dteEnd": null,
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 7,
- "name": "Ouro",
- "qtdMinpoints": 1000,
- "qtdClientlimit": null,
- "dteBegin": null,
- "dteEnd": null,
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}, - {
- "id": 14,
- "name": "Diamante",
- "qtdMinpoints": 1000,
- "qtdClientlimit": null,
- "dteBegin": null,
- "dteEnd": null,
- "nmeLoyaltytimetype": null,
- "qtdLoyaltytimetype": null
}
]
}
], - "total": 2265,
- "pagination": {
- "page": 6,
- "limit": 100,
- "pageCount": 23,
- "total": 2265,
- "links": {
- "self": "?limit=100&page=6",
- "first": "?limit=100&page=1",
- "previous": "?limit=100&page=5",
- "next": "?limit=100&page=7"
}
}
}Redeem Benefit
| mallId required | string Example: mallId=6 |
| clientId required | integer |
| benefitId required | integer |
| quantity required | integer |
{- "clientId": 20022,
- "benefitId": 25,
- "quantity": 2
}{- "id": [
- [
- 677,
- 678
]
], - "redeemDate": "2019-08-24T14:15:22Z",
- "withdrawn": true,
- "benefit": {
- "id": 0,
- "name": "string",
- "voucher": true
}, - "quantity": 0
}List Redeemed Benefit Operations.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| clientId required | integer Client ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Enum: "redeemDate" "quantity" Property to order response list. |
{- "data": [
- {
- "id": 0,
- "redeemDate": "2019-08-24T14:15:22Z",
- "withdrawn": true,
- "benefit": {
- "id": 0,
- "name": "string",
- "voucher": true
}, - "quantity": 0
}
], - "total": 100
}Get Redeemed Benefit Operation.
| id required | integer Example: 6 Redeemed benefit operation id. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 0,
- "redeemDate": "2019-08-24T14:15:22Z",
- "withdrawn": true,
- "benefit": {
- "id": 0,
- "name": "string",
- "voucher": true
}, - "quantity": 0
}Lists benefit inventory statement records by mall.
| id required | string Example: 1 |
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| type | string Enum: "SAIDA" "ENTRADA" "RESGATE" |
| redeem | boolean Enum: true false |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "registerDate" "amount" Property to order response list. |
{- "data": [
- {
- "registerDate": "2022-02-11T18:39:19.732Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T19:59:17.208Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:20:18.680Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:25:55.798Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:25:58.769Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:26:17.583Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:28:15.967Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:31:11.807Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-16T21:32:00.656Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-17T14:09:23.642Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-17T18:58:12.577Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-22T10:48:43.364Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 1,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-22T10:47:19.105Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 2,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}, - {
- "registerDate": "2022-02-17T16:23:36.079Z",
- "type": "SAÍDA",
- "description": "Resgate de benefício.",
- "amount": 5,
- "employee": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}
}
], - "total": 14,
- "balance": 20
}Register a new benefit inventory registry.
| mallId required | string Example: mallId=5 Mall ID |
| benefitId required | integer Benefit identifier |
| amount required | integer Registry amount |
| description required | string Registry description |
| type required | string Enum: "ENTRADA" "SAIDA" Registry type |
{- "benefitId": 1,
- "amount": 130,
- "description": "Aumento de estoque.",
- "type": "ENTRADA"
}Get Benefit Redeem Voucher Content.
| mallId required | string Example: mallId=5 Mall ID |
| benefitId required | integer Benefit identifier |
| voucherId required | integer Voucher identifier |
required | object or object |
| redeemDate | string <date-time> start date and time alert filter. |
| shelflifeDate | string <date> start date and time alert filter. |
| balance | string |
{- "benefitId": 1,
- "voucherId": 1,
- "customer": { },
- "redeemDate": "2022-01-04T17:05:25.000Z",
- "shelflifeDate": "2022-01-04",
- "balance": "2000"
}{- "voucher": "<html></html>"
}Return of benefits
| mallId required | string Example: mallId=5 Mall ID |
| clientId required | integer Cliente ID. |
| benefitRescueId required | integer Benefit rescue ID. |
| amount required | integer Quantity to be returned. |
{- "clientId": 1787,
- "benefitRescueId": 56,
- "amount": 4
}Withdraw a redeemed benefit
| mallId required | string Example: mallId=6 |
| clientId required | integer |
| redeemId required | integer redeem ID. |
{- "clientId": 20022,
- "redeemId": 25
}Register a new modality or update a register. Modalities are the levels of participation of a customer in a loyalty program
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Name of the new modality. |
| priorityNumber | integer ascending/descending order of modalities. |
| programId required | integer Loyalty program ID. |
| minimumPoints | number Minimum points to reach the level. |
| expirationDays | integer Days for Points Expiration. (required for "Point Expiration" mode only) |
| expirationMonths | integer Months for Points Expiration. (required for "Point Expiration" mode only) |
| expirationEndMonth required | boolean To expire at the end of the month. |
| pointsRescue | number Enabled, the customer drops out of mode when he loses points. |
| resettablePoints required | integer Enables zero points when being demoted. |
| daysAvalition | integer Days window for points evaluation. (Required only for “Score date” mode) |
| initialModality | boolean If the modality will be initial. |
| returnable | boolean If the modality will be returnable. |
| previusModalityId | integer Previous modality ID. |
| nextModalityId | integer Next modality ID. |
| minimunPointsToNextModality | integer Minimum score to move up the modality |
| loyaltyPoints required | boolean When it is possible to score on loyalty |
| walletPoints required | boolean When it is possible to score on wallet |
{- "name": "Ouro",
- "programId": 3,
- "minimumPoints": 20000,
- "expirationDays": 30,
- "expirationMonths": 2,
- "expirationEndMonth": true,
- "pointsRescue": 40000,
- "resettablePoints": false,
- "daysAvalition": 20,
- "initialModality": true,
- "returnable": true,
- "previusModalityId": null,
- "nextModalityId": 1,
- "minimunPointsToNextModality": 30000,
- "loyaltyPoints": true,
- "walletPoints": false
}{- "id": 67
}Lists many active Modalities records by mall.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| programId required | integer Example: programId=6 Program ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| search | string Example: search=Ouro Search parameter: 'modality name' |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 56,
- "name": "PRATA",
- "priorityNumber": 1,
- "minimumPoints": 2000,
- "expirationDays": 20,
- "expirationMonths": 4,
- "expirationEndMonth": false,
- "pointsRescue": 4000,
- "resettablePoints": true,
- "daysAvalition": 10,
- "initialModality": false,
- "returnable": true,
- "minimunPointsToNextModality": 3000,
- "loyaltyPoints": true,
- "walletPoints": false,
- "nextModality": {
- "id": 6,
- "name": "OURO"
}, - "previousModality": {
- "id": 1,
- "name": "BRONZE"
}
}
], - "total": 100
}Lists one active modality record by mall and modality ID.
| id required | integer Example: 6 Modality ID to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 56,
- "name": "PRATA",
- "priorityNumber": 1,
- "programId": 3,
- "minimumPoints": 2000,
- "expirationDays": 20,
- "expirationMonths": 4,
- "expirationEndMonth": false,
- "pointsRescue": 4000,
- "resettablePoints": true,
- "daysAvalition": 10,
- "initialModality": false,
- "returnable": true,
- "minimunPointsToNextModality": 3000,
- "loyaltyPoints": true,
- "walletPoints": false,
- "nextModality": {
- "id": 6,
- "name": "OURO"
}, - "previousModality": {
- "id": 1,
- "name": "BRONZE"
}
}Return health of program modalities.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| programId required | integer Example: programId=6 Program ID to be filtered. |
{- "health": false,
- "errors": [
- [
- "Necessário que exista ao menos uma modalidade de pontos mínimos(0.00) no programa."
]
]
}Register a new loyalty Program or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Name of the new program. |
| loyaltyTypeId required | integer Loyalty type ID. |
| startDate required | string <date> Loyalty program start date. |
| endDate | string <date> Loyalty program end date. |
| extraPoint required | boolean Extra point limit number. |
| maxExtraPoint | number maximum number of extra points. |
| maxAmountExtraPoint | number |
| cpfMandatory required | boolean Flag to say that CPF is mandatory to participate in the loyalty program. |
| invoiceNumberMandatory required | boolean Flag to say that the invoice number is required to participate in the loyalty program. |
| acceptanceTermMandatory | boolean Flag to say that the acceptance term is required to participate in the loyalty program. |
| qrCodeReader | boolean Flag to say that the acceptance QRCode reader in the loyalty program. |
{- "name": "Programa de fidelidade 2022 do shopping Spot",
- "loyaltyTypeId": 5,
- "startDate": "2022-01-24",
- "endDate": "2022-12-24",
- "extraPoint": true,
- "maxExtraPoint": 20000,
- "cpfMandatory": 5,
- "maxAmountExtraPoint": 67,
- "invoiceNumberMandatory": false,
- "acceptanceTermMandatory": true
}{- "id": 67
}Lists many active Loyalty programs records by mall.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| startDate | string <date> Search by start date. |
| endDate | string <date> search by end date. |
| sortBy | string Default: "id" Enum: "id" "name" "extraPoint" "invoiceNumberMandatory" "cpfMandatory" Property to order response list. |
{- "data": [
- {
- "id": 56,
- "name": "Programa de fidelidade 2022 do shopping Spot",
- "loyaltyType": {
- "id": 5,
- "name": "EXPIRAÇÃO DE PONTOS"
}, - "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "extraPoint": true,
- "maxExtraPoint": 5000,
- "maxAmountExtraPoint": 67,
- "cpfMandatory": true,
- "invoiceNumberMandatory": true,
- "acceptanceTermMandatory": true
}
], - "total": 100
}Lists one active loyalty program record by mall.
| id required | integer Example: 6 Loyalty program ID to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 56,
- "name": "Programa de fidelidade 2022 do shopping Spot",
- "loyaltyType": {
- "id": 5,
- "name": "EXPIRAÇÃO DE PONTOS"
}, - "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "extraPoint": true,
- "maxExtraPoint": 5000,
- "maxAmountExtraPoint": 67,
- "cpfMandatory": true,
- "invoiceNumberMandatory": true,
- "acceptanceTermMandatory": true,
- "qrCodeReader": true
}Lists Many progrma types records.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "programTypeName" Enum: "programTypeId" "programTypeName" Property to order response list. |
{- "data": [
- {
- "id": 3,
- "name": "EXPIRAÇÃO DE PONTOS"
}
], - "total": 100
}Get Client Loyalty Statement
| mallId required | string Example: mallId=6 |
| clientId required | string Example: clientId=20522 |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| startDateTime | string <date> |
| endDateTime | string <date> |
| isExpirationDate | string Enum: "true" "false" |
| type | string Enum: "COMPRA" "PONTOS-EXTRAS" "DEBITO" "RESGATE-BENEFICIO" |
{- "data": [
- {
- "operation": "debit",
- "type": "COMPRA",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "origin": "string",
- "employeeName": "string",
- "registerDate": "2019-08-24T14:15:22Z",
- "points": 0,
- "formattedPoints": "string",
- "balance": 0,
- "expirationDate": "2019-08-24T14:15:22Z",
- "formattedBalance": "string",
- "multiplier": {
- "id": 0,
- "name": "string",
- "factor": 0
}, - "transaction": {
- "id": 0,
- "storeName": "string",
- "cnpj": "string",
- "date": "2019-08-24T14:15:22Z",
- "invoiceNumber": "string",
- "noteSerialNumber": "5678",
- "value": 0,
- "formattedValue": "string"
}
}
], - "pagination": {
- "page": 6,
- "limit": 100,
- "pageCount": 23,
- "total": 2265,
- "links": {
- "self": "?limit=100&page=6",
- "first": "?limit=100&page=1",
- "previous": "?limit=100&page=5",
- "next": "?limit=100&page=7"
}
}, - "total": 2265
}Get Client Loyalty Status
| mallId required | string Example: mallId=6 |
| clientId required | string Example: clientId=20522 |
{- "balance": {
- "current": 1500,
- "consumed": 400,
- "lifetime": 11900,
- "expired": 100
}, - "points": {
- "toNext": 1500,
- "percentageToNext": 0.5,
- "lifetime": 11300
}, - "modalities": [
- {
- "id": 5,
- "name": "Blue",
- "current": true,
- "minimumPoints": 3000
}
], - "isRegistered": true
}Register a new rechargeable Benefit or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| clientId required | integer Client ID. |
| rechargeableBenefitTypeId required | integer Rechargeable benefit type ID. |
| codRechargeableBenefit required | integer Customer rechargeable benefit identification code. |
| dscRechargeableBenefit required | integer Description of the customer's rechargeable benefit. |
| dteExpiration | string <date> Expiry date of the customer's rechargeable benefit. |
{- "clientId": 1777,
- "rechargeableBenefitTypeId": 1,
- "codRechargeableBenefit": "2199567985",
- "dscRechargeableBenefit": "string",
- "dteExpiration": "2022-05-08"
}{- "id": 67
}Lists many active rechargeable benefit records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "dteExpiration" Property to order response list. |
{- "data": [
- {
- "clientId": 1777,
- "rechargeableBenefitTypeId": 1,
- "type": {
- "id": 2,
- "name": "RECARGA DE CELULAR"
}, - "codRechargeableBenefit": "2199346578",
- "dscRechargeableBenefit": "string",
- "dteExpiration": "2022-08-24",
- "expired:": true,
- "active": false
}, - {
- "clientId": 1897,
- "rechargeableBenefitTypeId": 1,
- "type": {
- "id": 2,
- "name": "RECARGA DE CELULAR"
}, - "codRechargeableBenefit": "2177324578",
- "dscRechargeableBenefit": "string",
- "dteExpiration": "2022-08-24",
- "expired": false,
- "active": true
}, - {
- "clientId": 2041,
- "rechargeableBenefitTypeId": 2,
- "type": {
- "id": 2,
- "name": "CARTÃO DE ESTACIONAMENTO"
}, - "codRechargeableBenefit": "CESRS-00104",
- "dscRechargeableBenefit": "string",
- "dteExpiration": null,
- "expired": null,
- "active": true
}
], - "total": 2265,
- "pagination": {
- "page": 6,
- "limit": 100,
- "pageCount": 23,
- "total": 2265,
- "links": {
- "self": "?limit=100&page=6",
- "first": "?limit=100&page=1",
- "previous": "?limit=100&page=5",
- "next": "?limit=100&page=7"
}
}
}Lists one active rechargeable benefit record by mall.
| id required | integer Example: 6 Rechargeable Benefit id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "clientId": 1777,
- "rechargeableBenefitTypeId": 2,
- "type": {
- "id": 2,
- "name": "CARTÃO DE ESTACIONAMENTO"
}, - "codRechargeableBenefit": "CESRS-00104",
- "dscRechargeableBenefit": "string",
- "dteExpiration": "2019-08-24",
- "active": true
}Lists Many rechargeable Benefit type records.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "asc" Enum: "asc" "desc" |
| sortBy | string Default: "name" Enum: "name" "id" Property to order response list. |
{- "data": [
- {
- "id": 3,
- "name": "CATÃO DE ESTACIOANAMENTO"
}
], - "total": 100
}Lists many active rechargeable benefit records by client id.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| clientId required | integer Example: clientId=1777 Client ID. |
| rechargeableBenefitTypeId | integer Example: rechargeableBenefitTypeId=90 Rechargeable benefit type ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "dteExpiration" Property to order response list. |
{- "data": [
- {
- "clientId": 1777,
- "rechargeableBenefitTypeId": 1,
- "type": {
- "id": 2,
- "name": "RECARGA DE CELULAR"
}, - "codRechargeableBenefit": "2199346578",
- "dscRechargeableBenefit": "string",
- "dteExpiration": "2022-08-24",
- "expired:": true,
- "active": true
}, - {
- "clientId": 1777,
- "rechargeableBenefitTypeId": 1,
- "type": {
- "id": 2,
- "name": "RECARGA DE CELULAR"
}, - "codRechargeableBenefit": "2177324578",
- "dscRechargeableBenefit": "string",
- "dteExpiration": "2022-08-24",
- "expired": false,
- "active": false
}, - {
- "clientId": 1777,
- "rechargeableBenefitTypeId": 2,
- "type": {
- "id": 2,
- "name": "CARTÃO DE ESTACIONAMENTO"
}, - "codRechargeableBenefit": "CESRS-00104",
- "dscRechargeableBenefit": "string",
- "dteExpiration": null,
- "expired": null,
- "active": true
}
], - "total": 2265,
- "pagination": {
- "page": 6,
- "limit": 100,
- "pageCount": 23,
- "total": 2265,
- "links": {
- "self": "?limit=100&page=6",
- "first": "?limit=100&page=1",
- "previous": "?limit=100&page=5",
- "next": "?limit=100&page=7"
}
}
}Grant credit in the wallet or loyalty points program.
| mallId required | string Example: mallId=5 Mall ID |
| clientId required | integer client ID |
| amountPoints required | number amount of points to be credited |
| description required | string field to describe the reason |
| type | string or null Enum: "balancePoints" "loyaltyPoints" Responsible for saying the type of credit (wallet or loyalty). If not sent, none of the types will be credited to the wallet and loyalty points program. |
{- "clientId": 409,
- "amountPoints": 300,
- "description": "string",
- "type": "balancePoints"
}Debit points from a customer's wallet.
| mallId required | string Example: mallId=5 Mall ID |
| clientId required | integer client ID |
| description required | string field to describe the reason |
| amountPoints required | number amount of points to be credited. |
{- "clientId": 409,
- "description": "string",
- "amountPoints": 300
}Register or Update a client.
| id required | integer A client indentifier. |
| cpf | string A brazilian's unique citizen identifier. |
| fullName | string A full name. |
| birthday | string <date> A date following the format (YYYY-MM-DD). |
| sex | string Enum: "F" "M" "O" A character representing the sex. |
| mobileNumber | string A mobile number. |
| homePhone | string A home phone |
string An email address. | |
| mallId | integer The ID of the associated mall. |
| originRegistryId | integer Origin's ID of the client's registration. |
object | |
object | |
| metadata | string The customer's answer to de custom property. |
object |
{- "id": 1,
- "cpf": "54084425788",
- "fullName": "João Alfredo",
- "birthday": "2015-07-28",
- "sex": "M",
- "mobileNumber": "21987659999",
- "homePhone": "2140028922",
- "mallId": 6,
- "originRegistryId": 2,
- "address": {
- "zipCode": "51562673",
- "street": "Av. Street",
- "number": "1983",
- "complement": "Ap 101",
- "neighborhood": "Place",
- "city": "New City",
- "state": "New State"
}, - "customFields": {
- "rg": "2109828374",
- "nickname": "JA",
- "customProperty": "Client Answer"
}, - "metadata": "String",
- "signatures": {
- "dataUsage": {
- "originId": 1,
- "valid": true
}, - "communicationEmail": {
- "originId": 1,
- "valid": true
}, - "communicationPush": {
- "originId": 1,
- "valid": false
}, - "communicationSMS": {
- "originId": 1,
- "valid": false
}, - "communicationWhatsapp": {
- "originId": 1,
- "valid": false
}
}
}{- "id": 1,
- "cpf": "54084425788",
- "fullName": "João Alfredo",
- "birthday": "2015-07-28",
- "sex": "F",
- "mobileNumber": "21987659999",
- "homePhone": "2140028922",
- "mallId": 6,
- "originRegistryId": 2,
- "address": {
- "zipCode": "51562673",
- "street": "Av. Street",
- "number": "1983",
- "complement": "Ap 101",
- "neighborhood": "Place",
- "city": "New City",
- "state": "New State"
}, - "customFields": {
- "rg": "2109828374",
- "nickname": "JA",
- "customProperty": "Client Answer"
}, - "metadata": "String",
- "signatures": {
- "dataUsage": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationEmail": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationPush": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationSMS": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationWhatsapp": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}
}
}Search customer using search parameter
| mallId required | string Example: mallId=6 Mall ID. |
| cpf | string Example: cpf=19217190012 CPF parameter. |
| name | string Example: name=Joao Customer name parameter. |
| mobileNumber | string Example: mobileNumber=21987673647 Customer mobile number parameter. |
| modality | string Enum: "true" "false" "force" Example: modality=true When to return the object of the loyalty modality. The 'force' mode has the same behavior as 'true' but won't return the client data if it is not associated with a loyalty modality. The 'force' mode only works if the cpf parameter is sent. |
| page | string Example: page=1 Page number when searching with pagination. |
| limitByPage | string Example: limitByPage=50 Length of list per page with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Default: "id" Enum: "name" "cpf" "email" "mobileNumber" "id" Customer Property to order response list. (ENUM: 'name', 'cpf', 'email', 'mobileNumber'). |
| order | string Default: "desc" Enum: "asc" "desc" |
| _fields | string Example: _fields=Instagram,Twitter Custom fields to search a keyword. To search in more than one field, the names of field must be separated by commas(,). |
| _keyword | string Example: _keyword=@search Keyword to search in the custom fields. |
| _display | string Example: _display=cpf,fullName,address.zipCode,customFields.rg List of properties to be displayed on response. To search in more than one field, the names of field must be separated by commas(,). PS: To select subproperties must be sended 'property.subproperty'. Ex: address.zipCode |
{- "data": [
- {
- "id": 1,
- "cpf": "54084425788",
- "fullName": "João Alfredo",
- "birthday": "2015-07-28",
- "sex": "M",
- "mobileNumber": "21987659999",
- "homePhone": "2140028922",
- "mallId": 6,
- "originRegistryId": 2,
- "address": {
- "zipCode": "51562673",
- "street": "Av. Street",
- "number": "1983",
- "complement": "Ap 101",
- "neighborhood": "Place",
- "city": "New City",
- "state": "New State"
}, - "customFields": {
- "rg": "2109828374",
- "nickname": "JA",
- "pcd": "true"
}, - "metadata": "String",
- "signatures": {
- "dataUsage": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationEmail": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationPush": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationSMS": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationWhatsapp": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}
}
}
], - "total": 1
}Returns an object representing a client.
| id required | string Example: 12324 Client's ID. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| modality | string Enum: "true" "false" "force" Example: modality=true When to return the object of the loyalty modality. The 'force' mode has the same behavior as 'true' but won't return the client data if it is not associated with a loyalty modality. |
{- "id": 1,
- "cpf": "54084425788",
- "fullName": "João Alfredo",
- "birthday": "2015-07-28",
- "address": {
- "zipCode": "51562673",
- "street": "Av. Street",
- "number": "1983",
- "complement": "Ap 101",
- "neighborhood": "Place",
- "city": "New City",
- "state": "New State"
}, - "sex": "F",
- "mobileNumber": "21987659999",
- "homePhone": "2140028922",
- "customFields": {
- "rg": "2109828374",
- "nickname": "JA",
- "customProperty": "Client Answer"
}, - "metadata": "String",
- "signatures": {
- "dataUsage": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationEmail": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationPush": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationSMS": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}, - "communicationWhatsapp": {
- "originId": 1,
- "valid": true,
- "date": "2015-07-28"
}
}
}Search customer using search parameter
| mallId required | string Example: mallId=6 Mall ID |
| search required | string Example: search=João Silva Search parameter (name or CPF) |
[- {
- "id": 35242,
- "cpf": null,
- "fullName": "J.SIQUARA",
- "birthday": null,
- "sex": "M",
- "mobileNumber": "21983333968",
- "homePhone": "2140028922",
- "email": "[email protected]"
}, - {
- "id": 40249,
- "cpf": null,
- "fullName": "J.C.SCHUAWB",
- "birthday": null,
- "sex": "M",
- "mobileNumber": "21983333968",
- "homePhone": "2140028922",
- "email": "[email protected]"
}
]Register a new dependent.
| mallId required | string Example: mallId=5 Mall ID |
| responsibleId required | integer responsible customer id. |
required | Array of objects or objects[ items ] depentent customer data. |
{- "responsibleId": 3678,
- "dependents": [
- { }
]
}{- "message": "O responsável informado não foi encontrado."
}update dependency relationship.
| mallId required | string Example: mallId=5 Mall ID |
| responsibleId required | integer responsible customer id. |
required | Array of objects[ items ] depentent customer data. |
{- "responsibleId": 3678,
- "dependents": [
- {
- "id": 4580,
- "degreekinshipId": 1
}
]
}{- "message": "O responsável informado não foi encontrado."
}Lists many dependents records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| responsibleId required | integer Example: responsibleId=6 Responsible customer ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Value: "id" Property to order response list. |
{- "data": [
- {
- "id": 4580,
- "name": "Enzo",
- "birthDate": "2010-04-01",
- "genre": "M",
- "degreekinship": {
- "id": 1,
- "name": "mãe"
}
}
], - "total": 100
}Get dependent
| mallId required | integer Example: mallId=6 Associated mall ID. |
| resposibleId required | integer Example: resposibleId=8 Responsible customer ID. |
{- "id": 4580,
- "name": "Enzo",
- "birthDate": "2010-04-01",
- "genre": "M",
- "degreekinship": {
- "id": 1,
- "name": "mãe"
}
}Lists many Degreekinship types records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 4580,
- "name": "mãe"
}
], - "total": 100
}Register a client credit card.
| mallId required | string Example: mallId=6 Mall ID |
| cardNumber | string The card number |
| flagName | string The card flag name |
| clientId | integer The client identifier |
{- "cardNumber": "5555.XXXX.XXXX.4444",
- "flagName": "MASTERCARD",
- "clientId": 20450
}List client credit cards.
| mallId required | string Example: mallId=6 Mall ID. |
| page | string Example: page=1 Page number when searching with pagination. |
| limit | string Example: limit=300 Length of list without pagination. |
| sortBy | string Default: "id" Enum: "cardNumber" "flagName" Customer Property to order response list. (ENUM: 'name', 'cpf', 'email', 'mobileNumber'). |
| order | string Default: "desc" Enum: "asc" "desc" |
{- "data": [
- {
- "id": 1,
- "cardNumber": "5555.XXXX.XXXX.4444",
- "cardFlagName": "MASTERCARD"
}
], - "total": 1
}Upsert Journey Entity.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| mallAdministratorId | integer Example: mallAdministratorId=6 Associated mall administrator ID. |
| name required | string |
| active required | boolean |
| startDateTime | string |
| personaId | number |
| clusterId | number |
object or object or object |
{- "name": "First Journey",
- "active": true,
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "personaId": 3,
- "clusterId": 1,
- "node": {
- "type": "action",
- "hash": "c1aa0cbb-aba0-4f7a-a95e-390f14ccdce5",
- "params": {
- "smsId": 2,
- "emailId": 82,
- "expirationDate": "2021-12-26T17:38:23.056Z"
}, - "node": { }
}
}{- "message": "Jornada está sendo criada."
}Get All Journeys.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| mallAdministratorId | integer Example: mallAdministratorId=6 Associated mall administrator ID. |
{- "data": [
- {
- "id": 1,
- "active": true,
- "createdDate": "2022-05-23T15:17:40.338Z",
- "mallId": 5,
- "administratorId": null,
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "personaId": 3,
- "published": true,
- "createdBy": {
- "id": 1000,
- "name": "ADMINISTRADOR"
}, - "cluster": {
- "id": 1000,
- "name": "CLUSTER"
}
}
], - "total": 1
}Get Full Journey.
| id required | integer Example: 15 Journey ID. |
| mallId required | integer Example: mallId=6 Associated mall ID. |
{- "name": "First Journey",
- "active": true,
- "startDateTime": "2021-12-26T17:38:23.056Z",
- "personaId": 3,
- "published": true,
- "clusterId": 1,
- "node": {
- "type": "action",
- "hash": "c1aa0cbb-aba0-4f7a-a95e-390f14ccdce5",
- "params": {
- "smsId": 2,
- "emailId": 82,
- "expirationDate": "2021-12-26T17:38:23.056Z"
}, - "node": { }
}
}[- {
- "name": "email",
- "label": "E-MAIL"
}
][- {
- "name": "week",
- "label": "SEMANA"
}
][- {
- "name": "DT_ANIVERSÁRIO",
- "label": "Data de Aniversário"
}
]Upsert Journey Cluster.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| id required | number |
| name required | string |
| expirationDate required | string <date-tme> start date and time alert filter. |
{- "id": 1,
- "name": "First Journey",
- "expirationDate": "2022-01-04T17:05:25.000Z"
}{- "message": "Jornada está sendo criada."
}Get All Journey CLusters.
| mallId required | string Example: mallId=6 The ID of the associated mall. |
| name | string Example: name=clusterName Cluster name. |
| startDateTime | string Example: startDateTime=2022-01-04T17:05:25.000Z Start date to be searched. |
| endDateTime | string Example: endDateTime=2022-01-04T17:05:25.000Z End date to be searched. |
| limit | string Example: limit=300 Length of list without pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Enum: "id" "name" "expirationDate" |
{- "data": [
- {
- "id": 1,
- "name": "clusterName",
- "expirationDate": "2022-05-23T15:17:40.338Z",
- "mallId": 5
}
], - "total": 1
}Get All Journey CLusters.
| id required | string Example: 2 Cluster ID. |
| mallId required | string Example: mallId=6 The ID of the associated mall. |
{- "id": 1,
- "name": "clusterName",
- "expirationDate": "2022-05-23T15:17:40.338Z",
- "mallId": 5
}Get customized form of shopping by Entity.
| entityId required | string Example: entityId=1 Entity ID |
| mallId required | string Example: mallId=6 Mall ID |
| limit | string Example: limit=20 Limit by page |
| page | string Example: page=6 Page |
| order | string Enum: "asc" "desc" Example: order=asc Order 'asc' or 'desc' |
{- "data": [
- {
- "id": 82,
- "label": "Facebook",
- "name": "facebook",
- "tooltip": null,
- "required": false,
- "position": 1,
- "offSet": 1,
- "numOrder": 1,
- "fieldType": {
- "singleType": "TEXTO"
}, - "grouperId": null
}, - {
- "id": 1,
- "label": "Select Label",
- "name": "selectTest",
- "tooltip": null,
- "required": true,
- "position": 2,
- "offSet": 0,
- "fieldType": {
- "groupType": {
- "type": "SELECT",
- "options": [
- {
- "id": 40,
- "label": "Option 1",
- "name": "Option 1",
- "numOrder": 1
}, - {
- "id": 43,
- "label": "Option 2",
- "name": "Option 2",
- "numOrder": 2
}
]
}
}, - "grouperId": 4
}
], - "total": 2
}Creates a Field to Custom Form
| mallId required | string Example: mallId=6 Mall ID |
| id | number Custom field identifier |
| visibleToPlatform required | boolean If field is visible to mOS Platform |
| entityId required | number Entity ID |
| name required | string Name of field |
| label required | string Label to be present on the form |
| tooltip | string Field's tooltip |
| numOrder | number Order number field |
| required | boolean If field is required the fill |
required | object or object |
{- "visibleToPlatform": true,
- "entityId": 1,
- "name": "Field Name",
- "label": "Field Label",
- "tooltip": "Tooltip",
- "required": true,
- "fieldType": {
- "groupType": {
- "type": "SELECT",
- "options": [
- {
- "name": "Option 1",
- "label": "option1",
- "numOrder": 1
}
]
}
}, - "grouperId": 4
}{- "id": 1
}Delete a Field to Custom Form by ID
| fieldId required | string Example: 820 Field ID |
| entityId | string Example: entityId=1 Entity ID |
| mallId | string Example: mallId=5 Mall ID |
| fieldName | string Example: fieldName=whatsapp Field Name |
Get All Field Types.
| entityId | string Example: entityId=1 Entity ID |
| mallId | string Example: mallId=6 Mall ID |
| limit | string Example: limit=20 Limit by page |
| page | string Example: page=6 Page |
| order | string Enum: "asc" "desc" Example: order=asc Order 'asc' or 'desc' |
{- "data": [
- {
- "id": 1,
- "name": "socialMidia",
- "label": "Redes Sociais",
- "numOrder": 1
}
], - "total": 100
}Create Field Types.
| mallId | string Example: mallId=6 Mall ID |
| name | string Grouper's name |
| label | string Grouper's label |
| numOrder | integer Grouper's order |
| entityId | string entity's Id. Ex: 1 = Client Entity, 2 = Store Entity |
{- "name": "socialMedia",
- "label": "Redes Sociais",
- "numOrder": 1,
- "entityId": 1
}[- {
- "id": 1,
- "name": "socialMedia"
}
]Create Field Types.
| mallId | string Example: mallId=6 Mall ID |
| entityId | string Example: entityId=1 Entity ID |
Array of objects[ items ] |
{- "fieldsPositions": [
- {
- "fieldId": 2,
- "fieldName": "Whatsapp",
- "position": 2,
- "offset": 1
}
]
}Register Client Answer With Hash
| hash required | string Example: 551e34a8-dc3f-4a5e-81db-fb5ba243ab39 Client Hash |
object |
{- "customFields": {
- "classification": "FAÇA_PARTE"
}
}Sign to receive a access token
| email required | string Customer e-mail |
| password required | string Customer password |
| token | string Token two factor authentication |
{- "password": "password",
- "token": "279876"
}{- "name": "Jorge",
- "area": "Spot",
- "isMosMallRegistered": true,
- "isMosStoreRegistered": false,
- "tfa": true
}Request change password E-mail
| email required | string Customer e-mail |
{- "email": "[email protected]"
}Verify HASH
| hash required | string Example: IT8EPO2J4LDHS84J |
| email required | string Customer e-mail |
| password required | string Customer password |
| confirmPassword required | string Customer password |
{- "password": "password",
- "confirmPassword": "password"
}{- "malls": [
- {
- "id": 0,
- "name": "string",
- "logo": "string",
- "club": "string",
- "administration": {
- "name": "string",
- "logo": "string"
}, - "alternativeLogo": "string",
- "roleId": 0,
- "role": {
- "id": 0,
- "name": "string",
- "permissions": [
- {
- "id": 0,
- "code": "string",
- "name": "string"
}
]
}
}
]
}Update de User Permissions
| employeeMallId required | number Employee ID that must be updated |
Array of objects[ items ] |
{- "employeeMallId": 1,
- "mallRoles": [
- {
- "mallId": 1,
- "roleId": 1
}
]
}{- "employee": {
- "id": 4,
- "cpf": "00000000000",
- "name": 4,
- "expired_permissions": true
}
}Update de Role Permissions
| id required | number Role ID |
| mallId required | number Mall's ID where that role must be updated |
required | Array of objects[ items ] |
{- "id": 1,
- "mallId": 1,
- "mallRolePermissions": [
- {
- "id": 1
}
]
}[- {
- "id": 1049,
- "name": "Centauro",
- "mall": {
- "id": 2,
- "name": "Riosul"
}, - "permissions": [
- [
- "READ_SALE",
- "WRITE_SALE"
]
]
}
]Creates a new user.
| mallId required | string Example: mallId=6 Mall ID |
| cpf | string |
| name required | string |
| area | string |
| email required | string |
| phone | string |
| password required | string |
| roleId required | integer |
{- "cpf": "54084425788",
- "name": "João Silva",
- "area": "Marketing",
- "phone": "21987654321",
- "password": "s3nh4#@!",
- "roleId": 22
}{- "id": 552,
- "cpf": "54084425788",
- "name": "João Silva",
- "area": "Marketing",
- "phone": "21987654321",
- "active": true
}Updates a user.
| id required | string Example: 552 User ID |
| mallId required | string Example: mallId=6 Mall ID |
| cpf | string |
| name | string |
| area | string |
string | |
| phone | string |
| password | string |
| roleId | integer |
| active | boolean |
{- "cpf": "54084425788",
- "name": "João Silva",
- "area": "Marketing",
- "phone": "21987654321",
- "password": "s3nh4#@!",
- "roleId": 22,
- "active": false
}Read user
| id required | string Example: 552 User ID |
| mallId required | string Example: mallId=6 mall id |
{- "id": 552,
- "cpf": "54084425788",
- "name": "João Silva",
- "area": "Marketing",
- "phone": "21987654321",
- "active": true
}Updates a user own data.
| mallId required | string Example: mallId=6 Mall ID |
string | |
| phone | string |
| password | string |
{- "phone": "21987654321",
- "password": "s3nh4#@!"
}Register a new role or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Role Name |
| permissionIds | Array of integers[ items ] permissions IDs. |
{- "id": 345,
- "name": "supervisor",
- "permissionIds": [
- 0
]
}{- "id": 34
}Lists many role records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" Property to order response list. |
{- "data": [
- {
- "id": 345,
- "name": "ATENDIMENTO VIA PARQUE",
- "permissions": [
- {
- "id": 456,
- "name": "Criar loja",
- "code": "WRITE-STORE"
}
]
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Role ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "status": 400,
- "message": "O perfil informado não foi encontrado."
}Lists one active role record by mall
| id required | integer Example: 6 Role id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 34,
- "name": "Administrador",
- "permissions": [
- {
- "id": 456,
- "name": "Criar loja",
- "code": "WRITE-STORE"
}
]
}Lists many permission records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" "code" Property to order response list. |
{- "data": [
- {
- "id": 345,
- "name": "criar loja",
- "code": "WRITE-STORE"
}
], - "total": 100
}Register a two factor authentication for employee
| mallId required | string Example: mallId=5 The ID of the associated mall. |
| employeeId required | number Employee ID |
{- "employeeId": 1000
}{- "verified": false,
- "qrcode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMQAAADECAYAAADApo5rAAAAAklEQVR4AewaftIAAAjkSURBVO3BQY4kyZEAQdVA/f/Lug0eHHZyIJBZPRyuidgfrLX+42GtdTystY6HtdbxsNY6HtZax8Na63hYax0Pa63jYa11PKy1joe11vGw1joe1lrHw1rreFhrHT98SOVvqviEyjdVvKEyVUwqv6niRmWq+ITK31TxiYe11vGw1joe1lrHD19W8U0qb6j8TSpTxaQyVUwqU8WkMlXcqHyiYlKZKj5R8U0q3/Sw1joe1lrHw1rr+OGXqbxR8YbKVHGjMlW8oTJVTCpTxU3FTcWk8kbFpPJGxW9SeaPiNz2stY6HtdbxsNY6fvgfozJVfELlEyo3FW9U3Ki8UTGpTCo3Ff9LHtZax8Na63hYax0/rFcqJpWbikllUvmmikllqnijYlKZVKaKf7OHtdbxsNY6HtZaxw+/rOKfpDJV3KhMFZPKTcWkMlXcqNxUvFExqUwVb1R8U8V/k4e11vGw1joe1lrHD1+m8k+qmFRuVKaKSWWqmFQ+oTJVTCo3KlPFpDJVTCpTxaQyVUwqU8WNyn+zh7XW8bDWOh7WWscPH6r4N1F5o+ITFW+oTBWTylRxUzGpvFExqUwVNxX/Jg9rreNhrXU8rLUO+4MPqEwVk8o3VdyoTBU3Km9U3KhMFZ9QuamYVKaKSeUTFW+ofFPFb3pYax0Pa63jYa11/PBlKlPFpDJVfFPFJyo+UTGpfKJiUvlExaQyVUwqk8pU8UbFjco/6WGtdTystY6Htdbxw5dVfELlpmJSeaNiqrhRuamYVG4qblRuKm4qJpWbipuKN1SmikllqnhD5abiEw9rreNhrXU8rLUO+4NfpDJV3KhMFW+oTBWTylTxm1RuKt5QmSpuVN6ouFGZKiaVqWJSeaNiUrmp+MTDWut4WGsdD2ut44cvU5kqJpWbikllqvhExaRyU3GjMlXcVEwqU8Wk8obKJ1SmihuVG5WbikllUpkqftPDWut4WGsdD2ut44cPqUwVb1TcVEwqU8U3VdyovFExqUwVk8obKp+o+ETFGyqTyidUpopPPKy1joe11vGw1jp++FDFjcpUMal8U8WkclMxqbxR8ZsqblRuKiaVSeWfVDGpTBWTylTxTQ9rreNhrXU8rLWOHz6kclPxRsWNyqTyRsUbFW+o3FRMKlPFjcpNxRsVn1CZKv7NHtZax8Na63hYax0/fKhiUvmEyk3FpDJVTCqTyk3Fv0nFpDJVTBWTyhsVv6niDZWp4hMPa63jYa11PKy1DvuDX6RyU/GGylTxTSo3FTcqU8WkMlVMKjcVk8obFTcqU8UnVN6ouFG5qfjEw1rreFhrHQ9rreOHD6ncVNyoTBWTyidUfpPKVDGp3KhMFW9UfEJlqphUPlExqbyhMlX8poe11vGw1joe1lrHD19WMalMFVPFTcWNylRxU3GjMlVMKjcqU8Wk8gmVT1RMFZPKVPEJlaliUnlD5abiEw9rreNhrXU8rLWOHz5UMam8ofKbKt6omFRuKm5UpopvqphUpopJZaq4UXmjYqq4qZhU/kkPa63jYa11PKy1jh++rOJGZar4JpVPVLyhMlW8oTJVTCpTxaRyo/KJiknlRuWmYlL5b/Kw1joe1lrHw1rr+OHLVG4qJpWpYlJ5o+JG5Y2KSeVG5Y2KSeWNiknlpuITFZPKTcUbFZPKVPGbHtZax8Na63hYax32B79I5aZiUpkqJpWpYlK5qfgmlaniRmWqmFQ+UTGp3FS8oTJVTCqfqJhU3qj4xMNa63hYax0Pa63D/uAXqdxUTCp/U8WNylQxqdxUTCo3FZPKP6niRuWmYlKZKm5Uporf9LDWOh7WWsfDWuv44ZdVTCo3FW+oTBWTyicq/iaVqWJSmSpuVKaKSWWquFGZKt6ouFGZKm5UpopPPKy1joe11vGw1jp++DKVqeITKlPFVDGpTBWTyidUpopJZVKZKm5UJpWpYlKZKm5UPlFxo3JTMalMFTcqU8U3Pay1joe11vGw1jp++LKKSWWquFGZKiaVqWKq+ITKVPGbVG4q3lCZKm5UblSmijcqJpUblanib3pYax0Pa63jYa112B98QOVvqnhD5W+qmFSmikllqphUpooblaniRuWfVDGp3FT8poe11vGw1joe1lrHD7+sYlKZKiaVqeKbKiaVqWJSeUNlqphUpopJ5UblmyreUJkqPqHyCZWp4hMPa63jYa11PKy1jh++rGJSuVGZKiaVNyp+U8WNyqQyVUwqU8WkclPxTSo3FZPKVHGjMlVMKjcqU8U3Pay1joe11vGw1jp++GUVk8pUMalMFZPKVPGbKiaVm4pJ5aZiUpkqJpUblZuKm4pJZVKZKiaVqWKqmFRuKm5UpopPPKy1joe11vGw1jrsDz6gMlXcqNxUTCpTxY3KGxWTylRxo/JNFb9J5RMVk8o/qeKbHtZax8Na63hYax32B/9iKlPFpHJT8YbKVPGGylRxozJVTCpvVNyoTBWTyk3FGypTxaQyVUwqU8UnHtZax8Na63hYax32Bx9Q+ZsqblQ+UfFNKm9U3KjcVHxC5aZiUpkqJpWpYlK5qZhUpopvelhrHQ9rreNhrXX88GUV36Ryo3JTMalMFZPKVDGpTBWfqJhUpoqbijdU/qaKNypuKiaVqeITD2ut42GtdTystY4ffpnKGxW/qWJSuVGZKj5RMalMFZ9QmSpuKiaVG5UblU+ovFHxTQ9rreNhrXU8rLWOH/6fq7hR+SaVG5WbipuKSWWquKl4Q2Wq+CaVG5Wp4hMPa63jYa11PKy1jh/+x1RMKjcVk8o3VUwqU8Wk8gmVqWJSuam4UblR+aaKSWWq+KaHtdbxsNY6HtZaxw+/rOI3VbxRMancVNyoTBW/SeWmYlL5hMpUMalMFW+oTBWTyt/0sNY6HtZax8Na6/jhy1T+JpWp4kZlqvhExaTyhspUMancVEwqNxU3KlPFpDJV/E0Vv+lhrXU8rLWOh7XWYX+w1vqPh7XW8bDWOh7WWsfDWut4WGsdD2ut42GtdTystY6HtdbxsNY6HtZax8Na63hYax0Pa63jYa11/B94M9SVeTaJgwAAAABJRU5ErkJggg=="
}Read users
| mallId required | string Example: mallId=6 mall id |
| sortBy | string Example: sortBy=name Sort by |
| order | string Example: order=desc Order by |
| search | string Example: search=Joao Name or Email |
[- {
- "id": 552,
- "cpf": "54084425788",
- "name": "João Silva",
- "area": "Marketing",
- "phone": "21987654321",
- "active": true
}
]Read user
| id required | string Example: 552 User ID |
| mallId required | string Example: mallId=6 mall id |
{- "id": 552,
- "cpf": "54084425788",
- "name": "João Silva",
- "area": "Marketing",
- "phone": "21987654321",
- "active": true
}Register a new interaction
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
required | object |
{- "trackData": {
- "customer": {
- "id": 2,
- "name": "John Doe",
- "phone": "99999999",
- "originRegistryId": 3
}, - "track": {
- "trackType": "WIFI",
- "startDate": "2019-08-24T14:15:22Z",
- "name": "Interaction name",
- "description": "Interaction description...",
- "endDate": "2019-08-24T14:15:22Z"
}, - "metadata": "string",
- "customFields": { }
}
}{- "status": "ok"
}Return all the interactions.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string identifies the current page |
| order | string Default: "desc" Enum: "asc" "desc" |
| startDateTime | string <dateTime> |
| endDateTime | string <dateTime> |
| name | string filter by interaction name |
| sortBy | string Default: "id" Enum: "id" "startDate" "endDate" Property to order response list. ('id', 'startDate', 'endDate'). |
| clientId | string Example: Filter records by customer ID. Whenever you want to filter by customers, give preference to this filter instead of the 'search' filter. |
| trackType | string Enum: "ATTENDANCE" "ONLINE" "PARKING" "WIFI" "CUSTOMER SERVICE" "LOAN" "BABYCARE" "LOST AND FOUND" "TELEMARKETING" "RELATIONSHIP ACTION" "APPLICATION" "MARKETPLACE" "LOYALTY" "PROMOTION" "QUIZ" "EMAIL TRACKING" "TRANSACTION" "PESQUISA" Example: trackType=ATTENDANCE Filter records by interaction type |
| search | string Search by interaction description. |
| _display | string Example: _display=trackData.track.trackType property search |
{- "data": [
- {
- "trackData": {
- "customer": {
- "id": 1,
- "name": "Jhon Doe",
- "phone": "99999999",
- "originRegistryId": 1
}, - "track": {
- "trackType": "WIFI",
- "startDate": "2019-08-24T14:15:22Z",
- "name": "Interaction name",
- "endDate": "2019-08-24T14:15:22Z"
}, - "metadata": "string",
- "customFields": { }
}
}
], - "total": 3509
}Return all the interaction types.
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string identifies the current page |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "startDate" "endDate" Property to order response list. (ENUM: 'id', 'name'). |
{- "data": [
- {
- "id": 56,
- "name": "TRANSACTION",
- "presence": true,
- "labels": [
- {
- "name": "TRANSAÇÃO",
- "language": "Portuguese"
}
]
}
], - "total": 3509
}Register a new event or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| name required | string Name assigned to the Event |
| sessionController required | boolean If this field is checked, we will have control of the session day, start time and end time of the session, in addition to controlling how many people can participate in each session. |
| description | string Description of the event. |
| minimumAge | integer Field used to validate the participation of the responsible/dependent in the event. |
| maximumParticipationByDay | integer If configured, the customer will only be able to participate the number of times configured in this field within the same day. |
| maximumParticipation | integer If configured, the customer will only be able to participate the number of times configured in this field during the event period. |
| startDateTime required | string <date-time> Date that will be used to make the Event available for use, if the date is less than the informed date, the event will not be available. |
| endDateTime | string <date-time> Date that will be used to remove the Event from the “air”, that is, it will no longer be available to be answered. |
{- "id": 102,
- "name": "Mall innovation week",
- "sessionController": true,
- "description": "primeira Innovation Week 2022",
- "minimumAge": 16,
- "maximumParticipationByDay": 4,
- "maximumParticipation": 7,
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z"
}{- "id": 34
}Lists many active events records.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" "startDateTime" "endDateTime" Property to order response list. |
{- "data": [
- {
- "id": 102,
- "name": "Mall innovation week",
- "sessionController": true,
- "description": "primeira Innovation Week 2022",
- "minimumAge": 16,
- "maximumParticipationByDay": 4,
- "maximumParticipation": 7,
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z"
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Event ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "message": "O evento informado não foi encontrado."
}Lists one active event record by mall.
| id required | integer Example: 6 Event id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
{- "id": 102,
- "name": "Mall innovation week",
- "sessionController": true,
- "description": "primeira Innovation Week 2022",
- "minimumAge": 16,
- "maximumParticipationByDay": 4,
- "maximumParticipation": 7,
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z"
}Register a new session or update a register.
| mallId required | string Example: mallId=5 Mall ID |
| eventId required | string Example: eventId=5 session-related event id |
| name required | string Name assigned to the session |
| visible required | boolean Field that will be used to show or not a session to be selected. |
| quantity | integer Field that identifies the number of seats available for the registered session. |
| startDateTime required | string <date-time> Date and time that will be used to make the session date available to be used in an event, if the date and time is less than the current date, the session will not be available to be selected. |
| endDateTime | string <date-time> Field to indicate the end date and time of a session. |
{- "id": 102,
- "name": "Sessão de natal",
- "visible": true,
- "quantity": 30,
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z"
}{- "id": 98
}List session records of an active event.
| mallId required | integer Example: mallId=6 Associated mall ID. |
| eventId required | string Example: eventId=5 session-related event id |
| limit | string Example: limit=300 Length of list without pagination. |
| page | string Default: "1" Example: page=1 Page number when searching with pagination. |
| order | string Default: "desc" Enum: "asc" "desc" |
| sortBy | string Default: "id" Enum: "id" "name" "startDateTime" "endDateTime" Property to order response list. |
{- "data": [
- {
- "id": 102,
- "name": "Sessão de natal",
- "visible": true,
- "quantity": 30,
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z"
}
], - "total": 100
}Logically delete an active record.
| id required | integer Example: 6 Session ID to be deleted. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| eventId required | string Example: eventId=5 session-related event id |
{- "message": "A sessão informada não foi encontrada."
}Returns a session record of an active event
| id required | integer Example: 90 Session id to be filtered. |
| mallId required | integer Example: mallId=6 The ID of the associated mall. |
| eventId required | string Example: eventId=5 session-related event id |
{- "id": 102,
- "name": "Sessão de natal",
- "visible": true,
- "quantity": 30,
- "startDateTime": "2019-08-24T14:15:22Z",
- "endDateTime": "2019-08-24T14:15:22Z"
}{- "malls": [
- {
- "id": 0,
- "name": "string",
- "logo": "string",
- "club": "string",
- "administration": {
- "name": "string",
- "logo": "string"
}, - "alternativeLogo": "string",
- "roleId": 0,
- "role": {
- "id": 0,
- "name": "string",
- "permissions": [
- {
- "id": 0,
- "code": "string",
- "name": "string"
}
]
}
}
]
}Sign to receive a access token
| email required | string Customer e-mail |
| password required | string Customer password |
{- "password": "password"
}{- "id": 1,
- "registerDate": "2020-02-02 00:00:00",
- "name": "Emplyoee name",
- "cpf": "999.999.999-99",
- "area": "Spot",
- "phone": "21999999999",
- "malls": [
- {
- "id": 1,
- "name": "Mall name",
- "logo": "Mall logo",
- "club": true,
- "administration": {
- "name": "Name of mall administration",
- "logo": "Logo of mall administration"
}, - "alternativeLogo": "Mall alternative logo",
- "roleId": 1,
- "role": {
- "id": 1,
- "name": "Role name",
- "permissions": [
- {
- "id": 1,
- "code": "PERMISSION-NAME",
- "name": "Description of permission"
}
]
}
}
]
}Send MOS-Store's invite
| mallId required | string Example: mallId=6 Mall ID |
| email required | string Employee e-mail |
| profileId required | integer Profile which employee will have |
| storeId required | integer Store which employee will have access to |
| name required | string Employee's name |
{- "profileId": 3,
- "storeId": 1,
- "name": "Jack"
}Send MOS-Store's invite
| mallId required | string Example: mallId=6 Mall ID |
| hash required | string Confirmation Hash |
| email required | string Employee's e-mail |
| password required | string Employee's password |
{- "hash": "e4c93fcd53c1b2da0b3382f13c830528",
- "password": "***********"
}{- "message": "Usuário cadastrado com sucesso."
}Send MOS-Store's invite
| mallId required | string Example: mallId=6 Mall ID |
| hash required | string Confirmation Hash |
| name | string Employee's name |
| cpf | string Employee's CPF |
| area | string Employee's Area |
| phone | string Employee's Phone |
| email required | string Employee's e-mail |
| password required | string Employee's password |
{- "hash": "e4c93fcd53c1b2da0b3382f13c830528",
- "name": "Jake",
- "cpf": "111.111.111-11",
- "area": "TI",
- "phone": "+5521999999999",
- "password": "***********"
}{- "message": "Usuário cadastrado com sucesso."
}Get apis event logs
| mallId | string Example: mallId=6 Mall ID |
| apiName | string Enum: "AuthAPI" "CommunicationAPI" "DataAgreementAPI" Example: apiName=AuthAPI Mall ID |
| event | string Enum: "Request" "Error" Example: event=Request |
| method | string Enum: "POST" "GET" "PUT" "DELETE" "PATCH" Example: method=POST |
| employeeId | string Example: employeeId=1000 |
| fromInternalRequest | string Example: fromInternalRequest=true |
| fromThirdParty | string Example: fromThirdParty=true |
| url | string Example: url=/mos/v1/communication-management/send-email |
| xPartnerkey | string Example: xPartnerkey=2lnhP^Y$j%bF&o4EgQl18*xk!vMvSWGEnBfiB!VlbZxmPjYRA* |
{- "data": [
- {
- "_id": "61d5c7dcb89176831ca8ee58",
- "apiName": "AuthAPI",
- "event": "Request",
- "method": "GET",
- "url": "/mos/v1/communication-management/mall-month-limit?mallId=5",
- "employeeId": 1000,
- "query": {
- "mallId": "5"
}, - "headers": {
- "fromInternalRequest": true,
- "fromThirdParty": false,
- "employeeId": "1000",
- "xAccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
- "xPartnerkey": "2lnhP^Y$j%bF&o4EgQl18*xk!vMvSWGEnBfiB!VlbZxmPjYRA*"
}, - "originRequest": "::1",
- "createdAt": "2021-12-15T18:53:01.958Z"
}
], - "total": 1
}