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": "Rerum totam excepturi culpa voluptas magnam.",
"max_value": "Architecto culpa aperiam quam accusantium.",
"min_value": "Autem id iure minus dolore saepe dicta distinctio.",
"is_active": "0"
}
})
.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": "Qui qui consequuntur voluptatem sed quas autem consectetur.",
"max_value": "Voluptatem enim id laboriosam quos officiis.",
"min_value": "Doloremque earum voluptas perferendis fugiat.",
"is_active": "0"
}
})
.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": "reis.david@example.net",
"name": "Juliana Arruda Mendes Neto",
"avatar": "Officiis autem rem voluptatibus.",
"password": "BRxvgVeXcb",
"login_external_id": "Maxime debitis animi rem ut ut autem culpa.",
"network_external": "Sed non veniam provident sed.",
"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": "emilly13@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": "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": "maia.estela@example.com",
"name": "Ant\u00f4nio Assun\u00e7\u00e3o",
"login_external_id": "Voluptatem voluptas impedit et quia cupiditate.",
"network_external": "Animi quis fugiat cumque repellendus quisquam corrupti eligendi voluptatibus.",
"token_name": "My Computer",
"avatar": "Dolorem dolorem deserunt non.",
"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": "Id vitae assumenda odio perferendis."
}
})
.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": "asantacruz@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": "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": "1",
"notify_offers": "1",
"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": "Sr. Marcelo Luciano Bezerra Neto",
"is_active": "0",
"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": "1cbf195d-fd4c-387e-a416-88986d018395",
"offer_id": "3b2101d7-8408-363f-887a-9395c800fc19",
"comment_id": "e6315b5a-ef76-3fd4-a58f-4da3bca7ee35"
}
})
.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": "28bd0f5f-9d65-33d5-93de-f45789968c1a",
"new_id": "63123989-d86b-3324-a0cc-1e07d6dfb615",
"parent_comment_id": "3c8d42f8-91ee-3639-9cf5-5e6b64f68100",
"text": "De manh\u00e3, ella derreou a cabe\u00e7a, podia ficar tonta, machucar o pesco\u00e7o. Cheguei a dizer-lhe que ia para o padre Cabral. Voc\u00ea n\u00e3o se podendo calcular em que m\u00f3ra, mas honestidade e estima n\u00e3o bastam, e as lagrimas faziam-lhe encarquilhar os olhos. N\u00e3o obstante, o total falava e captivava o cora\u00e7\u00e3o. O vig\u00e1rio confessou a doente, deu-lhe a communh\u00e3o e os sapatos de verniz. Viveu assim vinte e dous mezes na supposi\u00e7\u00e3o de uma corda. Era quasi que n\u00e3o responde de todo m\u00e1. Capit\u00fa, apesar daquelles olhos que o sacerdote venha j\u00e1 destinado do ber\u00e7o. N\u00e3o havendo voca\u00e7\u00e3o, falo de voca\u00e7\u00e3o sincera e real, um joven p\u00f3de muito bem servir a Deus sem ser primeiramente padre, disse-lhe eu mordendo os bei\u00e7os. --Bem; comece pelas meias pretas, depois vir\u00e3o as roxas. O roxo \u00e9 c\u00f4r muito bonita. --Sim, \u00e9 bonita; mas o que f\u00f4r do seu agrado, at\u00e9 cocheiro de omnibus. Consolei-me por instantes, digamos minutos, at\u00e9 destruir-se o plano e voltar-me para as leis, se tal \u00e9 a mais doce \u00e9 esta, a mais bella creatura do mundo, se o estomago, e apalpava-me a testa at\u00e9 \u00e1s dimens\u00f5es normaes, e dar-lhes o movimento do costume. Minha m\u00e3e falou-lhe com bondade, mas elle queria ir, e fez um gesto de approxima\u00e7\u00e3o. Certo \u00e9 que Capit\u00fa olhava para dentro de si que elles tinham na distribui\u00e7\u00e3o dos premios. P\u00f3de ser tambem que o padre Cabral foi porque o padre, depois de muito futuro, que apprendeu no conservatorio do ceu. Rival de Miguel, Raphael e Gabriel, n\u00e3o tolerava a precedencia que elles lhe d\u00e3o, mas no que lhe dissesse que a minha administra\u00e7\u00e3o come\u00e7ou... \u00c9 isto, mez e meio antes; foi mez e meio antes; foi mez e meio antes; foi mez e meio antes, n\u00e3o foi elle, foi o principio dos tempos. E, piscando-me o olho, concluiu: --A voca\u00e7\u00e3o \u00e9 tudo. O que eu reputava certo, ainda que demorado. Capit\u00fa reflectia, reflectia, reflectia... XLIII Voc\u00ea tem medo? De repente, sem querer, sem pensar, saiu-me da boca esta palavra de orgulho: --Sou homem! Quando repeti isto, pela terceira vez, pensei no seminario, tirei."
}
})
.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": "0"
}
})
.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": "Cabral ouvia com gosto a repeti\u00e7\u00e3o do titulo. Estava em p\u00e9, dava alguns passos, sorria ou tamborilava na tampa da boceta. O tamanho do titulo com o imperador, contar-lhe tudo e pedir-lhe a interven\u00e7\u00e3o. N\u00e3o confiaria. esta ideia a Capit\u00fa. --Parece que n\u00e3o. --A medicina,--porque lhe n\u00e3o manda ensinar medicina? Uma vez que elles n\u00e3o alcan\u00e7avam reconstituir-me os tempos idos, pegasse da penna e contasse alguns. Talvez a narra\u00e7\u00e3o me d\u00e9sse a este, duas vezes em cinco minutos, lembrou-me ir correndo \u00e1 casa visinha, logo que o diabo lhe deu... Voc\u00ea j\u00e1 reparou nos olhos della? S\u00e3o assim de cigana obliqua e dissimulada. Pois, apesar delles, poderia passar, se n\u00e3o chovesse em certa tarde de passeio a Santa Theresa. N\u00e3o choveu, mas eu retorquia chamando-lhe maluca. Quando me perguntava o que fazia tudo! Um homem que dava para namoros. Contam que, em rapaz, foi acceito de muitas voltas, a cara delle era pouca para a mulher, uma sepultura perpetua de familia, mandar vir da Europa alguns passaros, etc.; mas a Europa... Levantou a perna e fez um gesto de adeus, dizendo ainda: \u00abA medicina, a nossa Escola.\u00bb E o coche partia entre invejas e agradecimentos. Tudo isso vi e ouvi. N\u00e3o, a imagina\u00e7\u00e3o os faz infinitos. Minha m\u00e3e assoou-se sem responder. Prima Justina completou a noticia dizendo que eu estude leis, vou para S. Paulo, mas a furto e a collabora\u00e7\u00e3o amiga teriam evitado. Com effeito, ha logares em que a tinha ido buscar \u00e1 cocheira, segurava o freio, emquanto elle erguia o p\u00e9 e pousava no estribo; a isto seguia-se um minuto de descan\u00e7o ou reflex\u00e3o. Depois, dava um potro, que sa\u00eda dellas vinha crescendo, cava e escura, amea\u00e7ando envolver-me, puxar-me e tragar-me. Quantos minutos gast\u00e1mos naquelle jogo? S\u00f3 os relogios do ceu ter\u00e3o marcado esse tempo infinito e breve. A eternidade tem as suas pendulas 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, e preparou-se logo o voltarete do."
}
})
.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": "Est dolores corrupti voluptas qui dolore est sit.",
"store_id": "115093bd-b148-34ff-8368-bef229529083",
"category_id[]": "2336c19c-b99d-3630-9c85-a06b0b15470f",
"tags[]": "87d92ff2-c98e-3909-b4b0-d0788968e2c4",
"perfil_id[]": "ca914920-2c4a-3684-bafb-e3b25e7fe741",
"cupom": "A enim cumque non vel consectetur aut occaecati.",
"type": "'oferta'",
"discount_type": "'porcentagem'",
"link": "Reprehenderit soluta placeat ea sit doloremque esse ut.",
"price": "Asperiores a aut qui accusamus ipsam adipisci voluptatem.",
"discount": "Odit asperiores perferendis ut.",
"is_active": "0"
}
})
.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": "Quae possimus itaque illo provident.",
"store_id": "3391a3ac-9594-366d-89d4-22a6db4cf06f",
"category_id[]": "16be6625-51e5-3fe1-8fb3-28fd7616793f",
"tags[]": "abcaefa0-703c-374d-9c8d-7fc10a428946",
"cupom": "Possimus et esse porro quia recusandae temporibus ut veniam.",
"link": "Non ut incidunt tenetur placeat ea voluptatem est minus.",
"type": "'oferta'",
"discount_type": "'porcentagem'",
"price": "Ducimus qui nulla et impedit hic.",
"discount": "Nisi est maiores enim quis.",
"is_active": "0"
}
})
.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": "0"
}
})
.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": "c64e00ee-8948-35f7-ba0a-df020ba5e71d",
"text": "Eia, comecemos a evoca\u00e7\u00e3o por uma celebre tarde de Novembro, uma tarde clara e fresca, socegada como a recolhel-a, perguntava em voz baixa: --N\u00e3o ria assim! Fiquei serio depressa. Era o pae devia ir comprimentar o padre Cabral, que levava tudo para."
}
})
.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": "e25adf37-4d8f-37db-8759-f2e32cc1ff54"
}
})
.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 | |
| is_active | integer | integer | Available values: 0 1 |
| is_stories_active | integer | integer | Available values: 0 1 |
| 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}