Solicitation

Rota responsável por retornar uma lista de solicitações salva no sistema

SecurityoAuth2ClientCredentials
Request
query Parameters
pageNumber
integer <int32>
pageSize
integer <int32>
orderBy
string or null
search
string or null
clinicId
integer or null <int32>
statusId
integer or null <int32>
solicitationTypeId
integer or null <int32>
month
integer or null <int32>
dateStart
string or null <date-time>
dateEnd
string or null <date-time>
name
string or null
cpf
string or null
Responses
200

A list of all solicitations registered in the system

400

Unable to return a list of all solicitations due to validation error

401

Unauthorized

404

No solicitation registered in the system was found

get/api/v1/solicitations
Response samples
application/json
{
  • "id": 1,
  • "requestedAmount": 5000,
  • "installmentOfRequestedAmount": 0,
  • "monthlyIncome": 1000,
  • "contractId": "1",
  • "isBeneficiaryInformed": true,
  • "numeroProtocolo": null,
  • "numeroProposta": null,
  • "tacValue": 0,
  • "paymentDoneDate": null,
  • "paymentRequestDate": null,
  • "isPaymentRequested": false,
  • "user": null,
  • "createdAt": "2023-08-01T14:46:43.3788822+01:00",
  • "clinic": {
    },
  • "beneficiary": {
    },
  • "procedure": {
    },
  • "coefficient": {
    },
  • "solicitationType": {
    },
  • "serviceType": {
    },
  • "statusType": {
    },
  • "cancelReason": null,
  • "cancellationDate": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0,
  • "isRebate": false,
  • "requestToken": null,
  • "reasonStatusType": null,
  • "solicitationOrigin": null,
  • "productionCodeId": null,
  • "productionCode": null,
  • "installments": 0,
  • "simulationRecordId": null
}

Rota responsável pela devolução de uma solicitação feita por Id

SecurityoAuth2ClientCredentials
Request
path Parameters
solicitationId
required
integer <int32>
Responses
200

A list of all solicitations registered in the system

400

Unable to return a solicitation due to validation error

401

Unauthorized

404

No solicitation with this id registered in the system was found

get/api/v1/solicitations/{solicitationId}
Response samples
application/json
{
  • "id": 1,
  • "requestedAmount": 5000,
  • "installmentOfRequestedAmount": 0,
  • "monthlyIncome": 1000,
  • "contractId": "1",
  • "isBeneficiaryInformed": true,
  • "numeroProtocolo": null,
  • "numeroProposta": null,
  • "tacValue": 0,
  • "paymentDoneDate": null,
  • "paymentRequestDate": null,
  • "isPaymentRequested": false,
  • "user": null,
  • "createdAt": "2023-08-01T14:46:43.3788822+01:00",
  • "clinic": {
    },
  • "beneficiary": {
    },
  • "procedure": {
    },
  • "coefficient": {
    },
  • "solicitationType": {
    },
  • "serviceType": {
    },
  • "statusType": {
    },
  • "cancelReason": null,
  • "cancellationDate": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0,
  • "isRebate": false,
  • "requestToken": null,
  • "reasonStatusType": null,
  • "solicitationOrigin": null,
  • "productionCodeId": null,
  • "productionCode": null,
  • "installments": 0,
  • "simulationRecordId": null
}

Rota responsável por atualizar uma solicitação

SecurityoAuth2ClientCredentials
Request
path Parameters
solicitationId
required
integer <int32>
Request Body schema:
requestedAmount
required
string
installmentOfRequestedAmount
required
string
monthlyIncome
required
string
statusTypeId
required
integer <int32>
coefficientId
required
integer <int32>
isPaymentRequested
boolean
isBeneficiaryInformed
boolean
tacValue
number <double>
Responses
200

Update solicitations registered in the system

400

Unable to update a solicitation due to validation error

401

Unauthorized

404

No solicitation registered with this id in the system was found

put/api/v1/solicitations/{solicitationId}
Request samples
{
  • "requestedAmount": 1500,
  • "installmentOfRequestedAmount": 70,
  • "monthlyIncome": 1000,
  • "statusTypeId": 2,
  • "coefficientId": 1,
  • "isPaymentRequested": false,
  • "isBeneficiaryInformed": true,
  • "tacValue": 0
}
Response samples
application/json
{
  • "errors": [ ],
  • "httpStatus": 500
}

