Capture immutable prepared-document identity with encrypted TIN; this does not assert filing or furnishing
POST
/customers/{id}/tax-document-identitiesPrepared-document capture does not assert furnishing or filing. Fresh staff customers:tax:read with explicit information_return purpose, or actual svc_accounts with customers:tax:read and the verified staff subject in on_behalf_of. Source name/address and full TIN are copied under the customer lock; only immutable metadata/last4 leave this call, and the TIN remains separately encrypted. Same customer/year/document_ref replays the original snapshot.
Path parameters
idstringRequiredQuery parameters
purposestringOptionalon_behalf_ofstringOptionalHeaders
Idempotency-KeystringOptionalSend on every write that creates or changes money or state; a replay with the same key returns the original result with 200.
Body parameters
document_refstringRequiredtax_yearintegerRequiredReturns
200 OK
addressobjectRequired6 child attributes
citystringRequiredcountrystringRequiredline1stringRequiredline2stringOptionalpostal_codestringRequiredstatestringRequiredcustomer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
document_refstringRequiredidstringRequiredlegal_namestringRequiredrecorded_atstring · date-timeRequiredrecorded_bystringRequiredrecorded_forstringOptionaltax_id_last4stringRequiredtax_yearintegerRequiredtin_typestringRequiredErrors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503