Link a file already in Cybooks to a reimbursement line

Adds a file the company already holds to a line of a draft reimbursement run: a bill's attachment (source_type: bill), an inbox document (document_extraction) or an expense claim's receipt (expense_claim), named by source_id and, when the record holds more than one file, attachment_id (the file id from bill.attachments or expenseClaim.receipt.index). The file is found only inside this company and copied inside its own storage; the source keeps its file. The caller needs that record's view permission (view_bills, view_document_extractions, view_all_expense_claims) and, for an API credential, its read scope (bills:read, document-extractions:read, expense-claims:read), else 403 document_source_forbidden. Other refusals: 404 document_not_found, 404 reimbursement_line_not_found, 409 reimbursement_run_locked, 422 document_attachment_required, 422 document_not_linkable (not a PDF, JPEG or PNG, over 10 MB, or not in this company's storage). Answers 201 with the new document and the run's new ETag. Requires Idempotency-Key, If-Match with the run's ETag, and the reimbursements:write OAuth scope with manage_reimbursement.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
Body Params

Fields accepted to link a file already in cybooks to a reimbursement line. The schema identifies required and optional values.

Headers
Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*