Skip to main content
POST
Queues a background job that resolves the company’s FIRS TIN. The endpoint marks firsTinPending as true, enqueues the job, and returns its ID immediately — the resolved TIN is written back to the company record asynchronously, so poll GET /v1/dashboard/my-companies?id={companyId} for completion.

Body

string
required
The company must be owned by the caller.

Behaviour

  • The company must have an rcNumber on file; otherwise the request is rejected.
  • If a job is genuinely in flight (vouchmarkTools.tin.firs.pending === true), the request is rejected.
  • If firsTinPending is stale (the worker crashed without clearing it), the endpoint logs the reset and re-queues automatically.
  • If the queue rejects the job, firsTinPending is rolled back to false and a 500 is returned.

Errors

Every error response is shaped { "success": false, "message": "..." }. The 500 queue-failure case also includes an error field with the underlying message.