NAV
javascript

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.

About app

Get about app

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/about-app",
    "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/admin/about-app

Permission required

about-app.edit

Update about app

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/about-app",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Qui autem qui ut sed cupiditate laboriosam aut.",
        "file": "{file}",
        "file_mobile": "{file}",
        "video": "Et vero ut nihil fuga ut eaque.",
        "text": "Quam tempore et facilis. Dolores qui at vero tenetur. Veritatis est doloribus adipisci non dolores voluptas. Placeat eaque reiciendis recusandae veritatis accusamus error nulla accusantium."
}
})
.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/admin/about-app

Permission required

about-app.edit

Parameters

Parameter Type Validation Description
name string string|max:191
file file nullable|mimes:jpg,jpeg,png|max:4mb
file_mobile file nullable|mimes:jpg,jpeg,png|max:4mb
video string nullable|url
text string nullable|string|max:60000 HTML allowed

About company

Get about company

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/company-app",
    "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/admin/company-app

Permission required

about-company.edit

Update about company

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/company-app",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Animi est assumenda unde hic atque.",
        "file": "{file}",
        "file_mobile": "{file}",
        "video": "Itaque totam quas quod id.",
        "text": "Temporibus mollitia sapiente tenetur. Ratione maiores expedita et temporibus sed. Sed dicta quidem quasi modi est cupiditate. Culpa exercitationem repellendus laboriosam asperiores."
}
})
.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/admin/company-app

Permission required

about-company.edit

Parameters

Parameter Type Validation Description
name string string|max:191
file file nullable|mimes:jpg,jpeg,png|max:4mb
file_mobile file nullable|mimes:jpg,jpeg,png|max:4mb
video string nullable|url
text string nullable|string|max:60000 HTML allowed

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/admin/auth/login",
    "headers": {
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "email": "wmares@example.net",
        "password": "3fZN3S1Mmi",
        "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/admin/auth/login

No authentication required

Parameters

Parameter Type Validation Description
email string required|email
password string required|string|min:6
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/admin/auth/password/recovery",
    "headers": {
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "email": "liz.ortega@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/admin/auth/password/recovery

No authentication required

Parameters

Parameter Type Validation Description
email 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/admin/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/admin/auth/password/reset

Logout

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/auth/logout

Get the authenticated user

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/auth/user

Get all tokens

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/auth/tokens

Delete token

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/auth/tokens/{tokenId}

Change password

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/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

Change avatar

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/auth/change-avatar

Parameters

Parameter Type Validation Description
avatar file required|mimes:jpeg,png|max:2mb

Categories

Get all categories

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/categories

Permission required

categories.list

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 name order created_at updated_at
search string string Search in the fields: uuid name

active/deactive category

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/active-deactive/{categories}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "1ca07a3b-7c18-3d69-9e82-48c5896037ea",
        "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/admin/categories/active-deactive/{categories}

Permission required

categories.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Autocomplete categories

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/autocomplete",
    "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/admin/categories/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create category

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Tempora eius voluptate ut.",
        "order": 5,
        "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/admin/categories

Permission required

categories.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
order integer required|integer
is_active boolean boolean Default true

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/categories/additional-information

Export categories

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/categories/export

Permission required

categories.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 category

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/{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/admin/categories/{categories}

Permission required

categories.show

Update category

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/update/{categories}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Nulla provident dolores consequatur.",
        "order": 4,
        "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/admin/categories/update/{categories}

Permission required

categories.edit

Parameters

Parameter Type Validation Description
name string string|max:191
order integer required|integer
is_active boolean boolean

Remove category

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/categories/{categories}",
    "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/admin/categories/{categories}

Permission required

categories.delete

Cliente

Get all clientes

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers",
    "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/admin/customers

Permission required

customers.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 email is_active created_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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
data_filiacao[0] string string ISO 8601 Y-m-d\TH:i:sP Initial date
data_filiacao[1] string string ISO 8601 Y-m-d\TH:i:sP Final date

Autocomplete cliente

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/autocomplete",
    "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/admin/customers/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create cliente

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "password": "Nhq3E2vyp7",
        "password_confirmation": "my_new_password",
        "name": "Et ad quia molestias dolore error recusandae et.",
        "email": "qgomes@example.com",
        "is_active": "0",
        "avatar": "{file}"
}
})
.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/admin/customers

Permission required

customers.create

Parameters

Parameter Type Validation Description
password string required|string|min:6
password_confirmation string required|string|min:6 Confirmation, must equal password
name string required|string|max:191
email email required|string|email|max:191
is_active boolean sometimes|nullable|boolean
avatar file sometimes|nullable|mimes:jpg,jpeg,png|max:4mb

Change avatar cliente

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/change-avatar/{customer}",
    "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/admin/customers/change-avatar/{customer}

Permission required

customers.edit

Parameters

Parameter Type Validation Description
avatar file required|mimes:jpeg,png|max:2mb

Update cliente

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/update/{customer}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "password": "txF5wbYuBg",
        "password_confirmation": "my_new_password",
        "name": "Fuga maxime id dolorem aut in pariatur.",
        "email": "barbara.caldeira@example.com",
        "is_active": "0",
        "avatar": "{file}"
}
})
.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/admin/customers/update/{customer}

Permission required

customers.edit

Parameters

Parameter Type Validation Description
password string sometimes|nullable|string|min:6
password_confirmation string required|string|min:6 Confirmation, must equal password
name string sometimes|nullable|string|max:191
email email sometimes|nullable|string|email|max:191
is_active boolean sometimes|nullable|boolean
avatar file sometimes|nullable|mimes:jpg,jpeg,png|max:4mb

Export clientes

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/customers/export

Permission required

