Cliente

Listar clientes

curl "$AMBIENTE/rpc/v2/person.get-person-paginate" \
-H "Authorization-Compufacil: $TOKEN"
--data '
{
    "isClient": true,
    "page": 1,
    "maxResults": 30
}
'

Filtrar clientes

curl "$AMBIENTE/rpc/v2/person.get-person-paginate" \
-H "Authorization-Compufacil: $TOKEN"
--data '
{
    "isClient": true,
    "search": "Cliente Teste",
    "page": 1,
    "maxResults": 30
}
'

Pegar um cliente detalhado

curl "$AMBIENTE/rpc/v1/person.get-person" \
-H "Content-Type: application/json" \
-H "Authorization-Compufacil: $TOKEN"
--data '{"id": 152611}
'

Criar cliente

Veja os dados em nosso swagger

curl "$AMBIENTE/rpc/v1/person.post-person" \
-H "Authorization-Compufacil: $TOKEN" \
-H "Content-Type: application/json" \
--data '
{
    "active": true,
    "isClient": true,
    "name": "Cliente Teste"
}
'
$ {"id":152611}

Atualizar um cliente

Veja os dados em nosso swagger

curl "$AMBIENTE/rpc/v1/person.put-person" \
-H "Authorization-Compufacil: $TOKEN" \
-H "Content-Type: application/json" \
--data '
{
    "active": true,
    "isClient": true,
    "name": "Cliente Teste"
}
'

Excluir clientes

curl "$AMBIENTE/rpc/v1/person.delete-person"  \
-H "Authorization-Compufacil: $TOKEN" \
-H "Content-Type: application/json" \
--data '{"ids": [152611, 152612]}'