stabisoDocs

API reference

1099 forms

1099 forms of US companies: the box each vendor's payments are reported in (Form 1099-NEC box 1, Form 1099-MISC box 1 or 3, or none), the vendors who get a form for a year's payments and what they lack, each recipient's copy as a PDF and the figures to file as a CSV. Nothing here files: the company files through the IRS.

Operation Summary Scope Idempotency-Key
GET /v1/entities/{entity}/information-returns List a year's 1099 forms read
PUT /v1/entities/{entity}/vendors/{party}/information-return Mark what a vendor's payments are reported as draft
GET /v1/entities/{entity}/vendors/{party}/information-return/statement Print a vendor's copy of its 1099 form read

GET /v1/entities/{entity}/information-returns

List a year's 1099 forms

The 1099 forms of the company for a calendar year's payments: every US vendor paid in the year, marked with its box (PUT .../vendors/{party}/information-return) or not, and every vendor abroad that is marked. What a vendor was paid is its posted payments by payment date and the tax withheld from them, less what it paid back; a card purchase is paid to the card's issuer, not to the vendor. A vendor marked with a box and paid at least the year's threshold ($600 to 2025, $2,000 from 2026, from the country's rules) gets a form: ready, or missing its tax ID or address. With the days the copies and the filings are due, moved past a weekend or federal holiday, and what the company's own settings lack. Read-only; 422 information_returns_not_offered for a company outside the United States, information_returns_year for a year before 2020 or after this one.

Required scope read (admin implies every scope)
Operation id get_year_v1_entities__entity__information_returns_get

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).
query year integer or null The calendar year of the payments, from 2020 to this one; default: the year whose forms come next (last year until the end of March, then this one).
query format "csv" | "json" json (default) or csv: one row a form due, with the payer, the recipient's full tax ID and address, the box's amount and the tax withheld, to file through the IRS's IRIS portal or a filing service. (default "json")
query download boolean true sends the file as an attachment; false inline. (default false)

Example request

curl "$ERP_URL/v1/entities/CH01/information-returns" \
  -H "Authorization: Bearer $ERP_KEY"

Responses

Status Meaning Body
200 JSON (the forms of the year) or CSV (one row a form, to file). YearOut, text/csv
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "entity": "string",
  "year": 1,
  "currency": "string",
  "threshold": "string",
  "recipient_due": "2026-09-21",
  "nec_due": "2026-09-21",
  "misc_due": "2026-09-21",
  "misc_paper_due": "2026-09-21",
  "payer_missing": [
    "address"
  ],
  "rows": [
    {
      "party_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "party_code": "string",
      "party_name": "string",
      "box": "misc_1",
      "paid": "string",
      "withheld": "string",
      "payments": 1,
      "status": "below",
      "missing": [
        "address"
      ],
      "tin_shown": "string",
      "link": "string"
    }
  ],
  "forms": 1,
  "can_file": true
}

PUT /v1/entities/{entity}/vendors/{party}/information-return

Mark what a vendor's payments are reported as

Mark the vendor once with the box its payments are reported in: nec_1 (a contractor's fees), misc_1 (rent), misc_3 (other income), or none (no form: a corporation, goods, a card issuer). It holds for every year; the same box again changes nothing. 404 for an unknown vendor; 422 information_returns_not_offered outside the United States.

Required scope draft (admin implies every scope)
Idempotency-Key not used
Operation id put_box_v1_entities__entity__vendors__party__information_return_put

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).
path party string yes Vendor code, e.g. V-BM, or its id. A customer is not a vendor.

Request body

application/json (required): VendorBoxInput

Field Type Required Description
box "misc_1" | "misc_3" | "nec_1" | "none" yes What the vendor's payments are reported as: nec_1 (1099-NEC box 1, nonemployee compensation: fees of a contractor, a lawyer), misc_1 (1099-MISC box 1, rents), misc_3 (1099-MISC box 3, other income: prizes, awards) or none (no form: a corporation, payments for goods, a card issuer).

Example request

curl -X PUT "$ERP_URL/v1/entities/CH01/vendors/V-BM/information-return" \
  -H "Authorization: Bearer $ERP_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "box": "nec_1"
}'

Responses

Status Meaning Body
200 OK VendorBoxOut
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
409 The request conflicts with the data: an Idempotency-Key reused with a different request, a closed period, or an integrity rule of the database (conflict, integrity_violation). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Example response (shape)

{
  "party_code": "string",
  "party_name": "string",
  "box": "misc_1",
  "updated_at": "2026-09-21T09:30:00Z"
}

GET /v1/entities/{entity}/vendors/{party}/information-return/statement

Print a vendor's copy of its 1099 form

The recipient's copy (Copy B) of the vendor's form for the year, as a PDF on the company's letterhead, in the IRS's English: the payer, the recipient with its tax ID shown only by its last four digits, the box's amount, the tax withheld and the IRS's legend. The header X-Content-SHA256 carries its SHA-256. 422 information_return_not_due when the vendor gets no form for the year (not marked, or paid less than the threshold).

