Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-16
Browse: SET API

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 read for the reads, and write to build statements (POST /v1/statements). With the direct_deposit scope 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

  1. Read every payout paid in the year, each with its verification, and the answer's exceptions list. Resolve the exceptions first. Add format=csv for a file, or customer=cus_… for one customer. GET /v1/tax/payouts?year=2026 The next step uses: exceptions, each row's verification.
  1. 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 the direct_deposit scope, leave include out. GET /v1/tax/1099?year=2026&include=direct_deposit The next step uses: thresholdUsd, payees, summary, directDeposit.payees, directDeposit.matching.
  1. 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; include on /v1/tax/1099 answers JSON only. GET /api/partner/tax/payments?year=2026 The fields to read: each row's date, amountUsd, payeeId, kind, reference.
  1. Build each customer's monthly statement, then download it once state is ready (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`.
  1. 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=csv answers the same page as CSV. GET /v1/audit_log The fields to read: actor, method, path, objectId, status, requestId, createdAt, nextCreatedBefore.

In SET Console

  1. Read the year's payouts with their verification. Console: not available. Use the API call.
  2. 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.
  3. 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.
  4. Choose Build a month-end statement in Platform View's Workflows: Merchant and Month, then Review and Confirm. Reports shows Statements.
  5. Read the audit log. Console: not available. Use the API call. Compliance shows Audit log verification.

Check it worked

If it fails

  • 400 year_invalid, 400 format_invalid, 400 customer_invalid: the query.
  • 400 include_invalid: include is only direct_deposit, and only on GET /v1/tax/1099.
  • 403 scope_missing: include=direct_deposit needs a key with the direct_deposit scope.
  • 400 format_invalid with include: include=direct_deposit answers JSON; take the CSV from the Direct Deposit call.
  • 400 customer_invalid with include: it covers the whole business; leave customer out.
  • 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.

Changes

  • 2026-11-16: Every use case step by step, by API and in the console.