NAV
bash javascript php

Info

Welcome to the generated API reference. Get Postman Collection

Filial

Create


Requires authentication

Example request:

curl -X POST \
    "http://api.pontorapido.com.br/api/filial" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==" \
    -d '{"empresa_id":"10","nome":"Filial Demo","cnpj":"12345678910","horario_id":"est"}'
const url = new URL(
    "http://api.pontorapido.com.br/api/filial"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

let body = {
    "empresa_id": "10",
    "nome": "Filial Demo",
    "cnpj": "12345678910",
    "horario_id": "est"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.pontorapido.com.br/api/filial',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
        'json' => [
            'empresa_id' => '10',
            'nome' => 'Filial Demo',
            'cnpj' => '12345678910',
            'horario_id' => 'est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{
    "empresa_id": "10",
    "nome": "Filial Demo",
    "cnpj": "12345678910",
    "horario_id": null,
    "id": 258
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

POST /api/filial

Body Parameters

Parameter Type Status Description
empresa_id Integer required ID da empresa a qual a Filial irá pertencer.
nome String required Nome da Filial.
cnpj String required Cnpj da Filial.
horario_id Integer optional Caso exista algum horário já cadastrado.

Update


Requires authentication

Example request:

curl -X PUT \
    "http://api.pontorapido.com.br/api/filial/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==" \
    -d '{"empresa_id":"10","nome":"Filial Demo Atualizado","cnpj":"12345678910","horario_id":"doloribus"}'
const url = new URL(
    "http://api.pontorapido.com.br/api/filial/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

let body = {
    "empresa_id": "10",
    "nome": "Filial Demo Atualizado",
    "cnpj": "12345678910",
    "horario_id": "doloribus"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.pontorapido.com.br/api/filial/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
        'json' => [
            'empresa_id' => '10',
            'nome' => 'Filial Demo Atualizado',
            'cnpj' => '12345678910',
            'horario_id' => 'doloribus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{
    "id": 258,
    "empresa_id": "10",
    "nome": "Filial Demo Atualizado",
    "cnpj": "12345678910",
    "horario_id": null
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

PUT /api/filial/{id}

Body Parameters

Parameter Type Status Description
empresa_id Integer required ID da empresa a qual a Filial irá pertencer.
nome String required Nome da Filial.
cnpj String required Cnpj da Filial.
horario_id Integer optional Caso exista algum horário já cadastrado.

Delete


Requires authentication

Example request:

curl -X DELETE \
    "http://api.pontorapido.com.br/api/filial/257" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/filial/257"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.pontorapido.com.br/api/filial/257',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

DELETE /api/filial/{id}

URL Parameters

Parameter Status Description
id required ID da Filial a ser excluída.

List


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/filial" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/filial"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/filial',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 210,
        "empresa_id": 9,
        "nome": "Empresa 1",
        "cnpj": "84957382948576",
        "horario_id": 2
    },
    {
        "id": 110,
        "empresa_id": 9,
        "nome": "Empresa 2",
        "cnpj": "09437865487965",
        "horario_id": 2
    },
    {
        "id": 258,
        "empresa_id": "10",
        "nome": "Filial Demo",
        "cnpj": "12345678910",
        "horario_id": null
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/filial

Get


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/filial/258" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/filial/258"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/filial/258',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "id": 258,
    "empresa_id": 10,
    "nome": "Filial Demo Atualizado",
    "cnpj": "12345678910",
    "horario_id": null
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/filial/{id}

URL Parameters

Parameter Status Description
id required ID da Filial.

Pessoa

Create


Requires authentication

Example request:

curl -X POST \
    "http://api.pontorapido.com.br/api/pessoa" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==" \
    -d '{"matricula":"999","nome":"Pessoa Demo","email":"pessoa@demo.com.br","senha":"$2y$10$OjaJKffYckg3C\/BVtVfXWe3Uha.ovV1kJ0u3Az1WkkurXPBbrnBoS","filial_id":"qui","cpf":"33355566644","pis":"66699554265","horario_id":"ipsa","situacao_pessoa_id":"1","tipo_registro_id":"1","permissao_id":"necessitatibus"}'
const url = new URL(
    "http://api.pontorapido.com.br/api/pessoa"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

let body = {
    "matricula": "999",
    "nome": "Pessoa Demo",
    "email": "pessoa@demo.com.br",
    "senha": "$2y$10$OjaJKffYckg3C\/BVtVfXWe3Uha.ovV1kJ0u3Az1WkkurXPBbrnBoS",
    "filial_id": "qui",
    "cpf": "33355566644",
    "pis": "66699554265",
    "horario_id": "ipsa",
    "situacao_pessoa_id": "1",
    "tipo_registro_id": "1",
    "permissao_id": "necessitatibus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.pontorapido.com.br/api/pessoa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
        'json' => [
            'matricula' => '999',
            'nome' => 'Pessoa Demo',
            'email' => 'pessoa@demo.com.br',
            'senha' => '$2y$10$OjaJKffYckg3C/BVtVfXWe3Uha.ovV1kJ0u3Az1WkkurXPBbrnBoS',
            'filial_id' => 'qui',
            'cpf' => '33355566644',
            'pis' => '66699554265',
            'horario_id' => 'ipsa',
            'situacao_pessoa_id' => '1',
            'tipo_registro_id' => '1',
            'permissao_id' => 'necessitatibus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{
    "matricula": "999",
    "email": "pessoa@demo.com.br",
    "filial_id": null,
    "cpf": "33355566644",
    "pis": "66699554265",
    "horario_id": null,
    "tipo_registro_id": 1,
    "name": "Pessoa Demo",
    "estado_pessoa_id": 1,
    "role_id": null,
    "id": 32687
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

POST /api/pessoa

Body Parameters

Parameter Type Status Description
matricula String required Matrícula da pessoa.
nome String required Nome da pessoa.
email String required Email da pessoa.
senha String required Senha da pessoa.
filial_id String optional Id da filial a qual a pessoa irá pertencer.
cpf String required CPF da pessoa.
pis String required PIS da pessoa.
horario_id Integer optional Caso exista algum horário já cadastrado.
situacao_pessoa_id Integer optional Situação do funcionário(Normal, Afastado, Férias).
tipo_registro_id Integer optional Tipo de relógio ponto(Usa somente relógio ponto, Usa ambos, Não usa, Usa somente mobile).
permissao_id Integer optional Permissões(Normal, Admin, Gestor, Usuário)

Update


Requires authentication

Example request:

curl -X PUT \
    "http://api.pontorapido.com.br/api/pessoa/32687" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==" \
    -d '{"matricula":"999","nome":"Pessoa Demo Atualizado","email":"pessoa@demo.com.br","senha":"$2y$10$OjaJKffYckg3C\/BVtVfXWe3Uha.ovV1kJ0u3Az1WkkurXPBbrnBoS","filial_id":"laudantium","cpf":"33355566644","pis":"66699554265","horario_id":"eaque","situacao_pessoa_id":"1","tipo_registro_id":"1","permissao_id":"maxime"}'
const url = new URL(
    "http://api.pontorapido.com.br/api/pessoa/32687"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

let body = {
    "matricula": "999",
    "nome": "Pessoa Demo Atualizado",
    "email": "pessoa@demo.com.br",
    "senha": "$2y$10$OjaJKffYckg3C\/BVtVfXWe3Uha.ovV1kJ0u3Az1WkkurXPBbrnBoS",
    "filial_id": "laudantium",
    "cpf": "33355566644",
    "pis": "66699554265",
    "horario_id": "eaque",
    "situacao_pessoa_id": "1",
    "tipo_registro_id": "1",
    "permissao_id": "maxime"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'http://api.pontorapido.com.br/api/pessoa/32687',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
        'json' => [
            'matricula' => '999',
            'nome' => 'Pessoa Demo Atualizado',
            'email' => 'pessoa@demo.com.br',
            'senha' => '$2y$10$OjaJKffYckg3C/BVtVfXWe3Uha.ovV1kJ0u3Az1WkkurXPBbrnBoS',
            'filial_id' => 'laudantium',
            'cpf' => '33355566644',
            'pis' => '66699554265',
            'horario_id' => 'eaque',
            'situacao_pessoa_id' => '1',
            'tipo_registro_id' => '1',
            'permissao_id' => 'maxime',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{
    "id": 32687,
    "name": "Pessoa Demo Atualizado",
    "email": "pessoa@demo.com.br",
    "avatar": "users\/default.png",
    "role_id": null,
    "matricula": "999",
    "filial_id": "258",
    "cpf": "33355566644",
    "pis": "66699554265",
    "ativo": true,
    "tipo_registro_id": "1",
    "horario_id": null,
    "estado_pessoa_id": "1",
    "api_token": null,
    "matricula_afd": "000000999"
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

PUT /api/pessoa/{id}

URL Parameters

Parameter Status Description
id optional Integer required ID da Pessoa.

Body Parameters

Parameter Type Status Description
matricula String required Matrícula da pessoa.
nome String required Nome da pessoa.
email String required Email da pessoa.
senha String required Senha da pessoa.
filial_id String optional Id da filial a qual a pessoa irá pertencer. Example 258
cpf String optional CPF da pessoa.
pis String optional PIS da pessoa.
horario_id Integer optional Caso exista algum horário já cadastrado.
situacao_pessoa_id Integer optional Situação do funcionário(Normal, Afastado, Férias).
tipo_registro_id Integer optional Tipo de relógio ponto(Usa somente relógio ponto, Usa ambos, Não usa, Usa somente mobile).
permissao_id Integer optional Permissões(Normal, Admin, Gestor, Usuário)

Delete


Requires authentication

Example request:

curl -X DELETE \
    "http://api.pontorapido.com.br/api/pessoa/32687" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/pessoa/32687"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'http://api.pontorapido.com.br/api/pessoa/32687',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

DELETE /api/pessoa/{id}

URL Parameters

Parameter Status Description
id required ID da Pessoa a ser excluída.

List


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/pessoa" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/pessoa"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/pessoa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 30548,
        "name": "João da Silva",
        "email": "joao@silva.com.br",
        "avatar": "users\/default.png",
        "role_id": null,
        "matricula": "50",
        "filial_id": 110,
        "cpf": "69455521366",
        "pis": "1",
        "ativo": false,
        "tipo_registro_id": 3,
        "horario_id": 2,
        "estado_pessoa_id": 1,
        "api_token": "MWJXMDVSMFNjbDASD2NPZzRTdnRqWGRYZGM3eLLLcUg4cFM1M1BVTg==",
        "matricula_afd": "000000050"
    },
    {
        "id": 32687,
        "name": "Pessoa Demo Atualizado",
        "email": "pessoa@demo.com.br",
        "avatar": "users\/default.png",
        "role_id": null,
        "matricula": "999",
        "filial_id": 110,
        "cpf": "33355566644",
        "pis": "66699554265",
        "ativo": true,
        "tipo_registro_id": 3,
        "horario_id": 2,
        "estado_pessoa_id": 1,
        "api_token": "aWUwRTV0QjH8MFJvS1BSdnFLMGI7cXVSYmV4WkFyYUJxajBRV01wWQ==",
        "matricula_afd": "000000999"
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/pessoa

Get


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/pessoa/32687" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/pessoa/32687"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/pessoa/32687',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "id": 32687,
    "name": "Pessoa Demo Atualizado",
    "email": "pessoa@demo.com.br",
    "avatar": "users\/default.png",
    "role_id": null,
    "matricula": "999",
    "filial_id": 258,
    "cpf": "33355566644",
    "pis": "66699554265",
    "ativo": true,
    "tipo_registro_id": 1,
    "horario_id": null,
    "estado_pessoa_id": 1,
    "api_token": null,
    "matricula_afd": "000000999"
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/pessoa/{id}

URL Parameters

Parameter Status Description
id required ID da Pessoa.

Registro

Create


Requires authentication

Example request:

curl -X POST \
    "http://api.pontorapido.com.br/api/registro" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==" \
    -d '{"pessoa_id":"32687","data_hora":"\"2020-12-18 08:00:00\"","data_hora_aparelho":"\"2020-12-18 08:00:00\"","registro_manual":"false"}'
const url = new URL(
    "http://api.pontorapido.com.br/api/registro"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

let body = {
    "pessoa_id": "32687",
    "data_hora": "\"2020-12-18 08:00:00\"",
    "data_hora_aparelho": "\"2020-12-18 08:00:00\"",
    "registro_manual": "false"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.pontorapido.com.br/api/registro',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
        'json' => [
            'pessoa_id' => '32687',
            'data_hora' => '"2020-12-18 08:00:00"',
            'data_hora_aparelho' => '"2020-12-18 08:00:00"',
            'registro_manual' => 'false',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{
    "user_id": "32687",
    "data_hora_registro": "2020-12-18 08:00:00",
    "data_hora_registro_aparelho": "2020-12-18 08:00:00",
    "alteracao_manual": false,
    "data_hora_obtida_por_gps": false,
    "estado_pessoa_id": 1,
    "id": 109056
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

POST /api/registro

Body Parameters

Parameter Type Status Description
pessoa_id Integer required Id da pessoa que está registrando o ponto.
data_hora Timestamp required Data e hora do registro.
data_hora_aparelho Timestamp required Data e hora obtida do aparelho que registrou o ponto.
registro_manual Boolean optional Define se o registro foi feito por uma lançamento manual ou automático.

Get


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/registro/109056" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/registro/109056"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/registro/109056',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (201):

{
    "id": 109056,
    "user_id": 32687,
    "data_hora_registro": "2020-12-18 08:00:00",
    "latitude": null,
    "longitude": null,
    "foto": null,
    "valor_auxiliar": null,
    "aparelho_id": 569,
    "alteracao_manual": false,
    "unique_id": "MOBILE569305121606313148250",
    "alteracao_user_id": null,
    "justificativa": null,
    "assinatura": null,
    "cerco_id": null,
    "data_hora_obtida_por_gps": false,
    "data_hora_registro_aparelho": "2020-12-18 08:00:00",
    "estado_pessoa_id": 1,
    "data_referencia": "2020-12-18",
    "tipo_marcacao": 0,
    "old_alteracao_manual": false,
    "data_hora_original": null,
    "data_hora_margem": null,
    "desconsiderado": false
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/registro/{id}

URL Parameters

Parameter Status Description
id required ID do Registro.

Registro Pessoa


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/registro/pessoa/32687" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/registro/pessoa/32687"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/registro/pessoa/32687',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 109056,
        "user_id": 32687,
        "data_hora_registro": "2020-12-18 08:00:00",
        "latitude": null,
        "longitude": null,
        "foto": null,
        "valor_auxiliar": null,
        "aparelho_id": 569,
        "alteracao_manual": false,
        "unique_id": "MOBILE569305121606313148250",
        "alteracao_user_id": null,
        "justificativa": null,
        "assinatura": null,
        "cerco_id": null,
        "data_hora_obtida_por_gps": false,
        "data_hora_registro_aparelho": "2020-12-18 08:00:00",
        "estado_pessoa_id": 1,
        "data_referencia": "2020-12-18",
        "tipo_marcacao": 0,
        "old_alteracao_manual": false,
        "data_hora_original": null,
        "data_hora_margem": null,
        "desconsiderado": false
    },
    {
        "id": 109057,
        "user_id": 32687,
        "data_hora_registro": "2020-12-18 12:00:00",
        "latitude": null,
        "longitude": null,
        "foto": null,
        "valor_auxiliar": null,
        "aparelho_id": 569,
        "alteracao_manual": false,
        "unique_id": "MOBILE569305121606313148250",
        "alteracao_user_id": null,
        "justificativa": null,
        "assinatura": null,
        "cerco_id": null,
        "data_hora_obtida_por_gps": false,
        "data_hora_registro_aparelho": "2020-12-18 12:00:00",
        "estado_pessoa_id": 1,
        "data_referencia": "2020-12-18",
        "tipo_marcacao": 0,
        "old_alteracao_manual": false,
        "data_hora_original": null,
        "data_hora_margem": null,
        "desconsiderado": false
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/registro/pessoa/{id}

URL Parameters

Parameter Status Description
id required ID da pessoa que você deseja obter os registros.

Registro Pessoa Período


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/registro/pessoa/32687/periodo/447" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/registro/pessoa/32687/periodo/447"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/registro/pessoa/32687/periodo/447',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 109056,
        "user_id": 32687,
        "data_hora_registro": "2020-12-18 08:00:00",
        "latitude": null,
        "longitude": null,
        "foto": null,
        "valor_auxiliar": null,
        "aparelho_id": null,
        "alteracao_manual": false,
        "unique_id": null,
        "alteracao_user_id": null,
        "justificativa": null,
        "assinatura": null,
        "cerco_id": null,
        "data_hora_obtida_por_gps": false,
        "data_hora_registro_aparelho": "2020-12-18 08:00:00",
        "estado_pessoa_id": 1,
        "data_referencia": null,
        "tipo_marcacao": 0,
        "old_alteracao_manual": false,
        "data_hora_original": null,
        "data_hora_margem": null,
        "desconsiderado": false
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/registro/pessoa/{id}/periodo/{id_periodo}

URL Parameters

Parameter Status Description
id required ID da pessoa que você deseja obter os registros.
id_periodo required ID do período que você deseja obter os registros.

Registro Pessoa Data


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/registro/pessoa/32687/data/2020/12[/18]" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/registro/pessoa/32687/data/2020/12[/18]"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/registro/pessoa/32687/data/2020/12[/18]',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 109056,
        "user_id": 32687,
        "data_hora_registro": "2020-12-18 08:00:00",
        "latitude": null,
        "longitude": null,
        "foto": null,
        "valor_auxiliar": null,
        "aparelho_id": null,
        "alteracao_manual": false,
        "unique_id": null,
        "alteracao_user_id": null,
        "justificativa": null,
        "assinatura": null,
        "cerco_id": null,
        "data_hora_obtida_por_gps": false,
        "data_hora_registro_aparelho": "2020-12-18 08:00:00",
        "estado_pessoa_id": 1,
        "data_referencia": null,
        "tipo_marcacao": 0,
        "old_alteracao_manual": false,
        "data_hora_original": null,
        "data_hora_margem": null,
        "desconsiderado": false
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/registro/pessoa/{id}/data/{ano}/{mes}[/{dia}]

URL Parameters

Parameter Status Description
id required ID da pessoa que você deseja obter os registros.
ano required Ano que você deseja obter os registros.
mes required Mês que você deseja obter os registros.
dia optional Dia que você deseja obter os registros.

Registro Período


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/registro/periodo/447" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/registro/periodo/447"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/registro/periodo/447',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 109056,
        "user_id": 32687,
        "data_hora_registro": "2020-12-18 08:00:00",
        "latitude": null,
        "longitude": null,
        "foto": null,
        "valor_auxiliar": null,
        "aparelho_id": null,
        "alteracao_manual": false,
        "unique_id": null,
        "alteracao_user_id": null,
        "justificativa": null,
        "assinatura": null,
        "cerco_id": null,
        "data_hora_obtida_por_gps": false,
        "data_hora_registro_aparelho": "2020-12-18 08:00:00",
        "estado_pessoa_id": 1,
        "data_referencia": null,
        "tipo_marcacao": 0,
        "old_alteracao_manual": false,
        "data_hora_original": null,
        "data_hora_margem": null,
        "desconsiderado": false
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/registro/periodo/{id}

URL Parameters

Parameter Status Description
id required ID do período que você deseja obter os registros.

Registro Data


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/registro/data/2020/12[/18]" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/registro/data/2020/12[/18]"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/registro/data/2020/12[/18]',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "id": 109056,
        "user_id": 32687,
        "data_hora_registro": "2020-12-18 08:00:00",
        "latitude": null,
        "longitude": null,
        "foto": null,
        "valor_auxiliar": null,
        "aparelho_id": null,
        "alteracao_manual": false,
        "unique_id": null,
        "alteracao_user_id": null,
        "justificativa": null,
        "assinatura": null,
        "cerco_id": null,
        "data_hora_obtida_por_gps": false,
        "data_hora_registro_aparelho": "2020-12-18 08:00:00",
        "estado_pessoa_id": 1,
        "data_referencia": null,
        "tipo_marcacao": 0,
        "old_alteracao_manual": false,
        "data_hora_original": null,
        "data_hora_margem": null,
        "desconsiderado": false
    }
]

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/registro/data/{ano}/{mes}[/{dia}]

URL Parameters

Parameter Status Description
ano required Ano que você deseja obter os registros.
mes required Mês que você deseja obter os registros.
dia optional Dia que você deseja obter os registros.

Usuario

Login

Example request:

curl -X POST \
    "http://api.pontorapido.com.br/auth" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==" \
    -d '{"cnpj":"123456","matricula":"2","password":"teste"}'
const url = new URL(
    "http://api.pontorapido.com.br/auth"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

let body = {
    "cnpj": "123456",
    "matricula": "2",
    "password": "teste"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'http://api.pontorapido.com.br/auth',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
        'json' => [
            'cnpj' => '123456',
            'matricula' => '2',
            'password' => 'teste',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "id": 30584,
    "nome": "Pessoa 2",
    "email": "pessoa2@teste.com.br",
    "permissao_id": 2,
    "matricula": "2",
    "filial_id": 111,
    "cpf": "1234567",
    "pis": "123",
    "ativo": true,
    "tipo_registro_id": 2,
    "horario_id": null,
    "situacao_pessoa_id": 1
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

POST /auth

Body Parameters

Parameter Type Status Description
cnpj Text required CNPJ da Filial.
matricula Int required Número da matrícula do Usuário.
password Text required Senha do Usuário.

Usuário Filial


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/usuario/filial" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/usuario/filial"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/usuario/filial',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "id": 258,
    "empresa_id": 10,
    "nome": "Filial Demo Atualizado",
    "cnpj": "12345678910",
    "horario_id": null
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/usuario/filial

Usuário Empresa


Requires authentication

Example request:

curl -X GET \
    -G "http://api.pontorapido.com.br/api/usuario/empresa" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ=="
const url = new URL(
    "http://api.pontorapido.com.br/api/usuario/empresa"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'http://api.pontorapido.com.br/api/usuario/empresa',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'bearer WndLdmNiUFJKOOJFUkNFMXYxY8RvY0FaYVpnYnU1aRTEbQc2ckE4ZQ==',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "id": 10,
    "nome": "EMPRESA DE DEMONSTRAÇÃO",
    "tolerancia": 5,
    "exigir_captura_gps": true,
    "titulo_campo_adicional": "Teste",
    "logo": null,
    "exigir_detectacao_face": false,
    "minimo_intervalo": "01:00:00",
    "maximo_horas_trabalho": "08:00:00",
    "campo_adicional": 3,
    "captura_foto": 3,
    "captura_assinatura": null,
    "exigir_captura_em_cerco": false,
    "distancia_maxima_cerco": 0,
    "matriculas_unicas_por_empresa": true,
    "horario_id": 4,
    "obter_data_hora_por_gps": true,
    "email_rh": "empresa@demo.com",
    "status_id": 3
}

Example response (401):

{
    "message": "Acesso negado."
}

HTTP Request

GET /api/usuario/empresa