Read exact retained accounting artifact without asserting external import
/cards/spend/exports/{id}Verified bank-bound customer PERSON identity with customer scope, session/device and online account organization membership required. Writes require authentication within five minutes; API keys, staff and service impersonation refused. Existing maker/approver/admin roles and amount limits apply. Expense review requires distinct users AND person customer IDs. Pending/approved allocations reserve exact bank-source and receipt totals; duplicate bytes cannot be relabeled. Actual unreversed committed card journals are revalidated. Pre-export coding corrections preserve source/receipt/amount. Immutable customer-expense-json-1 exports contain balanced customer-book entries, exact review/source proofs and unique expense membership. Preparation/download never claims provider delivery/import, and never posts customer expense codes to bank GLs. See services/cards/spend/README.md.
Path parameters
idstringRequiredReturns
200 OK
artifactobjectRequiredArtifact JSON is deterministic in this declaration order. Its hash binds exact reviewed records, actual source journals and the organization authority snapshot.
7 child attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
created_atstring · date-timeRequiredentriesarray of objectsRequired9 child attributes
amountintegerRequiredcost_centerstringOptionalcurrency_codestringRequireddirectionstringRequiredexpense_idstringRequiredexternal_account_codestringRequiredmemostringRequiredsource_journal_idstringRequiredExample jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm
source_journal_sha256stringRequiredexpensesarray of objectsRequired10 child attributes
amountintegerRequiredcontent_sha256stringRequiredcreated_atstring · date-timeRequiredexport_idstringOptionalidstringRequiredreplaced_by_expense_idstringOptionalrequestobjectRequired7 child attributes
allocationsarray of objectsRequiredauthorization_idstringRequiredExample auth_2tVh8nqLxq4GbDe0K1F6S9zRcWm
coding_evidenceobjectRequiredreasonstringRequiredreceiptobjectRequiredReceipt identity is scoped to the organization and the exact processor merchant. A source document can support several partial bank payments, but only up to its declared total. Evidence is retained customer-supplied documentation, not OCR proof.
replaces_expense_idstringOptionalsettlement_account_codestringRequiredreviewobject or nullOptional6 child attributes
approvebooleanRequiredatstring · date-timeRequiredauthorityobjectRequiredAuthority is the observed current organization membership and separately bank- verified person identity. Neither the request body nor a receipt supplies it.
content_sha256stringRequiredevidenceobjectRequiredreasonstringRequiredsourceobjectRequired15 child attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
amountintegerRequiredauthorization_idstringRequiredExample auth_2tVh8nqLxq4GbDe0K1F6S9zRcWm
card_idstringRequiredExample card_2tVh8nqLxq4GbDe0K1F6S9zRcWm
card_kindstringRequiredcurrency_codestringRequiredjournalobjectRequiredjournal_keystringRequiredjournal_sha256stringRequiredkindstringRequiredPurchase or refund, derived from actual bank source
merchant_idstringRequiredmerchant_namestringRequirednetwork_referencestringRequiredorganization_customer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
original_authorization_idstringOptionalExample auth_2tVh8nqLxq4GbDe0K1F6S9zRcWm
submitted_byobjectRequiredAuthority is the observed current organization membership and separately bank- verified person identity. Neither the request body nor a receipt supplies it.
12 child attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
device_sha256stringRequiredmembership_changed_bystringRequiredmembership_updated_atstring · date-timeRequiredobserved_atstring · date-timeRequiredorganization_customer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
payment_limit_amountintegerRequiredperson_customer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
rolestringRequiredsession_sha256stringRequiredstep_up_atstring · date-timeRequireduser_idstringRequiredExample user_2tVh8nqLxq4GbDe0K1F6S9zRcWm
export_idstringRequiredorganization_customer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
versionstringRequiredartifact_sha256stringRequiredcreated_atstring · date-timeRequiredidstringRequiredprepared_byobjectRequiredAuthority is the observed current organization membership and separately bank- verified person identity. Neither the request body nor a receipt supplies it.
12 child attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
device_sha256stringRequiredmembership_changed_bystringRequiredmembership_updated_atstring · date-timeRequiredobserved_atstring · date-timeRequiredorganization_customer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
payment_limit_amountintegerRequiredperson_customer_idstringRequiredExample cust_2tVh8nqLxq4GbDe0K1F6S9zRcWm
rolestringRequiredsession_sha256stringRequiredstep_up_atstring · date-timeRequireduser_idstringRequiredExample user_2tVh8nqLxq4GbDe0K1F6S9zRcWm
requestobjectRequired3 child attributes
account_idstringRequiredExample acct_2tVh8nqLxq4GbDe0K1F6S9zRcWm
expense_idsarray of stringsRequiredformat_versionstringRequiredErrors
Every error is a problem document with a stable code. See Errors.
400401403404409412413422424429500503