Rota responsável pela atualização do status do beneficiário

SecurityoAuth2ClientCredentials
Request
path Parameters
solicitationId
required
integer <int32>
Request Body schema:
statusId
required
integer <int32>
Responses
200

Update beneficiary status

400

Unable to update a beneficiary status due to validation error

401

Unauthorized

patch/api/v1/solicitations/{solicitationId}
Request samples
{
  • "statusId": 1
}
Response samples
application/json
{
  • "errors": [ ],
  • "httpStatus": 500
}

Rota responsável por excluir uma solicitação

SecurityoAuth2ClientCredentials
Request
path Parameters
solicitationId
required
integer <int32>
Responses
200

Success

204

delete a solicitation

400

Unable to delete a solicitation due to validation error

delete/api/v1/solicitations/{solicitationId}
Response samples
application/json
{
  • "errors": [ ],
  • "httpStatus": 500
}

Rota responsável por devolver uma lista de solicitações feitas por um cliente

SecurityoAuth2ClientCredentials
Request
path Parameters
userId
required
string or null
Responses
200

A list of all solicitations registered in the system

400

Unable to return a list of all solicitations due to validation error

401

Unauthorized

404

No solicitation registered with this user id in the system was found

get/api/v1/users/{userId}/solicitations
Response samples
application/json
{
  • "id": 1,
  • "requestedAmount": 5000,
  • "installmentOfRequestedAmount": 0,
  • "monthlyIncome": 1000,
  • "contractId": "1",
  • "isBeneficiaryInformed": true,
  • "numeroProtocolo": null,
  • "numeroProposta": null,
  • "tacValue": 0,
  • "paymentDoneDate": null,
  • "paymentRequestDate": null,
  • "isPaymentRequested": false,
  • "user": null,
  • "createdAt": "2023-08-01T14:46:43.3788822+01:00",
  • "clinic": {
    },
  • "beneficiary": {
    },
  • "procedure": {
    },
  • "coefficient": {
    },
  • "solicitationType": {
    },
  • "serviceType": {
    },
  • "statusType": {
    },
  • "cancelReason": null,
  • "cancellationDate": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0,
  • "isRebate": false,
  • "requestToken": null,
  • "reasonStatusType": null,
  • "solicitationOrigin": null,
  • "productionCodeId": null,
  • "productionCode": null,
  • "installments": 0,
  • "simulationRecordId": null
}

Rota responsável por registrar uma solicitação feita por um cliente

SecurityoAuth2ClientCredentials
Request
path Parameters
userId
required
string or null
version
required
string
Request Body schema:
requestedAmount
required
number <double>
installmentOfRequestedAmount
required
number <double>
monthlyIncome
required
number <double>
solicitationTypeId
required
integer <int32>
serviceTypeId
required
integer <int32>
productionCodeId
required
integer <int32>
simulationRecordId
required
string or null
installments
required
integer <int32>
clinicId
integer <int32>
tacValue
number <double>
procedure
string or null
homogeneousGroup
required
integer <int32>
clinicRetention
integer <int32>
Responses
200

Add a new solicitation registered in the system

400

Unable to add a solicitation due to validation error

401

Unauthorized

post/api/v1/users/{userId}/solicitations
Request samples
{
  • "requestedAmount": "1500.00",
  • "installmentOfRequestedAmount": "70.00",
  • "monthlyIncome": "1000.00",
  • "solicitationTypeId": 2,
  • "serviceTypeId": 3,
  • "productionCodeId": null,
  • "simulationRecordId": null,
  • "installments": null,
  • "clinicId": 1,
  • "tacValue": 0,
  • "procedure": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0
}
Response samples
application/json
{
  • "id": 1,
  • "requestedAmount": 5000,
  • "installmentOfRequestedAmount": 0,
  • "monthlyIncome": 1000,
  • "contractId": "1",
  • "isBeneficiaryInformed": true,
  • "numeroProtocolo": null,
  • "numeroProposta": null,
  • "tacValue": 0,
  • "paymentDoneDate": null,
  • "paymentRequestDate": null,
  • "isPaymentRequested": false,
  • "user": null,
  • "createdAt": "2023-08-01T14:46:43.3915854+01:00",
  • "clinic": {
    },
  • "beneficiary": {
    },
  • "procedure": {
    },
  • "coefficient": {
    },
  • "solicitationType": {
    },
  • "serviceType": {
    },
  • "statusType": {
    },
  • "cancelReason": null,
  • "cancellationDate": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0,
  • "isRebate": false,
  • "requestToken": null,
  • "reasonStatusType": null,
  • "solicitationOrigin": null,
  • "productionCodeId": null,
  • "productionCode": null,
  • "installments": 0,
  • "simulationRecordId": null
}

