Analisar solicitação
curl --request POST \
--url https://api.example.com/requests/:id/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contractors": [
{}
]
}
'import requests
url = "https://api.example.com/requests/:id/analyze"
payload = { "contractors": [{}] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contractors: [{}]})
};
fetch('https://api.example.com/requests/:id/analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"_embedded": { "id": 123, "status": "pre_filter_approve" },
"_links": { "self": { "href": "/zipconsig-marketplace/requests/123" } }
}
Solicitações
Analisar solicitação
Aprova ou nega a participação numa solicitação distribuída pelo Marketplace
POST
/
requests
/
:id
/
analyze
Analisar solicitação
curl --request POST \
--url https://api.example.com/requests/:id/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contractors": [
{}
]
}
'import requests
url = "https://api.example.com/requests/:id/analyze"
payload = { "contractors": [{}] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contractors: [{}]})
};
fetch('https://api.example.com/requests/:id/analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"_embedded": { "id": 123, "status": "pre_filter_approve" },
"_links": { "self": { "href": "/zipconsig-marketplace/requests/123" } }
}
A criação da solicitação acontece internamente, a partir do consumo de uma fila de folha de pagamento — não
há chamada HTTP para criá-la. O único ponto de entrada HTTP deste domínio é a análise: o parceiro
responde a uma solicitação que a Zipdin distribuiu a ele.
Todos os endpoints requerem autenticação via Bearer token no header
Authorization.
Consulte o guia de autenticação para obter suas credenciais e gerar um token.Parâmetros
integer
required
ID numérico da solicitação
array
required
Lista de identificadores dos contratantes envolvidos na análise (array de strings)
string
Ação da análise — um de
APROVADA, NEGADA, ERROR (opcional)Exemplo
curl -X POST https://hml.zipdin.com.br/zipconsig-marketplace/requests/123/analyze \
-H "Authorization: Bearer SEU_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"contractors": ["12345678000190"],
"action": "APROVADA"
}'
{
"_embedded": { "id": 123, "status": "pre_filter_approve" },
"_links": { "self": { "href": "/zipconsig-marketplace/requests/123" } }
}
