Jobs

Jobs are customer requests for accounting help, listed on a job board that every provider firm (accounting/auditing firm) can browse. Provider firms respond with offers; when the customer accepts an offer, an APPROVED contract is created between the firm and the customer in the same transaction, granting the firm access to the customer’s books through the normal contract-based access model.

Job types:

  • FULL_SERVICE_ACCOUNTING — a continuous engagement; the resulting contract has no end date.
  • ONE_OFF_ASSISTANCE — a one-time task; offers must propose an end date, which becomes the contract’s end date.

Lifecycle: a job is OPEN until the customer accepts an offer (ACCEPTED) or cancels it (CANCELLED). Offers are PENDING until accepted, rejected by the customer, or withdrawn by the firm. Accepting one offer automatically rejects the job’s other pending offers, and cancelling a job rejects all of its pending offers.

Authorization

The two sides of the marketplace are gated differently:

  • Customer side — creating a job, cancelling it, and accepting/rejecting offers require an active client-account owner (role CA) on the customer account. Listing jobs and offers requires normal access to the client account.
  • Provider side — browsing open jobs, downloading job reports, creating offers, listing the firm’s own offers and withdrawing them require the caller to be a direct, active member of the provider firm (provider_client_account_id). Contract-derived access does not count, since bidding firms have no contract with the customer yet. The firm must also be a registered accounting/auditing business to browse, download reports (403 jobs.not_a_provider_firm) or make an offer (400 jobs.invalid_offer_data).

In the marketplace scope, only OPEN jobs are visible and the only expandable relation is client — a deliberately narrow identity block (name, organization number, industry code, city, municipality, employee count, plus two flags indicating whether books data exists for the current/previous year). Requesting offers or contract in this scope is rejected, since that would expose competing bids. While a job is OPEN, provider members may also download the customer’s general ledger and trial balance reports to scope their offer; this access ends as soon as the job leaves OPEN.

Endpoints

Method Endpoint Description
GET /jobs List jobs — customer scope, or the open-jobs marketplace when provider_client_account_id is given
POST /jobs Create a job (client-account owners only)
PATCH /jobs/{id} Cancel a job ({"status": "CANCELLED"}; the only supported update)
GET /jobs/{id}/reports Download the posting customer’s general ledger or trial balance (provider scope, OPEN jobs only)
GET /job-offers List offers — by job_id (customer scope) or provider_client_account_id (firm’s own offers)
POST /job-offers Create an offer on an open job (provider-firm members only)
PATCH /job-offers/{id} Status transition: ACCEPTED / REJECTED (client-account owners) or WITHDRAWN (firm members)

GET /jobs query parameters

Parameter Type Required Description
provider_client_account_id integer No Switches to the marketplace scope: only OPEN jobs are visible (the firm’s own account’s jobs excluded), and with is restricted to client. Caller must be a direct, active member of this provider firm
client_account_id integer/string No Customer scope: filter by client account ID(s), separated by comma, semicolon, or space. Defaults to all eligible client accounts
status string No Filter by job status: OPEN, ACCEPTED, or CANCELLED. Any other value gets 400 common.validation_error
with string No Include relations: client (narrow identity block, both scopes), offers and contract (customer scope only)
page / per_page integer No Pagination (default: page 1, 100 per page)

GET /jobs/{id}/reports query parameters

Format is chosen by the Accept header: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx) or application/pdf. Without an Accept header the report is xlsx; a header that allows neither gets 406 common.not_acceptable.

The job and the caller’s membership are checked before the parameters, so a job that has left OPEN gets jobs.job_closed whatever the parameters are.

Parameter Type Required Description
provider_client_account_id integer Yes The provider firm the caller acts for (direct membership required)
report_type string Yes GENERAL_LEDGER or TRIAL_BALANCE. Any other value gets 400 common.validation_error
year integer Yes Calendar year; only the current or previous year is allowed

GET /job-offers query parameters

Parameter Type Required Description
provider_client_account_id integer One of the two The firm’s own offers. Caller must be a direct, active member of this firm. Takes precedence when job_id is sent too
job_id integer One of the two The offers on one job; caller needs access to the job’s client account. An unknown job gets 404 jobs.not_found
status string No Filter by offer status: PENDING, ACCEPTED, REJECTED or WITHDRAWN. Only applies with provider_client_account_id; ignored with job_id
with string No provider_client_account, job (see below)
page / per_page integer No Pagination (default: page 1, 100 per page)