customers.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name email is_active created_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 cliente

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/{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/admin/customers/{customer}

Permission required

customers.show

Remove cliente

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/{customer}",
    "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/admin/customers/{customer}

Permission required

customers.delete

active/deactive customer

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers/active-desactive/{customer}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "ef994f66-88e1-3ff8-9a83-3df684b77ae5",
        "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/admin/customers/active-desactive/{customer}

Permission required

customer.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Get all clientes deletedos

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers-deleted",
    "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/admin/customers-deleted

Permission required

customers-deleted.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 email is_active created_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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
data_filiacao[0] string string ISO 8601 Y-m-d\TH:i:sP Initial date
data_filiacao[1] string string ISO 8601 Y-m-d\TH:i:sP Final date

Export clientes deletado

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers-deleted/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/customers-deleted/export

Permission required

customers-deleted.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name email is_active created_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 cliente deletado

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/customers-deleted/{uuid}",
    "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/admin/customers-deleted/{uuid}

Permission required

customers-deleted.show

Comments

Get all comments

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/comments

Permission required

comments.list

Query Parameters

Parameter Type Validation Description
limit integer integer Default: 20 Max: 100
page integer integer
customer_id string string|max:191
offer_id string string|max:191
new_id string string|max:191
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 Comment

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/comments/{comment}",
    "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/admin/comments/{comment}

Permission required

comments.show

active/deactive comment

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/comments/active-desactive/{comment}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "be613bbd-43c3-3a3c-aa7c-1b8176eba6c6",
        "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/admin/comments/active-desactive/{comment}

Permission required

comments.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Export comments

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/comments/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/comments/export

Permission required

comments.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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

Dashboard

Get summary of data

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/dashboard",
    "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/admin/dashboard

Denunciations

Get all denunciations

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/denunciations",
    "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/admin/denunciations

Permission required

denunciations.list

Query Parameters

Parameter Type Validation Description
limit integer static(20) 20 Max: 100
page integer integer
customer_id string string|max:191
offer_id string string|max:191
search string string Search in the fields: text
orderBy string static(id:asc|created_at:asc) id:asc.
Available fields: id name author is_active 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

Get denunciations

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/denunciations/{denunciation}",
    "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/admin/denunciations/{denunciation}

Permission required

denunciations.show

deactive comment

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/denunciations/disabled/{comment}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "a40e06a9-00be-396f-9d64-9c142372c328",
        "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/admin/denunciations/disabled/{comment}

Permission required

denunciations.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Faq

Get all faq

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq",
    "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/admin/faq

Permission required

faq.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 is_active created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1
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

Create faq

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Aut ullam atque veritatis ab non voluptas.",
        "text": "Elles, sim, elles, abaixo de Deus. Eu era um deleite. Mas, emfim, os cabellos para renovar o penteado. D. Fortunata ralhava: --Jo\u00e3osinho, voc\u00ea \u00e9 crean\u00e7a? Mas, tanto lhe ouviu falar em morte que teve medo, e um livro de _Horas..._ Quiz defendel-a, mas Capit\u00fa respondeu por ambos. --Estavamos, sim, senhor, mas Bentinho ri logo, n\u00e3o aguenta. --Quando eu cheguei \u00e1 porta, n\u00e3o ria. --J\u00e1 tinha rido das outras vezes. --Creio que sim; o mais acertado, por\u00e9m, \u00e9 dizer que n\u00e3o responde de todo ao pensamento sublime do poeta. J\u00e1 n\u00e3o dizem o mesmo de tio Cosme. Nelle era velho costume e necessidade. J\u00e1 n\u00e3o dizem o mesmo no ch\u00e3o, e pedi-lhe a taquara. N\u00e3o me atrevia a descer \u00e1 chacara, entrar no quintal, dar-lhe terceiro beijo, e despedir-me. N\u00e3o me chames dissimulado, chama-me compassivo; \u00e9 certo que receiava perder Capit\u00fa, se lhe salvava o marido que se pass\u00e1ra com minha m\u00e3e, sen\u00e3o para ir ver sair os seminaristas de S. Jos\u00e9, a quem \u00e9 que prima Justina reteve-me alguns minutos, falando do calor e da defesa, n\u00e3o perdiamos a cautela necessaria para n\u00e3o tomar suadouro, mas tu est\u00e1s constipado; conhece-se pela voz. Tentei rir, para mostrar que n\u00e3o era cousa de cuidado. --N\u00e3o \u00e9 tarde, ainda \u00e9 tempo, se o receio me n\u00e3o descobriam nada, agora os sentia como signaes de alguma cousa, e assim as meias palavras, as perguntas curiosas, as respostas vagas, os cuidados, o gosto do tempo em que meu pae ainda estava na sala, mas outra for\u00e7a maior, outra emo\u00e7\u00e3o... N\u00e3o pude ouvir as palavras o eram, e o passo vagaroso e rigido. Tambem se p\u00f3de dizer que a tinha. \u00abO desuso \u00e9 que prima Justtina lh'o ensinasse. Se n\u00e3o foi elle, foi o p\u00e9. Um ou outro admitte certas rudezas e taes ou quaes lacunas, mas com agua do po\u00e7o e lavadouro. Uso lou\u00e7a velha e mobilia velha. Emfim, agora, como outr'ora, ha aqui o mesmo contraste da vida de padre \u00e9 muito bonita. Pensando bem, \u00e9 melhor que n\u00e3o s\u00e3o padres. O sangue era da mesma opini\u00e3o. Outra vez senti os meus pluraes careciam, alguma vez, da desinencia exacta.",
        "order": 2,
        "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/admin/faq

Permission required

faq.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
text string nullable|string|max:10000
order integer required|integer
is_active boolean boolean Default true

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/faq/additional-information

Export faq

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/faq/export

Permission required

faq.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 faq

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq/{faq}",
    "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/admin/faq/{faq}

Permission required

faq.show

Update faq

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq/{faq}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Aperiam labore minus dolores voluptas odio occaecati voluptas labore.",
        "text": "Corrupti debitis quaerat vel numquam vero omnis voluptatem. In ut incidunt architecto odio illum voluptatem. Voluptas corrupti in recusandae qui odit sit.",
        "order": 10,
        "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/admin/faq/{faq}

Permission required

faq.edit

Parameters

Parameter Type Validation Description
name string string|max:191
text string nullable|string|max:10000
order integer required|integer
is_active boolean boolean

Remove faq

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/faq/{faq}",
    "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/admin/faq/{faq}

Permission required

faq.delete

Group of Stories

Get all groups

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-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/admin/groups-stories

Permission required

group-stories.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 is_active created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1
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

Create group

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-stories",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Enim in sequi rerum ut quia voluptas.",
        "order": 4,
        "icon": "{file}",
        "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/admin/groups-stories

Permission required

group-stories.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
order integer required|integer
icon file nullable|mimes:jpg,jpeg,png|max:4mb
is_active boolean boolean Default true

Autocomplete groups

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-stories/autocomplete",
    "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/admin/groups-stories/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-stories/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/groups-stories/additional-information

Get group

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-stories/{group}",
    "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/admin/groups-stories/{group}

Permission required

group-stories.show

Update group

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-stories/{group}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Est libero sed ex provident et voluptatum.",
        "text": "Impedit est odit necessitatibus soluta. Rerum consequatur error perferendis eius quia deserunt saepe. Saepe veniam magni incidunt.",
        "icon": "{file}",
        "order": 11,
        "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/admin/groups-stories/{group}

Permission required

group-stories.edit

Parameters

Parameter Type Validation Description
name string string|max:191
text string nullable|string|max:10000
icon file nullable|mimes:jpg,jpeg,png|max:4mb
order integer required|integer
is_active boolean boolean

Remove group

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/groups-stories/{group}",
    "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/admin/groups-stories/{group}

Permission required

group-stories.delete

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/admin/how-it-works",
    "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/admin/how-it-works

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 is_active created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1
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

Create how it works

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/how-it-works",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Voluptatem unde fuga quisquam vero tempore suscipit aliquam nihil.",
        "text": "Capit\u00fa, que voltava da reparti\u00e7\u00e3o um pouco mais, e bastaria um pouco surda e timida. N\u00e3o obstante, Jos\u00e9 Dias sorriu sem vexame. Padre Cabral respondeu que sim, que se retira da praia, nos dias de festa matava um leit\u00e3o, era visto em theatros, chegou aos sapatos de cordav\u00e3o rasos e surdos, a um mascate italiano, moldura tosca, argolinha de lat\u00e3o, pendente da parede, entre as duas tran\u00e7as. Onde estava a fita para atar-lhes as pontas? Em cima da cama. \u00abEsta \u00e9 a verdade, mas foi t\u00e3o de passagem... --Elle pediu a sua m\u00e3e. E depois a egreja brasileira tem altos destinos. N\u00e3o esque\u00e7amos que um bispo presidiu a Constituinte, e que o meu dever, o meu gosto, todos os documentos falsos, mas n\u00e3o traria nenhum, tal era a que vou resumir. Deus \u00e9 que lhe saiu o prestito \u00e1 rua. Quando me perguntava se sonh\u00e1ra com ella na sala, na mesma opera... X Acceito a theoria. Que \u00e9 que elle vae tomando confian\u00e7a. D. Gloria, mas n\u00e3o passou do gesto; estava amuado. No dia seguinte entrou a cochilar e dormir. Tinhamos chegado \u00e1 janella; um preto, que, desde manh\u00e3, era mulher, como eu receiava, mas as ac\u00e7\u00f5es citadas por Jos\u00e9 Dias ainda n\u00e3o sendo padre, se quizer florear como os da Aurora, porque n\u00e3o conhecia ainda esta divindade que os olhos daquella creatura de quatorze annos, tinha j\u00e1 ideias atrevidas, muito menos que duvidoso em que eu podia acceital-a sem grande pena. Como desfor\u00e7o, era pueril; mas eu n\u00e3o ria daquella vez por estar ao p\u00e9 do sabugueiro que ficava perto; Capit\u00fa respondeu que n\u00e3o gostam dos meus quinze annos. Tudo era materia \u00e1s curiosidades de Capit\u00fa eram agora t\u00e3o retrahidas, que n\u00e3o tinha voz, mas teimava em esconder os saldos da juventude, por mais que de atropello, o bastante para divertir ao ser\u00e3o e \u00e1 companhia dos padres, que acabei ordenando-me. Mas, supponha que n\u00e3o era feio que os meninos de quinze annos andassem nos cantos com as m\u00e1s companhias em que eu obedecesse ou n\u00e3o; em todo caso, entenderia. Mas aquella pergunta assim, vaga e solta, n\u00e3o pude atinar o que.",
        "order": 9,
        "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/admin/how-it-works

Permission required

how-it-works.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
text string nullable|string|max:10000
order integer required|integer
is_active boolean boolean Default true

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/how-it-works/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/how-it-works/additional-information

Export how it works

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/how-it-works/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/how-it-works/export

Permission required

how-it-works.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 how it works

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/how-it-works/{how_it_works}",
    "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/admin/how-it-works/{how_it_works}

Permission required

how-it-works.show

Update how it works

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/how-it-works/{how_it_works}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "At et eligendi aut.",
        "text": "Dolorem ut ut beatae corrupti. Soluta ab fugiat eos similique omnis dolores illo.",
        "order": 7,
        "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/admin/how-it-works/{how_it_works}

Permission required

how-it-works.edit

Parameters

Parameter Type Validation Description
name string string|max:191
text string nullable|string|max:10000
order integer required|integer
is_active boolean boolean

Remove how it works

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/how-it-works/{how_it_works}",
    "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/admin/how-it-works/{how_it_works}

Permission required

how-it-works.delete

Log

Get all logs

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/logs",
    "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/admin/logs

Permission required

log.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 user_id log_type log_id log_name message action ip user_agent url method created_at
search string string Search in the fields: uuid user_id log_type log_id log_name message action ip user_agent url method

Export logs

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/logs/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/logs/export

Permission required

log.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id user_id log_type log_id log_name message action ip user_agent url method created_at
search string string Search in the fields: uuid user_id log_type log_id log_name message action ip user_agent url method

Get log

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/logs/{log}",
    "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/admin/logs/{log}

Permission required

log.show

News

Get all news

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news",
    "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/admin/news

Permission required

news.list

Query Parameters

Parameter Type Validation Description
limit integer static(20) 20 Max: 100
page integer integer
is_active integer integer Available values: 0 1
orderBy string static(id:asc|created_at:asc) id:asc.
Available fields: id name author is_active created_at updated_at
search string static(lorem) in the fields: name author

active/deactive news

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news/active-deactive/{news}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "cbe4a286-ea59-3f30-8a01-b61e4da4ad0f",
        "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/admin/news/active-deactive/{news}

Permission required

news.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Create news

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "capa": "{file}",
        "title": "Eaque voluptatem non qui ullam.",
        "link": "Voluptatem quia officiis distinctio dicta nihil aliquam voluptatum.",
        "button": "Impedit aut eaque qui ipsa unde explicabo earum voluptas.",
        "text": "Culpa omnis nobis sunt. Qui consequatur accusamus voluptatem et voluptatum dolores quos. Qui veniam ratione quod in. Deserunt fugiat vero quos nobis est dolorem.",
        "scheduled_at": "2019-07-29T00:00:00-03:00",
        "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/admin/news

Permission required

news.create

Parameters

Parameter Type Validation Description
capa file nullable|mimes:jpg,jpeg,png|max:4mb
title string required|string|max:191
link string required|string|max:300
button string required|string|max:191
text string nullable|string|max:60000
scheduled_at string string ISO 8601 Y-m-d\TH:i:sP date
is_active boolean boolean

Autocomplete news

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news/autocomplete",
    "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/admin/news/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Export news

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/news/export

Permission required

news.export

Query Parameters

Parameter Type Validation Description
date_start string static(2019-07-29T00:00:00-03:00) 8601 Y-m-d\TH:i:sP
date_end string static(2019-07-29T23:59:59-03:00) 8601 Y-m-d\TH:i:sP

Get news

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news/{news}",
    "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/admin/news/{news}

Permission required

news.show

Update news

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news/{news}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "capa": "{file}",
        "capa_delete": "139f7c2f-ce61-396a-9592-b2bb1bea6abc",
        "link": "Aut reiciendis quibusdam sed consequatur et id saepe aut.",
        "button": "Necessitatibus voluptatem voluptatum in eum aspernatur.",
        "title": "Nemo inventore vel laudantium quia in doloremque.",
        "text": "Ipsam dicta non id facilis. Vel ea eos sunt quidem eius perspiciatis porro. Quisquam vel dolorum soluta ratione. Id voluptates et delectus.",
        "scheduled_at": "2019-07-29T00:00:00-03:00",
        "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/admin/news/{news}

Permission required

news.edit

Parameters

Parameter Type Validation Description
capa file sometimes|nullable|mimes:jpg,jpeg,png|max:4mb
capa_delete string sometimes|nullable|string|max:191
link string required|string|max:300
button string required|string|max:191
title string sometimes|nullable|string|max:191
text string sometimes|nullable|string|max:60000
scheduled_at string sometimes|nullable|string ISO 8601 Y-m-d\TH:i:sP date
is_active boolean sometimes|nullable|boolean

Remove news

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news/{news}",
    "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/admin/news/{news}

Permission required

news.delete

api/v1/admin/verify/news/slug

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/verify/news/slug",
    "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/admin/verify/news/slug

Get all news deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news-deleted",
    "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/admin/news-deleted

Permission required

news-deleted.list

Query Parameters

Parameter Type Validation Description
limit integer static(20) 20 Max: 100
page integer integer
is_active integer integer Available values: 0 1
orderBy string static(id:asc|created_at:asc) id:asc.
Available fields: id name author is_active created_at updated_at
search string static(lorem) in the fields: name author

Export news deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news-deleted/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/news-deleted/export

Permission required

news-deleted.export

Query Parameters

Parameter Type Validation Description
date_start string static(2019-07-29T00:00:00-03:00) 8601 Y-m-d\TH:i:sP
date_end string static(2019-07-29T23:59:59-03:00) 8601 Y-m-d\TH:i:sP

Get news deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/news-deleted/{uuid}",
    "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/admin/news-deleted/{uuid}

Permission required

news-deleted.show

Offers

Get all offers

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/offers

Permission required

offers.list

Query Parameters

Parameter Type Validation Description
limit integer integer Default: 20 Max: 100
page integer integer
perfil_id string string|max:191
customer_id string string|max:191
category_id string string|max:191
type integer integer Available values: cupom oferta
under_review integer integer Available values: 0 1
is_active integer integer Available values: 0 1
store_id string string|max:191
orderBy string string Default: id:asc.
Available fields: id title price like shared comments created_at updated_at
search string string Search in the fields: uuid name
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

Autocomplete stores

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers/autocomplete",
    "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/admin/offers/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create offer

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "title": "Id vel nemo perspiciatis rerum vel nihil sed quia.",
        "store_id": "f6ee1009-d171-320e-a52f-a687a4cc436d",
        "perfil_id[]": "f83109b2-5f96-39ab-b7fa-acf6490329e3",
        "category_id[]": "c9777a1b-0629-3429-ab48-a545c61b1ac1",
        "link": "Aut ut magni enim aut non.",
        "cupom": "Deserunt odio eaque omnis.",
        "tags[]": "fcd9d801-074d-3f6c-8499-f31815e00fb9",
        "type": "'oferta'",
        "discount_type": "'porcentagem'",
        "price": "Veniam architecto possimus aliquid.",
        "discount": "Nam dolore voluptas nihil harum modi dicta velit.",
        "sku": "Expedita temporibus et odio aut deserunt iste.",
        "is_active": "1",
        "destaque": "1",
        "scheduled_at": "2019-07-29T23:59:59-03:00",
        "images[]": "{file}",
        "button_text": "84cff0c9-7c31-3858-abb3-56afec3d0307",
        "color_primary": "17af36e0-bd9a-3fc8-9f38-119a4fdd96b4",
        "color_secundary": "d1c8d74a-298d-39c5-a39b-b3b4846c4203"
}
})
.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/admin/offers

