Open a document
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
One document: its fields, its text and a link to the file that works for 15 minutes. Owners and admins only.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuiddocument_id*stringFormat
uuidRequest fulfilled, document follows
application/json- response
amount_minor?integer|nullconfidence*numbercreated_at*stringFormat
date-timecurrency?string|nullduplicate_candidates?integerDefault
0duplicates?array<>entity_id?|nullfields*array<>id*stringFormat
uuidis_duplicate?booleanDefault
falsekind*stringmatched_transaction_id?|nullmethod*stringmime*stringname*stringoccurred_on?string|nullpages*integerproject_id?|nullreviewed_at?|nullsha256*stringsize_bytes*integerstatus*stringtext*stringurl*stringurl_expires_at*stringFormat
date-timecurl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "amount_minor": 0, "confidence": 0, "created_at": "2019-08-24T14:15:22Z", "currency": "string", "duplicate_candidates": 0, "duplicates": [ { "amount_minor": 0, "currency": "string", "decision": "pending", "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6", "duplicate_document_id": "2c52f236-67b5-4095-8b88-1219a49d267d", "entity_id": "8161163a-f227-466f-bc01-090a01e80165", "entity_name": "string", "name": "string", "occurred_on": "string", "review_token": "string" } ], "entity_id": "8161163a-f227-466f-bc01-090a01e80165", "fields": [ { "confidence": 0, "confirmed": true, "edit_value": "string", "key": "string", "label": "string", "needs_review": true, "value": null } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_duplicate": false, "kind": "string", "matched_transaction_id": "9a05f196-d636-4dd6-a334-fee9d01e4b49", "method": "string", "mime": "string", "name": "string", "occurred_on": "string", "pages": 0, "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "reviewed_at": "2019-08-24T14:15:22Z", "sha256": "string", "size_bytes": 0, "status": "string", "text": "string", "url": "string", "url_expires_at": "2019-08-24T14:15:22Z"}