POST
/api/rpa/get_detailGet RPA detail
Returns all fields of the receipt, the calculation text memoria and the provider record prestador. prestador is the current record and may differ from the time of issuance; nomePrestador and nit in the receipt are the values recorded at issuance.
Required headers
tokenstring | string | Issuing company token |
signstring | string | MD5 signature: MD5(token + path + body + timestamp) |
timestampstring | string | Unix timestamp in seconds |
Body
id*string | string | Receipt ID |
* Required field.
Common errors
| Message | Cause |
|---|---|
| id inválido / id无效 | id is not a valid ObjectId |
| RPA não encontrado / 未找到该RPA | The receipt does not exist or does not belong to the company |
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X POST "https://api.tffiscal.com/api/rpa/get_detail" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"id": "66c1f4b7e4b0a1c2d3e4f5b1"
}
{
"success": true,
"message": "成功",
"data": {
"id": "66c1f4b7e4b0a1c2d3e4f5b1",
"serie": 1,
"numero": 27,
"cpf": "12345678901",
"nomePrestador": "MARIA DA SILVA",
"nit": "12345678901",
"dataPagamento": "2026-08-20",
"competencia": 202608,
"descricaoServico": "Comissao de divulgacao - agosto/2026",
"codigoServicoMunicipal": "",
"valorBruto": 3000.00,
"baseInss": 3000.00,
"aliquotaInssSegurado": 0.11,
"valorInssSegurado": 330.00,
"aliquotaInssPatronal": 0.20,
"valorInssPatronal": 600.00,
"baseInssOutrosTomadores": 0.00,
"valorInssOutrosTomadores": 0.00,
"baseIrrf": 2392.80,
"baseIrrfAcumulada": 2392.80,
"aliquotaIrrf": 0.00,
"parcelaDeduzirIrrf": 0.00,
"qtdDependentes": 0,
"valorDeducaoDependentes": 0.00,
"outrasDeducoes": 0.00,
"valorDescontoSimplificado": 607.20,
"usouDescontoSimplificado": true,
"irrfApuradoAcumulado": 0.00,
"valorRedutorIrrf": 0.00,
"valorIrrf": 0.00,
"valorLiquido": 2670.00,
"custoTotalEmpresa": 3600.00,
"status": "emitido",
"motivoEstorno": "",
"tabelaAno": 2026,
"pdfUrl": "",
"date": "2026-08-20 14:32",
"memoria": "...",
"prestador": {
"id": "66c1f0a2e4b0a1c2d3e4f5a6",
"cpf": "12345678901",
"nit": "12345678901",
"name": "MARIA DA SILVA",
"dataNascimento": "1990-05-12",
"endereco": "Rua das Flores",
"complemento": "",
"numero": "100",
"bairro": "Centro",
"city": "Sao Paulo",
"uf": "SP",
"cep": "01000000",
"telefone": "",
"email": "maria@exemplo.com",
"inscricaoMunicipal": "",
"qtdDependentes": 0,
"banco": "",
"agencia": "",
"conta": "",
"tipoConta": "",
"pix": "maria@exemplo.com",
"ativo": true,
"nitPendente": false
}
}
}