Required scope read (admin implies every scope)
Operation id get_statement_v1_entities__entity__vendors__party__information_return_statement_get

Parameters

In Name Type Required Description
path entity string yes Entity code, e.g. CH01 (GET /v1/entities).
path party string yes Vendor code, e.g. V-BM, or its id. A customer is not a vendor.
query year integer or null The calendar year of the payments, from 2020 to this one; default: the year whose forms come next (last year until the end of March, then this one).
query download boolean true sends the file as an attachment; false inline. (default false)

Example request

curl "$ERP_URL/v1/entities/CH01/vendors/V-BM/information-return/statement" \
  -H "Authorization: Bearer $ERP_KEY"

Responses

Status Meaning Body
200 The PDF. application/pdf
401 Missing or invalid API key (unauthorized). ErrorEnvelope
403 The caller lacks the required scope (missing_right, with scope), the key belongs to no person where a person is needed (forbidden), or the approval policy denies the action (policy_denied, with action and rule_id). ErrorEnvelope
404 The resource does not exist, or belongs to another organization (not_found). ErrorEnvelope
422 Validation failed: the error envelope (validation_failed). For a malformed body or parameter its message is in sentences ("Line 2: the quantity must be above zero") and fields lists each error with pydantic's loc, type and msg beside its sentence (message) and its parts, to word it in another language: items (name and number from 1: line 2), field (its name as sent) and the rule it breaks with its limit, count and choices (none for a validator's own sentence); FastAPI's own detail list stays beside the envelope. HTTPValidationError

Schemas

ReturnRow

Field Type Required Description
party_id string (uuid) yes The vendor's id.
party_code string yes The vendor's code.
party_name string yes The vendor's name.
box "misc_1" | "misc_3" | "nec_1" | "none" or null yes The vendor's box: nec_1 (1099-NEC box 1, nonemployee compensation: fees of a contractor, a lawyer), misc_1 (1099-MISC box 1, rents), misc_3 (1099-MISC box 3, other income: prizes, awards) or none (no form: a corporation, payments for goods, a card issuer). Null: not marked yet.
paid string yes What the company paid the vendor in the year, in its currency: its posted payments by payment date and the tax withheld from them, less the refunds it received from the vendor. A card purchase is no payment to the vendor (its issuer reports it on a 1099-K).
withheld string yes The federal income tax withheld from those payments (backup withholding, box 4 of the form).
payments integer yes How many payments that is.
status "below" | "missing" | "no_form" | "ready" | "unmarked" yes ready (a form is due and the vendor has what it needs), missing (a form is due and the vendor lacks its tax ID or address: missing), below (paid less than the threshold, marked or not: no form this year), unmarked (a vendor in the country paid at least the threshold, not marked yet: decide its box), no_form (marked as getting no form; listed while it was paid in the year, so the mark can be changed back).
missing array of "address" | "tin" yes What the form needs that the vendor card lacks: tin (its tax ID: EIN or SSN), address (street, town, state or ZIP code).
tin_shown string or null yes The tax ID as the recipient's copy prints it, all but the last four digits hidden (XXX-XX-6789); null without one.
link string yes The vendor card in the app.

VendorBoxInput

Field Type Required Description
box "misc_1" | "misc_3" | "nec_1" | "none" yes What the vendor's payments are reported as: nec_1 (1099-NEC box 1, nonemployee compensation: fees of a contractor, a lawyer), misc_1 (1099-MISC box 1, rents), misc_3 (1099-MISC box 3, other income: prizes, awards) or none (no form: a corporation, payments for goods, a card issuer).

VendorBoxOut

Field Type Required Description
party_code string yes The vendor's code.
party_name string yes The vendor's name.
box "misc_1" | "misc_3" | "nec_1" | "none" yes nec_1 (1099-NEC box 1, nonemployee compensation: fees of a contractor, a lawyer), misc_1 (1099-MISC box 1, rents), misc_3 (1099-MISC box 3, other income: prizes, awards) or none (no form: a corporation, payments for goods, a card issuer).
updated_at string (date-time) yes When it was marked so.

YearOut

Field Type Required Description
entity string yes Code of the company.
year integer yes The calendar year of the payments.
currency string yes The company's currency: every amount is in it.
threshold string yes The least paid in the year that needs a form.
recipient_due string (date) yes The day the recipients have their copies by.
nec_due string (date) yes The day the 1099-NEC is filed by.
misc_due string (date) yes The day the 1099-MISC is filed by electronically.
misc_paper_due string (date) yes The day the 1099-MISC is filed by on paper.
payer_missing array of "address" | "tin" yes What the forms need of the company itself that its settings lack: tin (its EIN), address.
rows array of ReturnRow yes Every vendor in the country that was paid in the year, marked or not, and every vendor abroad that is marked (also those marked as getting no form); largest first.
forms integer yes How many forms are due (ready and missing).
can_file boolean yes Whether the copies and the figures to file can be made: the company has its EIN and address. Only ready forms are in them.
Stabiso, the Enterprise System of Record · generated from the code and its guides · release 3262ae655e81