Rota responsável por associar uma clínica a uma solicitação de cliente.

SecurityoAuth2ClientCredentials
Request
path Parameters
clinicId
required
integer <int32>
userId
required
string or null
solicitationId
required
integer <int32>
Responses
200

solicitations registered in the system

400

Unable to add a solicitation due to validation error

401

Unauthorized

put/api/v1/clinics/{clinicId}/users/{userId}/solicitations/{solicitationId}
Response samples
application/json
{
  • "id": 1,
  • "requestedAmount": 5000,
  • "installmentOfRequestedAmount": 0,
  • "monthlyIncome": 1000,
  • "contractId": "1",
  • "isBeneficiaryInformed": true,
  • "numeroProtocolo": null,
  • "numeroProposta": null,
  • "tacValue": 0,
  • "paymentDoneDate": null,
  • "paymentRequestDate": null,
  • "isPaymentRequested": false,
  • "user": null,
  • "createdAt": "2023-08-01T14:46:43.3788822+01:00",
  • "clinic": {
    },
  • "beneficiary": {
    },
  • "procedure": {
    },
  • "coefficient": {
    },
  • "solicitationType": {
    },
  • "serviceType": {
    },
  • "statusType": {
    },
  • "cancelReason": null,
  • "cancellationDate": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0,
  • "isRebate": false,
  • "requestToken": null,
  • "reasonStatusType": null,
  • "solicitationOrigin": null,
  • "productionCodeId": null,
  • "productionCode": null,
  • "installments": 0,
  • "simulationRecordId": null
}

Rota responsável por redefinir uma solicitação

SecurityoAuth2ClientCredentials
Request
path Parameters
solicitationId
required
integer <int32>
Responses
200

solicitations update in the system

400

Unable to reset a solicitation due to validation error

401

Unauthorized

404

No solicitation registered with this id in the system was found

put/api/v1/solicitations/{solicitationId}/reset
Response samples
application/json
{
  • "id": 1,
  • "requestedAmount": 5000,
  • "installmentOfRequestedAmount": 0,
  • "monthlyIncome": 1000,
  • "contractId": "1",
  • "isBeneficiaryInformed": true,
  • "numeroProtocolo": null,
  • "numeroProposta": null,
  • "tacValue": 0,
  • "paymentDoneDate": null,
  • "paymentRequestDate": null,
  • "isPaymentRequested": false,
  • "user": null,
  • "createdAt": "2023-08-01T14:46:43.3788822+01:00",
  • "clinic": {
    },
  • "beneficiary": {
    },
  • "procedure": {
    },
  • "coefficient": {
    },
  • "solicitationType": {
    },
  • "serviceType": {
    },
  • "statusType": {
    },
  • "cancelReason": null,
  • "cancellationDate": null,
  • "homogeneousGroup": 0,
  • "clinicRetention": 0,
  • "isRebate": false,
  • "requestToken": null,
  • "reasonStatusType": null,
  • "solicitationOrigin": null,
  • "productionCodeId": null,
  • "productionCode": null,
  • "installments": 0,
  • "simulationRecordId": null
}

Rota responsável por retornar todos os tipos de solicitação

SecurityoAuth2ClientCredentials
Responses
200

Retornando uma lista de todos os tipos de solicitação

400

Não foi possível retornar uma lista de todos os tipos de solicitação devido a um erro de validação

401

Unauthorized

404

Nenhum tipo de solicitação cadastrado o sistema foi encontrado

get/api/v1/solicitations/solicitation-types
Response samples
application/json
[
  • {
    }
]

Rota responsável por retornar todos os tipos de serviço

SecurityoAuth2ClientCredentials
Responses
200

Retornando uma lista de todos os tipos de serviço

400

Não foi possível retornar uma lista de todos os tipos de serviço devido a um erro de validação

401

Unauthorized

404

Nenhum tipo de serviço registrado o sistema foi encontrado

get/api/v1/solicitations/service-types
Response samples
application/json
[
  • {
    }
]