Permission required

offers.create

Parameters

Parameter Type Validation Description
title string required|string|max:191
store_id string required|string|max:191
perfil_id[] array required|array|max:191
category_id[] array required|array|max:191
link string required|string|max:1500
cupom string sometimes|nullable|string|max:191
tags[] array required|array
type string required|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
sku numeric required|numeric|min:1
is_active boolean boolean Default true
destaque boolean boolean Default true
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date
images[] file nullable|array|mimes:jpg,jpeg,png|max:4mb
button_text string sometimes|nullable|string|max:191
color_primary string sometimes|nullable|string|max:7
color_secundary string sometimes|nullable|string|max:7

Export offers

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/offers/export

Permission required

offers.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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/admin/offers/{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/admin/offers/{offers}

Permission required

offers.show

Edit offer

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers/update/{offers}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "title": "Non consequuntur reiciendis tenetur.",
        "perfil_id[]": "267eb4ec-c8d2-318e-a4c5-44400370578c",
        "store_id": "6890ac88-f1ad-3de4-b4d3-888701166c93",
        "category_id[]": "16699cc0-ea21-33f3-a700-26bdb79ea603",
        "link": "Inventore iusto corrupti provident omnis maxime corporis officia eum.",
        "cupom": "Blanditiis consequuntur aut earum ut rem.",
        "tags[]": "83a1dbaf-5687-39c0-bec3-1f73ee06ff58",
        "type": "'oferta'",
        "discount_type": "'porcentagem'",
        "price": "Eum ipsa molestiae rerum quia sint totam.",
        "discount": "Et est illo aspernatur nam non quia ut debitis.",
        "sku": "Optio dolor porro officia rerum.",
        "is_active": "0",
        "destaque": "1",
        "scheduled_at": "2019-07-29T23:59:59-03:00",
        "resend_notification": "0",
        "under_review": "0",
        "images": "{file}",
        "imagens_no_delete[]": "a4f3d1e5-10d9-309f-8706-c823fc085dc0",
        "button_text": "69018c24-b077-3e1d-8541-03fbfd184e72",
        "color_primary": "46c7517c-f66a-32ed-96b7-9d88c6eba24b",
        "color_secundary": "c17b5e8c-4147-3bcd-b307-adb9e7f4725c"
}
})
.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/admin/offers/update/{offers}

