Claim an identification another company holds
const url = 'https://api.emite.cr/v1/identification-claims';const form = new FormData();form.append('p12', 'file');form.append('identificationType', 'example');form.append('identificationNumber', 'example');form.append('environment', 'sandbox');form.append('pin', 'example');form.append('atvUsername', 'example');form.append('atvPassword', 'example');form.append('atvClientId', 'example');form.append('atvClientSecret', 'example');form.append('shareContact', 'true');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.emite.cr/v1/identification-claims \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form p12=@file \ --form identificationType=example \ --form identificationNumber=example \ --form environment=sandbox \ --form pin=example \ --form atvUsername=example \ --form atvPassword=example \ --form atvClientId=example \ --form atvClientSecret=example \ --form shareContact=trueThe .p12 with its PIN and the ATV user and password are checked like an upload of credentials, against the identification, and are never stored. The company's owner and administrators are told, with the name and email of the claimant (shareContact). If nobody of an empty company answers before the notice ends, the team reviews the claim and may release the company; any other goes to the team (status: review). Nothing is released by itself. 409 IDENTIFICATION_CLAIM_NOT_NEEDED when no company holds it, and IDENTIFICATION_CLAIM_COMPANY_CLOSED when the company that holds it was closed — it is reopened with POST /v1/tenants/reopen; 429 IDENTIFICATION_CLAIM_RATE_LIMITED past 5 attempts in an hour, counted together with the reopenings.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”object
The claim.
Type of the identification claimed (01 to 04).
The identification claimed, digits only.
The legal name of the company that holds the identification.
open: in its notice, or past it until the team decides; review: the team decides; released: the identification is reserved for the claimant; closed: it ended without a release.
Why it waits for the team: contested (the company said it is theirs), not_claimable (the company has activity) or target_changed (it got activity during the notice).
How it ended, once it did.
Open claims: when the notice ends. If nobody answered by then, the team reviews the claim and may release the identification.
Released claims: until when only the claimant can register the identification.
The claimant already registered the company with it.
When it was filed.
When it was released or closed.
Example
{ "status": "open", "reviewReason": "contested", "resolution": "registrant"}