curl --request POST \
--url https://api.pipo.health/v1/enrollment/exclusion/{member-tax-id}/benefit/{benefit-id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"exclusion-details": {
"end-date": "2024-12-31",
"exclusion-reason": "voluntary-dismissal",
"extension-plan": false
}
}
'{
"request-id": "aaa11111-e89b-12d3-a456-426614174006"
}{
"error": "End date cannot be in the past"
}{
"error": "Not entitled to modify this member"
}{
"error": "Benefit not found active in member"
}{
"enrollment-id": "789e0123-e89b-12d3-a456-426614174002",
"error": "Exclusion not performed. Benefit still has ongoing enrollment"
}Exclusão de um benefício específico
Exclui um único benefício do membro.
POST
/
v1
/
enrollment
/
exclusion
/
{member-tax-id}
/
benefit
/
{benefit-id}
curl --request POST \
--url https://api.pipo.health/v1/enrollment/exclusion/{member-tax-id}/benefit/{benefit-id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"exclusion-details": {
"end-date": "2024-12-31",
"exclusion-reason": "voluntary-dismissal",
"extension-plan": false
}
}
'{
"request-id": "aaa11111-e89b-12d3-a456-426614174006"
}{
"error": "End date cannot be in the past"
}{
"error": "Not entitled to modify this member"
}{
"error": "Benefit not found active in member"
}{
"enrollment-id": "789e0123-e89b-12d3-a456-426614174002",
"error": "Exclusion not performed. Benefit still has ongoing enrollment"
}