Permission required

offers.edit

Parameters

Parameter Type Validation Description
title string sometimes|nullable|string|max:191
perfil_id[] array sometimes|nullable|array|max:191
store_id string sometimes|nullable|string|max:191
category_id[] array sometimes|nullable|array|max:191
link string sometimes|nullable|string|max:1500
cupom string sometimes|nullable|string|max:191
tags[] array required|array
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
sku numeric sometimes|nullable|numeric|min:1
is_active boolean sometimes|nullable|boolean Default true
destaque boolean sometimes|nullable|boolean Default true
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date
resend_notification boolean sometimes|nullable|boolean Default true
under_review boolean sometimes|nullable|boolean Default true
images file sometimes|nullable|array|mimes:jpg,jpeg,png|max:4mb
imagens_no_delete[] array sometimes|nullable|array|max:191
button_text string sometimes|nullable|string|max:191
color_primary string sometimes|nullable|string|max:7
color_secundary string sometimes|nullable|string|max:7

Remove Offer

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers/{offers}",
    "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/admin/offers/{offers}

Permission required

offers.delete

api/v1/admin/verify/offers/slug

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/verify/offers/slug",
    "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/admin/verify/offers/slug

Resend Notification

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers/resendalert",
    "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/admin/offers/resendalert

Get all offers deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers-deleted",
    "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/admin/offers-deleted

Permission required

offers-deleted.list

Query Parameters

Parameter Type Validation Description
limit integer integer Default: 20 Max: 100
page integer integer
perfil_id string string|max:191
customer_id string string|max:191
category_id string string|max:191
is_active integer integer Available values: 0 1
under_review integer integer Available values: 0 1
store_id string string|max:191
orderBy string string Default: id:asc.
Available fields: id title price like shared comments created_at updated_at
search string string Search in the fields: uuid name
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

Export offers deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers-deleted/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/offers-deleted/export

Permission required

offers-deleted.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/offers-deleted/{uuid}",
    "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/admin/offers-deleted/{uuid}

Permission required

offers-deleted.show

On Sales

Get all on sales

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/on-sales

Permission required

on-sales.list

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
orderBy string string Default: id:asc.
Available fields: id phrase created_at updated_at
search string string Search in the fields: uuid phrase slug
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

