3.3 Consultar responsável financeiro pelo id
Request
Request
query FinancialOwner {
financialOwner(id: 48) {
id
name
cpf
email
billings(where: { billingStatus: { in: [PENDING, OVERDUE, EXPIRED] } }) {
value
originalValue
dueDate
interestValue
fineValue
amountPaid
billingStatus
discount
id
isManualPayment
barcodeBase64
paymentPlan {
paymentPlanType
id
dependent {
name
cpf
email
id
}
company {
name
cnpj
companyName
id
}
costCenter {
name
id
}
}
firstBilling {
id
value
interestValue
fineValue
originalValue
dueDate
billingStatus
}
firstBillingId
parentBillingId
parentBilling {
id
value
interestValue
fineValue
originalValue
dueDate
billingStatus
}
}
address {
city
state
country
district
street
zipCode
number
complement
}
customFields {
content
customField {
name
}
}
company {
name
id
}
dependents {
name
id
}
}
}
Params
Parâmetro | Tipo | Descrição |
---|---|---|
Id | Int! | Id único do responsável financeiro |
Response
Response
{
"data": {
"financialOwner": {
"id": 48,
"name": "Responsável Teste",
"cpf": "83265959007",
"email": "gui.veroneze@gmail.com",
"billings": [
{
"value": 1,
"originalValue": 1,
"dueDate": "2025-01-01T03:00:00.000Z",
"interestValue": 0.01,
"fineValue": 2,
"amountPaid": null,
"billingStatus": "PENDING",
"discount": null,
"id": 2929,
"isManualPayment": false,
"barcodeBase64": "",
"paymentPlan": {
"paymentPlanType": "MONTHLY",
"id": 957,
"dependent": {
"name": "Aluno TEste",
"cpf": null,
"email": "",
"id": 49
},
"company": {
"name": "Escola teste",
"cnpj": "55620898000192",
"companyName": "TESTE LTDA",
"id": 1
},
"costCenter": {
"name": "Mensalidades",
"id": 1
}
},
"firstBilling": null,
"firstBillingId": null,
"parentBillingId": null,
"parentBilling": null
}
],
"address": {
"city": "Cambuci",
"state": "RJ",
"country": "Brasil",
"district": "Centro",
"street": "Praça da Bandeira",
"zipCode": "28430-970",
"number": "123454",
"complement": ""
},
"customFields": [
{
"content": "12/06/2001 00:00:00",
"customField": {
"name": "BIRTHDAY"
}
},
{
"content": "24988370464",
"customField": {
"name": "PHONE"
}
}
],
"company": {
"name": "Escola teste",
"id": 1
},
"dependents": [
{
"name": "Aluno TEste",
"id": 49
}
]
}
}
}
Result
Campo | Tipo | Descrição |
---|---|---|
financialOwner | FinancialOwner | Objeto do tipo FinancialOwner |