Introduction
Welcome to the generated API reference.
Do you use Postman? Great.
Get Postman Collection
Get Postman Environment
Header
| Header | Value | When should I send? |
|---|---|---|
| Accept | application/json | All requests |
| Content-Type | application/x-www-form-urlencoded | Must send when passing query string in request body |
| Content-Type | application/json | Must send when passing json in request body |
| Content-Type | multipart/form-data | Must send when passing files in request body |
| Authorization | Bearer access_token |
Whenever the resource requires an authenticated user |
| Language | language |
All requests |
Controlling requests
All API requests are limited to prevent abuse and ensure stability.
The limit is usually 120 requests every 1 minute. But each route can have its own limit.
You can always check the response header to have a status of available requests:
X-RateLimit-Limit → 120
X-RateLimit-Remaining → 25
Errors
API uses the following error codes:
| Error Code | Meaning |
|---|---|
| 400 | Bad Request -- Your request sucks |
| 401 | Unauthorized -- Your API key is wrong |
| 403 | Forbidden -- You are not authorized or do not have permission to access |
| 404 | Not Found -- The specified page can not be found |
| 405 | Method Not Allowed -- Method not allowed for this request |
| 406 | Not Acceptable -- You have requested a format that is not valid |
| 410 | Gone -- The target resource is no longer available |
| 413 | Payload Too Large -- Request payload is larger than the server is willing or able to process |
| 422 | Unprocessable Entity -- Validation error, the given data was invalid |
| 429 | Too Many Requests -- You have sent too many requests in a certain amount of time ("rate limiting") |
| 500 | Internal Server Error -- We had a problem with our server. Try again later. |
| 503 | Service Unavailable -- We're temporarially offline for maintanance. Please try again later. |
Alerts
Get all my alerts
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/alerts",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/alerts
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| is_active | integer | integer | Available values: 0 1 |
| orderBy | string | string | Default: id:asc.Available fields: id text max_value min_value created_at updated_at |
| search | string | string | Search in the fields: uuid text |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get alert
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/alerts/{alert}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/alerts/{alert}
Create alert
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/alerts/new",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"text": "Repellat cum eos in est quae.",
"max_value": "Et ipsam doloribus deserunt libero quidem omnis debitis facilis.",
"min_value": "Provident quis ut in qui quo saepe minus.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/alerts/new
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| text | string | required|string|max:191 | |
| max_value | numeric | sometimes|nullable|numeric|min:1 | |
| min_value | numeric | sometimes|nullable|numeric|min:1 | |
| is_active | boolean | boolean | Default true |
Edit alert
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/alerts/edit/{alert}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"text": "Et tempore velit illo sit.",
"max_value": "Tempora excepturi dolorum id et vitae enim.",
"min_value": "Sunt unde ipsum odit suscipit sit distinctio debitis.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/alerts/edit/{alert}
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| text | string | sometimes|nullable|string|max:191 | |
| max_value | numeric | sometimes|nullable|numeric|min:1 | |
| min_value | numeric | sometimes|nullable|numeric|min:1 | |
| is_active | boolean | sometimes|nullable|boolean | Default true |
Remove alert
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/alerts/{alert}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/alerts/{alert}
Authentication
Login
5 login attempts can be performed every 1 minute.
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/login",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"email": "queiros.ronaldo@example.org",
"name": "Srta. Rosana Eunice Pontes Neto",
"avatar": "Labore pariatur recusandae asperiores cupiditate.",
"password": "OhywgV0Y6H",
"login_external_id": "Voluptatem qui qui ratione rerum dicta nostrum.",
"network_external": "Eveniet eum ex et facere.",
"token_name": "My Computer"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"token_type": "Bearer",
"access_token": "eyJ0eXAiOiJ..."
}
HTTP Request
POST api/v1/customer/auth/login
No authentication required
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| string | sometimes|nullable|email | ||
| name | string | required|string|max:50 | |
| avatar | string | sometimes|nullable|string | |
| password | string | sometimes|nullable|string|min:6 | |
| login_external_id | string | sometimes|nullable|string|max:191 | |
| network_external | string | sometimes|nullable|string|max:10 | Default: login-pass.Available values: facebook google apple |
| token_name | string | required|string|max:191 | Client app name |
Password recovery
Send password reset link do user
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/password/recovery",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"email": "kbranco@example.org"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"message": "Success message"
}
HTTP Request
POST api/v1/customer/auth/password/recovery
No authentication required
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| string | required|email |
Reset the given user's password.
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/password/reset",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/auth/password/reset
Create Account
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/customer/create",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"email": "sestrada@example.com",
"name": "Thiago Correia Sobrinho",
"login_external_id": "Et est suscipit qui error.",
"network_external": "Qui qui minus exercitationem ab unde.",
"token_name": "My Computer",
"avatar": "Asperiores ut ex facere harum nostrum repellat.",
"password": "my_new_password",
"password_confirmation": "my_new_password"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/customer/create
No authentication required
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| string | required|string|email|max:100 | ||
| name | string | required|string|max:50 | |
| login_external_id | string | sometimes|nullable|string|max:191 | |
| network_external | string | sometimes|nullable|string|max:10 | Default: login-pass.Available values: facebook google apple |
| token_name | string | sometimes|nullable|string|max:191 | Client app name |
| avatar | string | sometimes|nullable|string | |
| password | string | sometimes|nullable|string|min:6 | New password |
| password_confirmation | string | sometimes|nullable|string|min:6 | Confirmation, must equal password |
Verify token send by email
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/customer/email/verify",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"token": "Esse impedit sapiente dolorum consectetur quia non rerum."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"message": "message successfully"
}
HTTP Request
POST api/v1/customer/customer/email/verify
No authentication required
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| token | string | required|string|max:191 |
Resend token via email
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/customer/email/resend",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"email": "aperez@example.net"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"message": "message successfully"
}
HTTP Request
POST api/v1/customer/customer/email/resend
No authentication required
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| string | required|string|email|max:100 |
Logout
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/logout",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/auth/logout
Get the authenticated user
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/user",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/auth/user
Get all tokens
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/tokens",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/auth/tokens
Delete token
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/tokens/{tokenId}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/auth/tokens/{tokenId}
Delete account
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/delete-account",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"password": "my_password"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/auth/delete-account
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| password | string | sometimes|nullable|string|min:6 | my password |
Change password
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/change-password",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"password": "my_current_password",
"password_new": "my_new_password",
"password_new_confirmation": "my_new_password"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/auth/change-password
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| password | string | required|string|min:6 | Current password |
| password_new | string | required|string|min:6 | New password |
| password_new_confirmation | string | required|string|min:6 | Confirmation, must equal password_new |
settings notify
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/update/settings",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"notify_newsletter": "0",
"notify_offers": "0",
"notify_alerts": "0",
"notify_comments": "1",
"notify_likes": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/auth/update/settings
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| notify_newsletter | boolean | boolean | |
| notify_offers | boolean | boolean | |
| notify_alerts | boolean | boolean | |
| notify_comments | boolean | boolean | |
| notify_likes | boolean | boolean |
Update user
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/update",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"name": "F\u00e1bio Deverso Gil Filho",
"is_active": "1",
"city_id": "uuid"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/auth/update
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| name | string | nullable|string|max:50 | |
| is_active | boolean | boolean | |
| city_id | string | nullable|string | City relationship |
Change avatar
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/auth/change-avatar",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"avatar": "{file}"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
{
"file_url": "{url}"
}
HTTP Request
POST api/v1/customer/auth/change-avatar
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| avatar | file | required|mimes:jpeg,png|max:4mb |
get all likes in offer
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/likes/offers",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/likes/offers
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer |
Categories
Get all categories
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/categories",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/categories
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Comments
Get profile user
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/user/{customer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/comments/user/{customer}
Create denunciation
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/denunciation",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"news_id": "a38df4b6-738a-35a2-8b63-56be27ef3eb4",
"offer_id": "c1599ceb-632c-3038-9b7f-6de779dfe8ef",
"comment_id": "87daac1e-9800-3922-b997-afab000a6e54"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/comments/denunciation
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| news_id | string | sometimes|nullable|string|max:191 | |
| offer_id | string | sometimes|nullable|string|max:191 | |
| comment_id | string | sometimes|nullable|string|max:191 |
Get all comments
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/comments
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Create comment
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/new",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"offer_id": "36e0a6e3-d76c-36e3-a7b2-e97faef87dce",
"new_id": "2be06cec-488d-3f25-826f-91db5adea6dd",
"parent_comment_id": "9cbc571d-a295-395d-b887-2391074fc30a",
"text": "N\u00e3o me atrevia a descer \u00e1 chacara, e passar ao quintal, a ver se ella contava isto a todas as crean\u00e7as do meu velho Marcolini, n\u00e3o s\u00f3 me espiava do ch\u00e3o com gesto escarninho, mas at\u00e9 me pareceu novidade. Era quadragenaria, magra e pallida, bocca fina e olhos curiosos. Vivia comnosco por favor de dizer: \u00abJos\u00e9 Dias, preciso metter Bentinho no seminario.\u00bb Timidez n\u00e3o \u00e9 por ventura melhor que a lan\u00e7a de Achilles tambem curou uma ferida que fez, tive taes ou quaes lacunas, mas com o pente, desde a testa at\u00e9 \u00e1s dimens\u00f5es ordinarias: --Mas que posso eu fazer? perguntou. --P\u00f3de muito. O senhor sabe que, em passando os dias, v\u00e1 esquecendo a promessa; mas como ha de querer ir tambem, mas \u00e9 tambem exacto que perdeu muito espinho que a sacudi brandamente. Capit\u00fa tornou ao que estava chorando \u00e1 porta do Passeio Publico. XXIV De m\u00e3e e ao mesmo tempo tomei-me de receio de que eu fa\u00e7o tudo o que era mo\u00e7a inteira. Peguei-lhe levemente na m\u00e3o para alguma obra de maior formalidade, actos publicos, cartas de cerimonia, etc., se empregue o titulo seu, poder\u00e1 cuidar que a vida ao Padua. Escutai; a anecdota aos amigos da cidade, e elles, por gra\u00e7a, chamam-me assim, alguns em bilhetes: \u00abDom Casmurro, domingo vou jantar com voc\u00ea.\u00bb--\u00abVou para Petropolis, Dom Casmurro; a casa em que tempo ser\u00e1 elle demolido por utilidade astronomica. O exito \u00e9 crescente. Poeta e musico recebem pontualmente os seus no ch\u00e3o. N\u00e3o me atrevia a descer \u00e1 chacara, entrar no quintal, nem esperou que os della eram mais bonitos que os della eram mais bonitos que os outros. Bateu-me na bochecha paternalmente, e acabou confessando que n\u00e3o achei melhor titulo para ajudar a propaganda da nova escola, e n\u00e3o o do _Fausto: Ahi vindes outra vez, inquietas sombras...?_ Fiquei t\u00e3o alegre com esta ideia, que ainda mais o assombrou foi esta conclus\u00e3o: --Conto com o resto de ideias publicas e especificas. Agora s\u00f3 cumpria as obriga\u00e7\u00f5es do officio e sem amor. Nas horas de lazer vivia olhando ou jogava. Uma ou outra vez a."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/comments/new
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| offer_id | string | sometimes|nullable|string|max:191 | |
| new_id | string | sometimes|nullable|string|max:191 | |
| parent_comment_id | string | sometimes|nullable|string|max:191 | |
| text | string | required|string|max:10000 |
Get Comment
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/{comments}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/comments/{comments}
like or deslike comments
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/like-deslike/{comments}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"likedeslike": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/comments/like-deslike/{comments}
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| likedeslike | boolean | sometimes|nullable|boolean | Default true |
Edit comment
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/edit/{comments}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"text": "Capit\u00fa, senti um impeto de solu\u00e7ar tambem, enfiei pelo corredor. Andando, ouvi que a vida tanto podia sor uma opera, como uma viagem que fizera a minha opera. \u00abA vida \u00e9 uma opera,\u00bb dizia-me um velho magro, sereno, dotado de qualidades moraes solidas. Eu, posto n\u00e3o avaliasse todo o mundo pareciam rir nelle. Nos lances graves, gravissimo. Era nosso aggregado desde muitos annos; meu pae cedeu. Pois, senhor, n\u00e3o consegui recompor o que fazia tudo! Um homem p\u00f3de n\u00e3o ter gosto \u00e1 egreja e at\u00e9 lhe fez algumas criticas, disse-me que estava a recusar \u00e1 for\u00e7a. Repito, a alma de lepidez nova. Padua, ao contrario, os olhos dorminhocos. Uma das minhas recorda\u00e7\u00f5es mais antigas era vel-o montar todas as injusti\u00e7as da terra e o nariz. Ella afagou-me, depois quiz reprehender-me, mas creio que se deixou ficar quieta e muda, tal como d'ahi a pouco outras ideias... Mas essas pedem um capitulo especial. Rematemos este dizendo que ainda mais o assombrou foi esta conclus\u00e3o: --Conto com o reflexo de uma jannela. Pobre creatura! A dor era communicativa em si mesma; complicada da lembran\u00e7a de minha m\u00e3e, aos domingos, perguntou de curioso se eu era amigo della, e n\u00e3o durmo mal. Ora, como tudo can\u00e7a, esta monotonia acabou por dizer: --Padre \u00e9 bom, n\u00e3o ha nada no mundo que o pungiu foi enorme, disseram-me, n\u00e3o me falavam j\u00e1 do seminario, a tal titulo, deu-me vontade de dizer que conferia, rotulava e pregava na memoria a minha imagina\u00e7\u00e3o, assim como quem pede um copo de agua a pessoa que tem obriga\u00e7\u00e3o de o saber. Em compensa\u00e7\u00e3o, quiz apprender inglez com um principio de calva; teria os seus direitos autoraes, que n\u00e3o ha duvida; mas a lingua mystica do _Cantico_ um sentido directo e natural. Ent\u00e3o obedeceria ao primeiro peccado; nem por que elle me denunciou. XI A promessa. T\u00e3o depressa vi desapparecer o aggregado no corredor, pensando. Vi entrar o doutor Jo\u00e3o da Costa; tomava o pulso \u00e1 doente, e pedia-lhe que mostrasse a lingua. \u00ab\u00c9 surda, coitada!\u00bb exclamava Capit\u00fa. Ent\u00e3o eu co\u00e7ava o queixo."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/comments/edit/{comments}
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| text | string | required|string|max:10000 |
Remove comments
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/comments/delete/{comments}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/comments/delete/{comments}
Faq
Get all faq
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/faq",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/faq
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Get faq
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/faq/{faq}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/faq/{faq}
No authentication required
How It Works
Get all how it works
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/how-it-works",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/how-it-works
No authentication required
Permission required
how-it-works.list
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Get how it works
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/how-it-works/{how_it_works}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/how-it-works/{how_it_works}
No authentication required
Institutional
About app
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/institutional/about-app",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/institutional/about-app
No authentication required
About company
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/institutional/company-app",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/institutional/company-app
No authentication required
Policy Cookies
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/institutional/policy-cookies",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/institutional/policy-cookies
No authentication required
Privacy policy
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/institutional/privacy-policy",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/institutional/privacy-policy
No authentication required
Terms of use
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/institutional/terms-of-use",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/institutional/terms-of-use
No authentication required
News
Get all news
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/news",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/news
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id title schedule_at created_at updated_at |
| search | string | string | Search in the fields: uuid title text |
Get news
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/news/{news}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/news/{news}
No authentication required
Notifications
Get all my notifications
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/notifications",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/notifications
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| is_alert | integer | integer | Available values: 0 1 |
| orderBy | string | string | Default: id:asc.Available fields: id text max_value min_value created_at updated_at |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
| removed | string | string | string |
Marca como lida uma push (usuário)
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/notifications/read/{uuid}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/notifications/read/{uuid}
marcar todas as minhas pushs (de usuario) como lido
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/notifications/all-read",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/notifications/all-read
"Remove" uma push (usuário) marcando como deletada
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/notifications/{uuid}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/notifications/{uuid}
exclui todas as minhas pushs (de usuario)
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/notifications",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/notifications
Offers
Get all my offers
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/my-offers",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/offers/my-offers
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| perfil_id | string | string|max:191 | |
| category_id[] | array | sometimes|nullable|array|max:191 | |
| under_review | integer | integer | Available values: 0 1 |
| type | string | string | Available values: cupom oferta |
| is_active | integer | integer | Available values: 0 1 |
| store_id[] | array | sometimes|nullable|array|max:191 | |
| orderBy | string | string | Default: id:asc.Available fields: id title price like shared comments offers_saves created_at updated_at |
| search | string | string | Search in the fields: uuid title store |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
get all offer likes
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offer-likes",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/offer-likes
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id title price like shared comments offers_saves created_at updated_at |
| search | string | string | Search in the fields: uuid title store |
get all offer save
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offer-saves",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/offer-saves
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id title price like shared comments offers_saves created_at updated_at |
| search | string | string | Search in the fields: uuid title store |
Create offer
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/new",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"title": "Repellat voluptate magnam odio rerum.",
"store_id": "7fef5a44-e58d-3dde-96d6-b6ee39732383",
"category_id[]": "ea4f0ce7-7086-33c6-ae22-ae77814b445c",
"tags[]": "114c69b4-9c00-3d87-9843-b73f08877ef5",
"perfil_id[]": "45528c9a-54ce-37c6-9b20-5cd15e1c98a4",
"cupom": "Eos possimus voluptatem et.",
"type": "'oferta'",
"discount_type": "'porcentagem'",
"link": "Ipsum aut quo ut sit et amet sit.",
"price": "Eveniet quisquam libero velit iure.",
"discount": "Nobis neque laborum perferendis et facere sit qui.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/offers/new
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| title | string | required|string|max:191 | |
| store_id | string | required|string|max:191 | |
| category_id[] | array | required|array|max:191 | |
| tags[] | array | required|array | |
| perfil_id[] | array | required|array|max:191 | |
| cupom | string | sometimes|nullable|string|max:191 | |
| type | string | string | Available values: cupom oferta |
| discount_type | string | string | Available values: numerico porcentagem |
| link | string | required|string|max:1500 | |
| price | numeric | required|numeric|min:1 | |
| discount | numeric | sometimes|nullable|numeric|min:1 | |
| is_active | boolean | boolean | Default true |
Edit offer
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/edit/{offer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"title": "Repellendus quia illo quae est laboriosam consequatur mollitia error.",
"store_id": "2e076a46-e565-3b99-87d8-7a07853aee7a",
"category_id[]": "6432fa39-c99f-3f24-bb79-c5e7ba7b4b69",
"tags[]": "d2f76984-74d2-32b5-833f-0fed3f0ff9c8",
"cupom": "Rerum eum vel laboriosam ratione.",
"link": "Reprehenderit eius alias ipsum est.",
"type": "'oferta'",
"discount_type": "'porcentagem'",
"price": "Enim facilis eveniet et et sit at illum ipsum.",
"discount": "Eligendi numquam amet sunt laborum.",
"is_active": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/offers/edit/{offer}
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| title | string | sometimes|nullable|string|max:191 | |
| store_id | string | sometimes|nullable|string|max:191 | |
| category_id[] | array | required|array|max:191 | |
| tags[] | array | required|array | |
| cupom | string | sometimes|nullable|string|max:191 | |
| link | string | sometimes|nullable|string|max:1500 | |
| type | string | sometimes|nullable|string | Available values: cupom oferta |
| discount_type | string | sometimes|nullable|string | Available values: numerico porcentagem |
| price | numeric | sometimes|nullable|numeric|min:1 | |
| discount | numeric | sometimes|nullable|numeric|min:1 | |
| is_active | boolean | sometimes|nullable|boolean | Default true |
like or remove like offer
likedeslike = true = like likedeslike = false = remove like
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/like-deslike/{offer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"likedeslike": "1"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/offers/like-deslike/{offer}
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| likedeslike | boolean | sometimes|nullable|boolean | Default true |
save offer
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/save/{offer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/offers/save/{offer}
Remove Offer
Example request:
const axios = require('axios');
axios({
"method": "delete",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/delete/{offer}",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
DELETE api/v1/customer/offers/delete/{offer}
Get all offers
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/offers
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| perfil_id | string | string|max:191 | |
| category_id[] | array | array|max:191 | |
| type | string | string | Available values: cupom oferta |
| under_review | integer | integer | Available values: 0 1 |
| max_value | numeric | numeric|min:1 | static(1000) |
| min_value | numeric | numeric|min:1 | static(100) |
| is_active | integer | integer | Available values: 0 1 |
| destaque | integer | integer | Available values: 0 1 |
| store_id[] | array | array|max:191 | |
| exclusive_app | boolean | boolean | Default true |
| orderBy | string | string | Default: id:asc.Available fields: id title price like shared comments offers_saves created_at updated_at |
| search | string | string | Search in the fields: uuid title store |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get offer
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/{offer}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/offers/{offer}
No authentication required
shared offer
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/offers/shared/{offer}",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/offers/shared/{offer}
No authentication required
On Sales
Get all on sales
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/on-sales",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/on-sales
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| offer_id | string | string|max:191 | |
| is_active | integer | integer | Available values: 0 1 |
| terminated | integer | integer | Available values: 0 1 |
| type | string | string | Filter by status based on dates: release (start_at > now), actived (now between start_at and end_at), closed (end_at < now) |
| orderBy | string | string | Default: created_at:asc.Available fields: id phrase start_at created_at updated_at |
| search | string | string | Search in the fields: uuid phrase slug |
| end_at | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get on sale
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/on-sales/{onsale}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/on-sales/{onsale}
OnBoarding
Get all onboardings
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/onboarding",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/onboarding
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id frase frase2 created_at |
| search | string | string | Search in the fields: frase frase2 |
Perfis
Get all perfil
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/perfis",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/perfis
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Get perfil
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/perfis/{perfil}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/perfis/{perfil}
No authentication required
Reports
Create report error
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/reports/error",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"offer_id": "e1fdc4f3-6461-3e25-9761-41e9a81ede43",
"text": "Em casa, referia os debates. Tio Cosme, por mais que eu acabasse fugindo, ou por temer que eu andasse em segredinhos com Capit\u00fa, como lhe attribuira lagrimas, ha pouco, assim lhe encheu a bocca de Capit\u00fa deixassem de crescer para mim, inclinada sobre a."
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/reports/error
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| offer_id | string | required|string|max:191 | |
| text | string | sometimes|nullable|string|max:255 |
Create report offer finish
Example request:
const axios = require('axios');
axios({
"method": "post",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/reports/finish-offer",
"headers": {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"Language": "{language}"
},
"data": {
"offer_id": "1f9ff5e2-d3f6-36d1-8745-f12a59b92412"
}
})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
HTTP Request
POST api/v1/customer/reports/finish-offer
Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| offer_id | string | required|string|max:191 |
Settings General
Get settings
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/settings/general",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/settings/general
Permission required
settings-general.list
Stores
Get all stores
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/stores",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/stores
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Stories
Get all groups stories
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/group-stories",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/group-stories
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id phrase order active |
| search | string | string | Search in the fields: phrase |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
Get all stories
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/stories",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/stories
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id phrase order active |
| search | string | string | Search in the fields: phrase |
| is_active | integer | integer | Available values: 0 1 |
| groups_stories_id | array | sometimes|nullable|array|max:191 | |
| created_at[0] | string | string | ISO 8601 Y-m-d\TH:i:sP Initial date |
| created_at[1] | string | string | ISO 8601 Y-m-d\TH:i:sP Final date |
get Story
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/stories/{story}",
"headers": {
"Authorization": "Bearer {access_token}",
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/stories/{story}
Tags
Get all tag
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/tags",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/tags
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| limit | integer | integer | Default: 20 Max: 100 |
| page | integer | integer | |
| orderBy | string | string | Default: id:asc.Available fields: id name order created_at updated_at |
| search | string | string | Search in the fields: uuid name |
Get tag
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/tags/{tag}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/tags/{tag}
No authentication required
Webservice
Cities
Search city, must enter at least one of the search fields search or state_abbr
List a maximum of 50 items.
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/webservice/cities",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/webservice/cities
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| search | string | string | Search in the fields: full_name |
| state_abbr | string | string |
States
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/webservice/states",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/webservice/states
No authentication required
Query Parameters
| Parameter | Type | Validation | Description |
|---|---|---|---|
| search | string | string | Search in the fields: name |
Find zipcode
Example request:
const axios = require('axios');
axios({
"method": "get",
"url": "https://homologacao.clickweb.com.br:8445/api/v1/customer/webservice/zipcode/{zipcode}",
"headers": {
"Accept": "application/json",
"Language": "{language}"
}})
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.finally(function () {
// optional, always executed
});
Example response:
null
HTTP Request
GET api/v1/customer/webservice/zipcode/{zipcode}