Autocomplete stores

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/on-sales/autocomplete",
    "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/admin/on-sales/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create on sale

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/on-sales",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "phrase": "Aliquam unde voluptatem fuga et.",
        "offer_id": "c4054588-9dfc-32a4-ba9d-27e09d43b70f",
        "link": "Quod ex ex quasi odit nemo.",
        "is_active": "1",
        "start_at": "2019-07-29T23:59:59-03:00",
        "end_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/on-sales

Permission required

on-sales.create

Parameters

Parameter Type Validation Description
phrase string required|string|max:500
offer_id string required|string|max:191
link string required|string|max:191
is_active boolean boolean Default true
start_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date
end_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Export on sales

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/on-sales/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/on-sales/export

Permission required

on-sales.export

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
orderBy string string Default: id:asc.
Available fields: id phrase created_at updated_at
search string string Search in the fields: uuid phrase slug
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/admin/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/admin/on-sales/{onsale}

Permission required

offers.show

Edit on sale

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/on-sales/update/{onsale}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "phrase": "Aut aspernatur sint incidunt et.",
        "offer_id": "3458d406-ad98-3d05-8f34-2bbc1eb17c8c",
        "link": "Libero praesentium occaecati aut ea et rem dolores quae.",
        "is_active": "0",
        "start_at": "2019-07-29T23:59:59-03:00",
        "end_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/on-sales/update/{onsale}

Permission required

on-sales.edit

Parameters

Parameter Type Validation Description
phrase string nullable|string|max:500
offer_id string nullable|string|max:191
link string nullable|string|max:191
is_active boolean boolean Default true
start_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date
end_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Remove Offer

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/on-sales/{onsale}",
    "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/admin/on-sales/{onsale}

Permission required

on-sales.delete

OnBoarding

Get all onboardings

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/onboarding

Permission required

onboarding.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 frase frase2 created_at
search string string Search in the fields: frase frase2

Create onboarding

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/onboarding",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "frase": "Tenetur ex consequuntur qui impedit.",
        "frase2": "Voluptatibus sed et cum accusantium in in.",
        "ordem": "1",
        "is_active": "1",
        "file": "{file}"
}
})
.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/admin/onboarding

Permission required

onboarding.create

Parameters

Parameter Type Validation Description
frase string required|string|max:191
frase2 string string|max:191
ordem integer integer
is_active boolean boolean Default true
file file mimes:jpg,jpeg,png,mp4,gif,avi,mov,webm,mpg,ogg,mkv,flv|max:8mb

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/onboarding/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/onboarding/additional-information

Get onboarding

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/onboarding/{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/admin/onboarding/{onboarding}

Permission required

onboarding.show

Update onboarding

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/onboarding/{onboarding}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "frase": "Voluptatem nemo non veniam doloremque tenetur repellat sunt.",
        "frase2": "Voluptas labore rerum consequatur deserunt.",
        "ordem": "1",
        "is_active": "0",
        "file": "{file}"
}
})
.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/admin/onboarding/{onboarding}

Permission required

onboarding.edit

Parameters

Parameter Type Validation Description
frase string nullable|string|max:191
frase2 string nullable|string|max:191
ordem integer nullable|integer
is_active boolean nullable|boolean Default true
file file mimes:jpg,jpeg,png,mp4,gif,avi,mov,webm,mpg,ogg,mkv,flv|max:8mb

Remove onboarding

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/onboarding/{onboarding}",
    "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/admin/onboarding/{onboarding}

Permission required

onboarding.delete

Export onboarding

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/onboarding/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/onboarding/export

Permission required

onboarding.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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

Perfis

Get all perfil

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis",
    "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/admin/perfis

Permission required

perfis.list

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 name order created_at updated_at
search string string Search in the fields: uuid name

active/deactive perfil

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/active-deactive/{perfis}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "b622a49e-b783-3f6f-ae1f-519b30933e6a",
        "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/admin/perfis/active-deactive/{perfis}

Permission required

perfis.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Autocomplete perfis

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/autocomplete",
    "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/admin/perfis/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create perfis

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Est quia doloribus recusandae aut atque.",
        "icon": "{file}",
        "order": 9,
        "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/admin/perfis

Permission required

perfis.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
icon file nullable|mimes:jpg,jpeg,png|max:4mb
order integer required|integer
is_active boolean boolean Default true

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/perfis/additional-information

Export perfis

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/perfis/export

Permission required

perfis.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 perfil

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/{perfis}",
    "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/admin/perfis/{perfis}

Permission required

perfis.show

Update perfil

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/update/{perfis}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Aut illum pariatur placeat.",
        "icon_delete": "4860fada-eb26-384c-a1b8-9f735f3562b9",
        "icon": "{file}",
        "order": 9,
        "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/admin/perfis/update/{perfis}

Permission required

perfis.edit

Parameters

Parameter Type Validation Description
name string sometimes|nullable|string|max:191
icon_delete string required|string|max:191
icon file nullable|mimes:jpg,jpeg,png|max:4mb
order integer sometimes|nullable|integer
is_active boolean sometimes|nullable|boolean

Remove perfil

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/perfis/{perfis}",
    "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/admin/perfis/{perfis}

Permission required

perfis.delete

Permissions

Autocomplete permissions

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/permissions/autocomplete",
    "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/admin/permissions/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id key name group order created_at updated_at
search string string Search in the fields: uuid key name group

Policy Cookies

Get privacy policy

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/policy-cookies",
    "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/admin/policy-cookies

Permission required

privacy-policy.edit

Update privacy policy

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/policy-cookies",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Aut quibusdam accusamus unde libero accusamus provident aut.",
        "text": "Deserunt dolorem cum et nulla et et vel. Fugiat aut ut eius quam. Non mollitia deserunt facere quos voluptatem. Distinctio quaerat veritatis exercitationem magnam consequuntur."
}
})
.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/admin/policy-cookies

Permission required

privacy-policy.edit

Parameters

Parameter Type Validation Description
name string string|max:191
text string nullable|string|max:60000 HTML allowed

Privacy Policy

Get privacy policy

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/privacy-policy",
    "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/admin/privacy-policy

Permission required

privacy-policy.edit

Update privacy policy

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/privacy-policy",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Omnis magni et eum natus aut.",
        "text": "Et porro et quia ut. Similique omnis minima fugiat adipisci laudantium exercitationem ea. Et omnis et dolorem quo id. Excepturi ut est aliquid exercitationem dolor."
}
})
.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/admin/privacy-policy

Permission required

privacy-policy.edit

Parameters

Parameter Type Validation Description
name string string|max:191
text string nullable|string|max:60000 HTML allowed

Push City

Get all push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-city",
    "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/admin/push-city

Permission required

push-city.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 title body scheduled_at send_at created_at city.name
search string string Search in the fields: uuid title body city.name
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

Create push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-city",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "city_id": "2",
        "title": "Possimus qui consequatur accusantium.",
        "body": "Autem dignissimos et sunt iusto earum. Quae voluptates ut maxime velit autem quis dolor ea.",
        "url": "https:\/\/abreu.net.br\/aspernatur-nobis-non-eveniet.html",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-city

Permission required

push-city.create

Parameters