Job attributes

Attribute Type Description
id integer The unique identifier of the job
created_at datetime When the job was created
created_by_id integer The ID of the user who created the job
client_account_id integer The customer client account requesting help
job_type string FULL_SERVICE_ACCOUNTING or ONE_OFF_ASSISTANCE
description string What the customer needs help with (max 2000 chars)
status string OPEN, ACCEPTED, or CANCELLED
accepted_offer_id integer The accepted offer, set when the job is accepted
contract_id integer The contract created by acceptance

The client relation adds the company identity block described above, including the has_current_year_data / has_previous_year_data flags.

Job offer attributes

Attribute Type Description
id integer The unique identifier of the offer
created_at datetime When the offer was created
created_by_id integer The ID of the user who created the offer
job_id integer The job the offer responds to
provider_client_account_id integer The offering provider firm
message string The firm’s message to the customer (max 2000 chars)
price decimal Optional indicative price
currency_code string Currency of price; defaults to the firm’s accounting currency
proposed_start_date date Proposed engagement start (becomes the contract start date)
proposed_end_date date Required for ONE_OFF_ASSISTANCE (becomes the contract end date); ignored for full service
status string PENDING, ACCEPTED, REJECTED, or WITHDRAWN

GET /job-offers supports with=provider_client_account (firm id + display name) and with=job (the marketplace-safe job projection, for the firm’s own offer list). Without a with parameter, provider_client_account is included; a with replaces that default, so send with=job,provider_client_account to get both.

Acceptance semantics

PATCH /job-offers/{id} with {"status": "ACCEPTED"}, performed by a client-account owner, atomically:

  1. Marks the offer ACCEPTED and the job’s other PENDING offers REJECTED.
  2. Marks the job ACCEPTED and records accepted_offer_id.
  3. Creates a contract with service_provided=ACCOUNTING, approval_status=APPROVED (the acceptance is the approval; approved_by_id is the accepting owner), start_date from the offer, and end_date from the offer for one-off jobs / null for full service.

Email notifications are sent to the customer’s owners when an offer is received, and to the provider firm’s members when their offer is accepted (notification types JOB_OFFER_RECEIVED and JOB_OFFER_ACCEPTED, configurable per user via notification settings).

Error Responses

Errors use the standard api_v2 envelope. error.code is the stable identifier to branch on — never the message — and error.details.resource says which side of the board the error is about (job or job_offer).

{
  "error": {
    "code": "jobs.duplicate_offer",
    "message": "Firm already has a pending offer on this job",
    "details": { "resource": "job_offer" },
    "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab"
  }
}
Code Status Raised when
jobs.not_found 404 The job does not exist (also for an unknown job_id on GET or POST /job-offers)
jobs.offer_not_found 404 The job offer does not exist
jobs.access_denied 403 Caller has no access to the job’s client account
jobs.provider_membership_required 403 Caller is not a direct, active member of provider_client_account_id
jobs.not_a_provider_firm 403 GET /jobs (marketplace scope) or GET /jobs/{id}/reports for an account that is not a registered accounting/auditing firm
jobs.owner_role_required 403 The action needs a client-account owner (role CA)
jobs.relation_not_available 403 A with relation outside client was requested in the marketplace scope
jobs.job_closed 403 Report download attempted on a job that has left OPEN
jobs.invalid_job_data 400 Missing body, unknown job type, or missing/oversized description. A missing or inaccessible client_account_id gets jobs.access_denied
jobs.invalid_offer_data 400 Missing body; an empty or oversized message; a missing start date, or a missing or earlier end date on a one-off job; a negative price; a currency code that isn’t three letters; or an offering account that is not an accounting/auditing firm
jobs.offer_scope_required 400 GET /job-offers without job_id or provider_client_account_id
jobs.duplicate_offer 400 The firm already has a PENDING offer on this job
jobs.own_job_offer 400 The offering firm posted the job itself
jobs.invalid_status_transition 400 The job or offer is no longer in a status that allows the transition
jobs.unsupported_update 400 PATCH body asks for something other than a supported status change
jobs.invalid_report_request 400 Missing report_type, or a missing year or one outside the current/previous one (details.parameter names it)
common.serialization_error 400 A body field of the wrong type, such as a date or price that can’t be parsed or a non-numeric id
common.validation_error 400 An unknown status or report_type value in the query string
common.not_acceptable 406 GET /jobs/{id}/reports with an Accept header that allows neither xlsx nor pdf