One year-end tax and audit pack (UC-A-08)
Status: current as of 2026-11-16.
Who this is for
A platform's finance team that needs, at year end, the payouts per recipient for 1099s, the payments behind them, and a record of who did what with the keys. When you finish, you hold one year-end file for every payee, the payments behind it, monthly statements per customer, and the audit log.
Before you start
- Account: a SET API platform account, on the SET API plan.
- Key: a SET API key with
readfor the reads, andwriteto build statements (POST /v1/statements). With thedirect_depositscope the same key also reads the Direct Deposit section. - Switches: none.
- What must exist: a year of payouts. SET does not decide who is reportable or which form applies, and files nothing; each paying customer files for its own payees.
By API
- Read every payout paid in the year, each with its
verification, and the answer'sexceptionslist. Resolve the exceptions first. Addformat=csvfor a file, orcustomer=cus_…for one customer.GET /v1/tax/payouts?year=2026The next step uses:exceptions, each row'sverification.
- Read one year-end file for every payee: per paying customer and recipient, the count, total, SET's fees, whether the total meets the year's threshold, and how many payouts are verified; and, under
directDeposit, the payees you paid by Direct Deposit and Payable Email. Without thedirect_depositscope, leaveincludeout.GET /v1/tax/1099?year=2026&include=direct_depositThe next step uses:thresholdUsd,payees,summary,directDeposit.payees,directDeposit.matching.
- Read the payments behind the Direct Deposit totals with the same key. For a CSV of the Direct Deposit section,
GET /api/partner/tax/1099?year=2026&format=csv;includeon/v1/tax/1099answers JSON only.GET /api/partner/tax/payments?year=2026The fields to read: each row'sdate,amountUsd,payeeId,kind,reference.
- Build each customer's monthly statement, then download it once
stateisready(each read builds more).POST /v1/statements·Idempotency-Key``json { "customer": "cus_…", "month": "2026-10" }`Then [GET /v1/statements/{id}](/docs/set-api/get-statement), [GET /v1/statements/{id}/csv](/docs/set-api/statement-csv) or [GET /v1/statements/{id}/pdf](/docs/set-api/statement-pdf). The fields to read:id,state,downloads`.
- Read who did what: every write by your keys and by SET's operator for you, newest first, each key named by its prefix.
format=csvanswers the same page as CSV.GET /v1/audit_logThe fields to read:actor,method,path,objectId,status,requestId,createdAt,nextCreatedBefore.
In SET Console
- Read the year's payouts with their verification. Console: not available. Use the API call.
- In Platform View, open Workflows and choose Year-end tax and audit pack. Fill in Year, then Review and Confirm: it reads the year's 1099 data and starts a ledger export. Reports also shows Payouts for 1099s for this year.
- Where the deployment has Direct Deposit on, Deposit View's Payees section shows Payees this year and 1099 data, and its Workflows has Year-end 1099 totals (Year), which gives each payee's total as a CSV.
- Choose Build a month-end statement in Platform View's Workflows: Merchant and Month, then Review and Confirm. Reports shows Statements.
- Read the audit log. Console: not available. Use the API call. Compliance shows Audit log verification.
Check it worked
GET /v1/tax/1099?year=2026:summary.payees,summary.atOrOverThreshold, and an emptyexceptions.GET /v1/statements?customer=cus_…: each statement'sstateisready.- No webhook fires for these reads.
If it fails
400 year_invalid,400 format_invalid,400 customer_invalid: the query.400 include_invalid:includeis onlydirect_deposit, and only onGET /v1/tax/1099.403 scope_missing:include=direct_depositneeds a key with thedirect_depositscope.400 format_invalidwithinclude:include=direct_depositanswers JSON; take the CSV from the Direct Deposit call.400 customer_invalidwithinclude: it covers the whole business; leavecustomerout.403 tax_forms_off: the Direct Deposit tax export is off for your account.400 month_invalid,400 month_in_future,409 statement_conflict: building a statement.409 statement_building: the statement is not ready yet; read it again.400 created_before_invalid,400 actor_invalid: the audit log's paging or filter.401 api_key_invalid,429 rate_limited: the key, or the rate limit.
All codes: Errors. Retrying a POST safely: Idempotency.
Related
- Statements and tax data
- Metadata, audit log and versions
- The two groups in one export cannot be matched person to person: a Direct Deposit payee id is opaque per payer, or the address paid, and the answer's
matchingsays so. One person may appear in both. The threshold is $2,000 from tax year 2026 ($600 before). No names, emails or bank details are in the exports; join them in your e-file provider. - Pay US contractors by email
- All use cases
Changes
- 2026-11-16: Every use case step by step, by API and in the console.