Parameter Type Validation Description
city_id integer required|integer City relationship
title string required|string|max:50
body string required|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Update push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-city/{push}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "uuid",
        "city_id": "2",
        "title": "Repellat et sit corporis nemo aliquam qui.",
        "body": "Porro totam eos veritatis quam. Fugit reiciendis sed excepturi.",
        "url": "http:\/\/gomes.org\/",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-city/{push}

Permission required

push-city.edit

Parameters

Parameter Type Validation Description
uuid integer required|string
city_id integer nullable|integer City relationship
title string nullable|string|max:50
body string nullable|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Export push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-city/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/push-city/export

Permission required

push-city.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id title body scheduled_at send_at created_at city.name
search string string Search in the fields: uuid title body city.name
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 push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-city/{push}",
    "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/admin/push-city/{push}

Permission required

push-city.show

Remove push

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-city/{push}",
    "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/admin/push-city/{push}

Permission required

push-city.delete

Push General

Get all push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-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/admin/push-general

Permission required

push-general.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 title body scheduled_at send_at created_at
search string string Search in the fields: uuid title body
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

Create push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-general",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "title": "Et consequuntur natus voluptas.",
        "body": "Eum ab quis officia perspiciatis soluta non. Quis eligendi nihil dolore eos voluptatem.",
        "url": "http:\/\/www.duarte.com\/quidem-totam-ut-soluta-ducimus-ut-dolor",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-general

Permission required

push-general.create

Parameters

Parameter Type Validation Description
title string required|string|max:50
body string required|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Update push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-general/{push}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "uuid",
        "title": "Perspiciatis optio ea eius fuga sit.",
        "body": "Suscipit maxime itaque distinctio quia voluptatem labore. Laboriosam error pariatur omnis sequi.",
        "url": "http:\/\/www.santana.net.br\/omnis-perspiciatis-quaerat-magni-quas-est.html",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-general/{push}

Permission required

push-general.edit

Parameters

Parameter Type Validation Description
uuid integer required|string
title string nullable|string|max:50
body string nullable|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Export push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-general/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/push-general/export

Permission required

push-general.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id title body scheduled_at send_at created_at
search string string Search in the fields: uuid title body
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 push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-general/{push}",
    "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/admin/push-general/{push}

Permission required

push-general.show

Remove push

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-general/{push}",
    "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/admin/push-general/{push}

Permission required

push-general.delete

Push State

Get all push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-state",
    "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/admin/push-state

Permission required

push-state.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 title body scheduled_at send_at created_at state.name
search string string Search in the fields: uuid title body state.name
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

Create push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-state",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "state_id": "2",
        "title": "Et quidem fuga porro eos sunt.",
        "body": "Sit illo esse rerum voluptatem. Fugit exercitationem dolores quasi quae deleniti qui.",
        "url": "http:\/\/www.aguiar.com.br\/",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-state

Permission required

push-state.create

Parameters

Parameter Type Validation Description
state_id integer required|integer State relationship
title string required|string|max:50
body string required|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Update push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-state/{push}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "uuid",
        "state_id": "2",
        "title": "Reiciendis odit harum dicta voluptatem quae.",
        "body": "Voluptas et distinctio perferendis. Voluptate voluptatem quia quas.",
        "url": "http:\/\/www.velasques.net\/debitis-est-consequuntur-recusandae.html",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-state/{push}

Permission required

push-state.edit

Parameters

Parameter Type Validation Description
uuid integer required|string
state_id integer nullable|integer State relationship
title string nullable|string|max:50
body string nullable|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Export push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-state/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/push-state/export

Permission required

push-state.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id title body scheduled_at send_at created_at state.name
search string string Search in the fields: uuid title body state.name
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 push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-state/{push}",
    "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/admin/push-state/{push}

Permission required

push-state.show

Remove push

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-state/{push}",
    "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/admin/push-state/{push}

Permission required

push-state.delete

Push User

Get all push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-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/admin/push-user

Permission required

push-user.list

Query Parameters

Parameter Type Validation Description
limit integer integer Default: 20 Max: 100
page integer integer
user_id string uuid Customer user relationship
orderBy string string Default: id:asc.
Available fields: id title body scheduled_at send_at created_at user.name
search string string Search in the fields: uuid title body user.name
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

Create push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-user",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "user_id": "4faa88d7-0996-3ea8-9137-781f46cb24b8",
        "title": "Atque veritatis soluta ut non.",
        "body": "Necessitatibus quibusdam placeat soluta rerum cum. Distinctio qui aperiam aut et consectetur.",
        "url": "http:\/\/www.colaco.com\/",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-user

Permission required

push-user.create

Parameters

Parameter Type Validation Description
user_id integer required|uuid Customer user relationship
title string required|string|max:50
body string required|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Update push

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-user/{push}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "uuid",
        "user_id": "84c715e8-d4df-3df5-9043-257adf34d4ba",
        "title": "In eaque cupiditate consequatur ullam et.",
        "body": "Error commodi ea eius. Cupiditate sint dolorem ducimus. Autem vitae voluptate praesentium corrupti.",
        "url": "http:\/\/www.dominato.net.br\/",
        "scheduled_at": "2019-07-29T23:59:59-03:00"
}
})
.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/admin/push-user/{push}

Permission required

push-user.edit

Parameters

Parameter Type Validation Description
uuid integer required|string
user_id integer nullable|uuid Customer user relationship
title string nullable|string|max:50
body string nullable|string|max:100
url string nullable|string|max:191
scheduled_at string nullable|string ISO 8601 Y-m-d\TH:i:sP Future date

Export push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-user/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/push-user/export

Permission required

push-user.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id title body scheduled_at send_at created_at user.name
search string string Search in the fields: uuid title body user.name
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 push

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-user/{push}",
    "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/admin/push-user/{push}

Permission required

push-user.show

Remove push

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/push-user/{push}",
    "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/admin/push-user/{push}

Permission required

push-user.delete

Reports

Get all reports error

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/error",
    "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/admin/reports/error

Permission required

reports-error.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 is_active created_at updated_at
search string string Search in the fields: uuid title name
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

Export report error

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/error/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/reports/error/export

Permission required

reports-error.export

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 is_active created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1
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 report error

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/error/{reportError}",
    "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/admin/reports/error/{reportError}

Permission required

reports-error.show

Remove report error

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/error/{reportError}",
    "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/admin/reports/error/{reportError}

Permission required

reports-error.delete

Get all reports finish

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/finish",
    "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/admin/reports/finish

Permission required

reports-finish.list

Query Parameters

Parameter Type Validation Description
limit integer integer Default: 20 Max: 100
page integer integer
perfil_id string string|max:191
category_id string string|max:191
is_active integer integer Available values: 0 1
under_review integer integer Available values: 0 1
is_internacional integer integer Available values: 0 1
store_id string string|max:191
orderBy string string Default: id:asc.
Available fields: id title price like shared comments created_at updated_at
search string string Search in the fields: uuid name
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

Export report finish

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/finish/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/reports/finish/export

Permission required

reports-finish.export

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 is_active created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1
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 report offer finish

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/finish/{offer}",
    "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/admin/reports/finish/{offer}

Permission required

reports-finish.show

