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
tokenstring
string
Company token, or the token of the integrator that owns the company
signstring
string
MD5 signature: MD5(token + path + body + timestamp)
timestampstring
string
Unix timestamp in seconds (5-minute window)
Body
companyId*int
int
Company ID: with a company token, that company itself; with an integrator token, a company under that integrator
accountantId*string
string
Accountant ObjectId (24 hex chars)
email*string
string
Accountant email (must match the registration)
* Required field.
Response fields
emailstring
string
Primary accountant email
officeDocumentTypestring
string
Office document type: "CNPJ" or "CPF"
officeDocumentstring
string
Office document (digits only)
officeNamestring
string
Office corporate / business name
responsibleNamestring
string
Name of the responsible accountant
crcstring
string
CRC number (Brazilian Regional Accounting Council)
accountantCpfstring
string
Accountant CPF (digits only)
workAddressstring
string
Business address
sitestring
string
Office website
landlinestring
string
Landline phone
mobilestring
string
Mobile phone
assistantNamestring
string
Assistant name
assistantEmailstring
string
Assistant email
assistantPhonestring
string
Assistant phone
observationsstring
string
Free-form registration notes
Error responses
Message
Cause
会计师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