Learn about theDocumentation Index
Fetch the complete documentation index at: https://docs.argyle.com/llms.txt
Use this file to discover all available pages before exploring further.
/documents endpoint.
The document object contains information from payroll documents that are retrieved and processed by Argyle after a user connects a payroll account. The contents of each specific document can be found in the document object’s metadata.
The document object
Attributes
id(string (uuid), optional): Unique ID of the document associated with a user’s payroll account.account(string (uuid), optional): ID of the payroll account associated with the document.employer(string, optional): The name of the company or entity that employs the user.document_number(string, optional): The identification number on the document.document_type_description(string, optional): A free-form text describing the document’s type—for example, W-2 Form 2019.ocr_data(object, optional)—(note, optional)form_type(note, optional)omb_no(string, optional): OMB reference number.year(string, optional): Calendar year.form(object, optional): Information scanned from the payroll document.recipient(object, optional)name(string, optional): Recipient name, as it appears on the form.address(note, optional)payer(object, optional)name(string, optional): Payer name, as it appears on the form.address(note, optional)warnings(array of objects, optional): Information on scan quality and missing fields.field_name(string, optional): Which field encountered the error.message(note, optional)severity(note, optional)confidence(note, optional)ocr_page_count(integer, optional): Number of pages scanned.error(note, optional)
Retrieve a document
GET/v1/documents/{id}
- Retrieve a document with the supplied ID.
- This request returns a document object if you provided a valid identifier.
Path parameters
id(string (uuid), required): The identifier of the document to be retrieved.
- curl
- python
List documents
GET/v1/documents
- List all documents.
- This request returns an object with a
resultsproperty that contains an array of up tolimitdocument objects.
Query parameters
- curl
- python