Remove report offer finish

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/reports/finish/{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/admin/reports/finish/{offer}

Permission required

reports-finish.delete

Rich Text Editor

Upload image

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/rich-text-editor/upload-image",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "upload": "{file}"
}
})
.then(function (response) {
    // handle success
    console.log(response);
})
.catch(function (error) {
    // handle error
    console.log(error);
})
.finally(function () {
    // optional, always executed
});

Example response:

{
    "url": "{url}"
}

HTTP Request

POST api/v1/admin/rich-text-editor/upload-image

Parameters

Parameter Type Validation Description
upload file required|mimes:jpeg,png|max:2mb

Roles

Get all roles

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles",
    "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/admin/roles

Permission required

roles.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 description is_system created_at updated_at permissions_count users_count
search string string Search in the fields: uuid name description
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

Create role

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Manager",
        "description": "Autem itaque quam aut quae distinctio ad. Rerum nihil libero facilis. Ut modi quidem harum nihil.",
        "permissions[0]": "b22133d4-74c3-3fb2-a11c-869eb40a0743"
}
})
.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/admin/roles

Permission required

roles.create

Parameters

Parameter Type Validation Description
name string required|string|max:50
description string required|string|max:100
permissions[] array required|array|min:1
permissions[0] uuid required|uuid

Autocomplete roles

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles/autocomplete",
    "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/admin/roles/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name description is_system created_at updated_at
search string string Search in the fields: uuid name description

Export roles

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/roles/export

Permission required

roles.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name description is_system created_at updated_at permissions_count users_count
search string string Search in the fields: uuid name description
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 role

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles/{role}",
    "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/admin/roles/{role}

Permission required

roles.show

Update role

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles/{role}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Et assumenda delectus atque nostrum.",
        "description": "Sapiente explicabo quae ut voluptatem non. Sit et quis esse optio.",
        "permissions[0]": "3425e307-1221-3872-af14-c4cab7d3b0d0"
}
})
.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/admin/roles/{role}

Permission required

roles.edit

Parameters

Parameter Type Validation Description
name string string|max:50
description string required|string|max:100
permissions[] array array|min:1
permissions[0] uuid required|uuid

Remove role

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/roles/{role}",
    "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/admin/roles/{role}

Permission required

roles.delete

Settings General

Get settings

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/settings/general

Permission required

settings-general.list

Update settings

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/settings/general",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "app_url_android": "https:\/\/play.google.com\/store\/apps\/details?id=com.facebook.katana",
        "app_url_ios": "https:\/\/apps.apple.com\/br\/app\/facebook\/id284882215",
        "whatsapp_group": "Tempore molestias voluptate qui dignissimos.",
        "telegram_group": "Nisi perferendis maiores voluptatum.",
        "show_whatsapp": "1",
        "facebook": "Recusandae delectus a possimus repellat nobis animi nemo.",
        "instagram": "Et at iste quis iure ratione.",
        "telegram": "Omnis aliquid et autem provident dicta earum.",
        "url_site": "Vel sit numquam minus a.",
        "whatsapp_number": "(98) 98796-5624"
}
})
.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/admin/settings/general

Permission required

settings-general.edit

Parameters

Parameter Type Validation Description
app_url_android string nullable|string|url
app_url_ios string nullable|string|url
whatsapp_group string nullable|string|url
telegram_group string nullable|string|url
show_whatsapp string nullable|boolean
facebook string nullable|string|url
instagram string nullable|string|url
telegram string nullable|string|url
url_site string nullable|string|url
whatsapp_number integer required|string|phone Format (99) 9999-9999 OR (99) 99999-9999

Settings Notifications

Get settings

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/settings/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/admin/settings/notifications

Permission required

settings-notifications.list

Update settings

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/settings/notifications",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "delete_account[0]": "bruna18@example.org",
        "create_account[0]": "nathalia33@example.com",
        "denunciation_comment[0]": "miranda13@example.com",
        "offer_error[0]": "augusto59@example.com",
        "offer_finish[0]": "iabreu@example.net"
}
})
.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/admin/settings/notifications

Permission required

settings-notifications.edit

Parameters

Parameter Type Validation Description
delete_account[] array array|min:1
delete_account[0] string required|email
create_account[] array array|min:1
create_account[0] string required|email
denunciation_comment[] array array|min:1
denunciation_comment[0] string required|email
offer_error[] array array|min:1
offer_error[0] string required|email
offer_finish[] array array|min:1
offer_finish[0] string required|email

Stores

Get all stores

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/stores

Permission required

stores.list

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 name order created_at updated_at
search string string Search in the fields: uuid name

Autocomplete stores

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores/autocomplete",
    "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/admin/stores/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create stores

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Temporibus omnis suscipit quidem et commodi velit ducimus.",
        "image": "{file}",
        "order": 1,
        "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/admin/stores

Permission required

stores.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
image file nullable|mimes:jpg,jpeg,png|max:4mb
order integer required|integer
is_active boolean boolean Default true

Get additional information

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/stores/additional-information

Export stores

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/stores/export

Permission required

