TF Fiscal

Accountant

POST/api/accountant/get_info

Get accountant info

Returns the complete registration data of the accountant linked to the given company. The accountant must be previously linked to the company (same CNPJ) and the email must match the registration.

Required headers

tokenstringstringCompany token, or the token of the integrator that owns the company
signstringstringMD5 signature: MD5(token + path + body + timestamp)
timestampstringstringUnix timestamp in seconds (5-minute window)

Body

companyId*intintCompany ID: with a company token, that company itself; with an integrator token, a company under that integrator
accountantId*stringstringAccountant ObjectId (24 hex chars)
email*stringstringAccountant email (must match the registration)

 * Required field.

Response fields

emailstringstringPrimary accountant email
officeDocumentTypestringstringOffice document type: "CNPJ" or "CPF"
officeDocumentstringstringOffice document (digits only)
officeNamestringstringOffice corporate / business name
responsibleNamestringstringName of the responsible accountant
crcstringstringCRC number (Brazilian Regional Accounting Council)
accountantCpfstringstringAccountant CPF (digits only)
workAddressstringstringBusiness address
sitestringstringOffice website
landlinestringstringLandline phone
mobilestringstringMobile phone
assistantNamestringstringAssistant name
assistantEmailstringstringAssistant email
assistantPhonestringstringAssistant phone
observationsstringstringFree-form registration notes

Error responses

MessageCause
会计师ID参数异常或不存在accountantId missing or not a valid ObjectId
该会计师邮箱异常或不存在email has an invalid format, is not registered, or does not belong to the same accountant as accountantId
发票账号{companyId}异常或不存在companyId does not exist, or is not the company of the token (for an integrator token, a company under that integrator)
该会计师未绑定该发票账号Accountant is not linked to the given 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/accountant/get_info" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json