Resposta
{
"payment": {
"payment_id": "pay_01JNY456",
"external_id": "transacao-123",
"payment_method": "pix_dynamic",
"gross_amount": 100000,
"merchant_tax_id": "12345678000199",
"occurred_at": "2026-07-17T14:30:00-03:00",
"status": "reconciled",
"payment_reference": {
"end_to_end_id": "E123456789202607171430ABC",
"txid": "PEDIDO-98765"
}
},
"fiscal_reconciliation": {
"status": "matched",
"payment_amount": 100000,
"fiscal_documents_amount": 100000,
"difference_amount": 0,
"documents": [
{
"document_id": "fdoc_001",
"type": "NFSE",
"key": "NFSE-MEDICO-001",
"status": "authorized",
"issued_at": "2026-07-17T14:20:00-03:00",
"document_amount": 60000,
"match_method": "fiscal_document_key",
"match_confidence": 1.0,
"participants": [
{
"participant_external_id": "medico-123",
"allocated_amount": 60000
}
]
},
{
"document_id": "fdoc_002",
"type": "NFSE",
"key": "NFSE-HOSPITAL-001",
"status": "authorized",
"issued_at": "2026-07-17T14:27:00-03:00",
"document_amount": 40000,
"match_method": "fiscal_document_key",
"match_confidence": 1.0,
"participants": [
{
"participant_external_id": "hospital-456",
"allocated_amount": 40000
}
]
}
],
"participants": [
{
"participant_external_id": "medico-123",
"gross_amount": 60000,
"fiscal_documents_amount": 60000,
"difference_amount": 0,
"status": "matched"
},
{
"participant_external_id": "hospital-456",
"gross_amount": 40000,
"fiscal_documents_amount": 40000,
"difference_amount": 0,
"status": "matched"
}
]
},
"taxes": {
"status": "confirmed",
"cbs_amount": 900,
"ibs_amount": 100,
"source": "government_response"
},
"instructions": [
{
"instruction_id": "inst_01JNZ789",
"version": 1,
"status": "executed",
"gross_amount": 100000,
"created_at": "2026-07-17T14:30:01-03:00",
"allocations": [
{ "type": "CBS", "amount": 900, "destination": "RFB" },
{ "type": "IBS", "amount": 100, "destination": "CGIBS" },
{ "type": "MERCHANT", "amount": 99000, "destination_reference": "merchant-123" }
]
}
],
"settlements": [
{
"external_settlement_id": "liq-123456",
"instruction_id": "inst_01JNZ789",
"status": "completed",
"settled_at": "2026-07-17T14:30:03-03:00",
"reconciliation_status": "matched"
}
],
"government_reports": [
{
"report_id": "govrep_001",
"type": "PAYMENT_PRELIMINARY",
"status": "accepted",
"protocol": "GOV-2026-000121",
"sent_at": "2026-07-17T14:30:01-03:00",
"responded_at": "2026-07-17T14:30:02-03:00"
},
{
"report_id": "govrep_002",
"type": "SEGREGATION_COMPLETED",
"status": "accepted",
"protocol": "GOV-2026-000122",
"sent_at": "2026-07-17T14:30:04-03:00",
"responded_at": "2026-07-17T14:30:05-03:00"
}
],
"exceptions": [],
"timeline": [
{ "type": "payment.received", "occurred_at": "2026-07-17T14:30:00-03:00" },
{ "type": "fiscal_document.matched", "occurred_at": "2026-07-17T14:30:00-03:00" },
{ "type": "government_report.accepted", "reference_id": "govrep_001", "occurred_at": "2026-07-17T14:30:02-03:00" },
{ "type": "settlement.completed", "reference_id": "liq-123456", "occurred_at": "2026-07-17T14:30:03-03:00" },
{ "type": "government_report.accepted", "reference_id": "govrep_002", "occurred_at": "2026-07-17T14:30:05-03:00" },
{ "type": "payment.reconciled", "occurred_at": "2026-07-17T14:30:06-03:00" }
]
}