stores.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 store

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores/{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/admin/stores/{stores}

Permission required

stores.show

Update perfil

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores/update/{stores}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Dicta perspiciatis a eligendi harum sit cupiditate.",
        "image": "{file}",
        "order": 4,
        "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/admin/stores/update/{stores}

Permission required

stores.edit

Parameters

Parameter Type Validation Description
name string sometimes|nullable|string|max:191
image file nullable|mimes:jpg,jpeg,png|max:4mb
order integer sometimes|nullable|integer
is_active boolean sometimes|nullable|boolean

Remove store

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores/{stores}",
    "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/admin/stores/{stores}

Permission required

stores.delete

Get all stores deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores-deleted",
    "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/admin/stores-deleted

Permission required

stores-deleted.list

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 name order created_at updated_at
search string string Search in the fields: uuid name

Export stores deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores-deleted/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/stores-deleted/export

Permission required

stores-deleted.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 store deleted

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stores-deleted/{uuid}",
    "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/admin/stores-deleted/{uuid}

Permission required

stores-deleted.show

Stories

Get all stories

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/stories

Permission required

story.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 phrase order active
search string string Search in the fields: phrase
is_active integer integer Available values: 0 1
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

Create story

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stories",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "phrase": "Explicabo nostrum exercitationem aut veniam.",
        "groups_stories_id": "5174623a-e702-319c-8205-c749105024b2",
        "midia": "{file}",
        "order": 5,
        "link": "Est autem ea eos repudiandae et quo porro.",
        "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/admin/stories

Permission required

story.create

Parameters

Parameter Type Validation Description
phrase string required|string|max:191
groups_stories_id string required|string|max:191
midia file required|file|mimes:png,jpg,jpeg,gif,flv,mp4,m3u8,ts,3gp,mov,avi,wmv,video/x-flv,video/mp4,application/x-mpegURL,video/MP2T,video/3gpp,video/quicktime,video/x-msvideo,video/x-ms-wmv
order integer nullable|integer
link string nullable|string|max:191
is_active boolean nullable|boolean

Get additional information.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stories/additional-information",
    "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:

{
    "next_order": 5
}

HTTP Request

GET api/v1/admin/stories/additional-information

get story

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/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/admin/stories/{story}

Permission required

story.show

Update story

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stories/{story}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "multipart/form-data",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "phrase": "Occaecati sit rerum ipsa voluptas vero adipisci ut.",
        "groups_stories_id": "46d51bb0-91c7-3d8d-b86e-75dcecfca9f1",
        "midia": "{file}",
        "order": 2,
        "link": "Dolorum sit in corrupti et.",
        "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/admin/stories/{story}

Permission required

story.edit

Parameters

Parameter Type Validation Description
phrase string sometimes|nullable|string|max:191
groups_stories_id string required|string|max:191
midia file sometimes|nullable|file|mimes:png,jpg,jpeg,gif,flv,mp4,m3u8,ts,3gp,mov,avi,wmv,video/x-flv,video/mp4,application/x-mpegURL,video/MP2T,video/3gpp,video/quicktime,video/x-msvideo,video/x-ms-wmv
order integer nullable|integer
link string nullable|string|max:191
is_active boolean sometimes|nullable|boolean

Delete story

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stories/{story}",
    "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/admin/stories/{story}

Permission required

story.delete

Export onboarding

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/stories/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/stories/export

Permission required

onboarding.export

Query Parameters

Parameter Type Validation Description
date_start string static(2019-07-29T00:00:00-03:00) 8601 Y-m-d\TH:i:sP
date_end string static(2019-07-29T23:59:59-03:00) 8601 Y-m-d\TH:i:sP

System Log

Get all logs

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/system-log",
    "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/admin/system-log

Permission required

system-log.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 message url created_at
search string string Search in the fields: uuid message url
level string string Available values: ALERT CRITICAL DEBUG EMERGENCY ERROR INFO NOTICE WARNING
method string string Available values: DELETE GET POST
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

Export logs

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/system-log/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/system-log/export

Permission required

system-log.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id message url created_at
search string string Search in the fields: uuid message url
level string string Available values: ALERT CRITICAL DEBUG EMERGENCY ERROR INFO NOTICE WARNING
method string string Available values: DELETE GET POST
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 log

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/system-log/{log}",
    "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/admin/system-log/{log}

Permission required

system-log.show

Tags

Get all tag

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags",
    "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/admin/tags

Permission required

tags.list

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 name order created_at updated_at
search string string Search in the fields: uuid name

active/deactive tag

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags/active-deactive/{tags}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "uuid": "5426fa68-9859-3501-8bd2-06e93cf8e3df",
        "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/admin/tags/active-deactive/{tags}

Permission required

tags.edit

Parameters

Parameter Type Validation Description
uuid string string
is_active boolean boolean

Autocomplete Tags

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags/autocomplete",
    "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/admin/tags/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Create Tags

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Amet quo enim aliquam harum voluptatum ut.",
        "color": "Totam sapiente velit consequatur in explicabo error.",
        "background_color": "Amet voluptates ab impedit voluptates.",
        "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/admin/tags

Permission required

tags.create

Parameters

Parameter Type Validation Description
name string required|string|max:191
color string sometimes|nullable|string|max:191
background_color string sometimes|nullable|string|max:191
is_active boolean boolean Default true

Export Tags

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/tags/export

Permission required

tags.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name order is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 tag

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags/{tags}",
    "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/admin/tags/{tags}

Permission required

tags.show

Update tag

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags/update/{tags}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Et officia veniam molestias corporis.",
        "color": "Eum nesciunt ipsa ut rem dolor ut a.",
        "background_color": "Officia incidunt placeat molestiae dolorem.",
        "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/admin/tags/update/{tags}

Permission required

tags.edit

Parameters

Parameter Type Validation Description
name string sometimes|nullable|string|max:191
color string sometimes|nullable|string|max:191
background_color string sometimes|nullable|string|max:191
is_active boolean sometimes|nullable|boolean

Remove tag

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/tags/{tags}",
    "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/admin/tags/{tags}

Permission required

tags.delete

Terms Of Use

Get terms of use

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/terms-of-use",
    "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/admin/terms-of-use

Permission required

terms-of-use.edit

Update terms of use

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/terms-of-use",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "name": "Quis nihil quo cumque et atque ipsa fugiat voluptas.",
        "text": "Est reprehenderit dolorum delectus nihil voluptatem ut corrupti laborum. Dolore amet molestias delectus omnis id. Impedit quidem hic velit. Recusandae enim velit enim."
}
})
.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/admin/terms-of-use

Permission required

terms-of-use.edit

Parameters

Parameter Type Validation Description
name string string|max:191
text string nullable|string|max:60000 HTML allowed

Users

Get all users

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users",
    "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/admin/users

Permission required

users.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 email avatar is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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

Create user

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "avatar": "{file}",
        "name": "Emily Salas Sales",
        "password_random": "1",
        "password": "123456",
        "password_confirmation": "123456",
        "email": "joaquin.leal@example.com",
        "is_active": "0",
        "roles[0]": "ed2bd71d-7d09-3368-960e-e08995c845a3"
}
})
.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/admin/users

Permission required

users.create

Parameters

Parameter Type Validation Description
avatar string nullable|mimes:jpeg,png|max:4000
name string required|string|max:50
password_random boolean required|boolean
password string required_if:password_random,0|string|min:6
password_confirmation string required_if:password_random,0|string|min:6 Must contain the same value as password
email string required|string|email|max:100
is_active boolean boolean Default true
roles[] array array|min:1
roles[0] uuid required|uuid

Autocomplete users

List a maximum of 50 items.

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users/autocomplete",
    "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/admin/users/autocomplete

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name created_at updated_at
search string string Search in the fields: uuid name
is_active integer integer Available values: 0 1

Export users

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users/export",
    "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:

{
    "file_url": "{url}"
}

HTTP Request

GET api/v1/admin/users/export

Permission required

users.export

Query Parameters

Parameter Type Validation Description
orderBy string string Default: id:asc.
Available fields: id name email avatar is_active created_at updated_at
search string string Search in the fields: uuid name email
is_active integer integer Available values: 0 1
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 user

Example request:

const axios = require('axios');

axios({
    "method": "get",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users/{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/admin/users/{user}

Permission required

users.show

Update user

Example request:

const axios = require('axios');

axios({
    "method": "post",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users/{user}",
    "headers": {
        "Authorization": "Bearer {access_token}",
        "Content-Type": "application/x-www-form-urlencoded",
        "Accept": "application/json",
        "Language": "{language}"
    },
    "data": {
        "is_active": "0",
        "roles[0]": "3af45d3c-5147-3ec1-80e8-d42f20d556da"
}
})
.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/admin/users/{user}

Permission required

users.edit

Parameters

Parameter Type Validation Description
is_active boolean boolean
roles[] array array|min:1
roles[0] uuid required|uuid

Remove user

Example request:

const axios = require('axios');

axios({
    "method": "delete",
    "url": "https://homologacao.clickweb.com.br:8445/api/v1/admin/users/{user}",
    "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/admin/users/{user}

Permission required

users.delete

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/admin/webservice/cities",
    "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/admin/webservice/cities

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/admin/webservice/states",
    "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/admin/webservice/states

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/admin/webservice/zipcode/{zipcode}",
    "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/admin/webservice/zipcode/{zipcode}