Consulta a políticas
1 min
Listagem de políticas criadas
Busque todas as políticas criadas na sua organização
GET
https://gyra-core.gyramais.com.br/credit-policy/policy
Query Parameters
- enabledBooleanDescription
- protectedBooleanDescription
Header Parameters
- authorizationstringrequiredDescription
curl
curl --location 'https://gyra-core.gyramais.com.br/credit-policy/policy?enabled=Boolean&protected=Boolean' \
--header 'authorization: Bearer string'200
[
{
"id": "6695a911174faccf7e063246",
"name": "Política GYRA360 PJ",
"documentType": "CNPJ",
"reportType": "CUSTOMER_GYRA_360",
"userId": null,
"organizationId": null,
"createdAt": "2024-07-15T22:56:17.139Z",
"updatedAt": "2024-07-15T22:56:17.139Z",
"enabled": true
},
{
"id": "6695a911174faccf7e063247",
"name": "Política GYRA360 PF",
"documentType": "CPF",
"reportType": "CUSTOMER_GYRA_360",
"userId": null,
"organizationId": null,
"createdAt": "2024-07-15T22:56:17.228Z",
"updatedAt": "2024-07-15T22:56:17.228Z",
"enabled": true
},
{
"id": "6695a911174faccf7e063248",
"name": "Política GYRA360 PLUS PJ",
"documentType": "CNPJ",
"reportType": "CUSTOMER_GYRA_360_PLUS",
"userId": null,
"organizationId": null,
"createdAt": "2024-07-15T22:56:17.320Z",
"updatedAt": "2024-07-15T22:56:17.320Z",
"enabled": true
},
{
"id": "6695a911174faccf7e063249",
"name": "Política GYRA360 PLUS PF",
"documentType": "CPF",
"reportType": "CUSTOMER_GYRA_360_PLUS",
"userId": null,
"organizationId": null,
"createdAt": "2024-07-15T22:56:17.413Z",
"updatedAt": "2024-07-15T22:56:17.413Z",
"enabled": true
}
]403
{
"code": 403,
"message": "Você não tem permissão para acessar este recurso."
}Minhas políticas
Para gerar a listagem, primeiro será necessário gerar seu token de acesso através do Autenticação.