Reports
Generate PDF and JSON summaries based on Argyle's data sets.
Example reports:
Before generating a report:
- To ensure full data availability, we recommend subscribing to the
reports.ready
webhook, which is sent when sufficient data has been retrieved to generate a verification report. - Depending on the data retrieval speed limits of the underlying payroll platform, it can take from a few seconds up to several minutes after a new account connection before enough data has been synced to generate a complete report.
- Visit the data availability section of our API Guide for more information on the timing of data retrieval.
After generating a report:
- A new report object is created. The
file_url
andjson_url
properties contain links to the report PDF and report JSON. - The report PDF and report JSON will also appear and can be downloaded within Console.
#The report object
- #idstring (uuid)
Unique ID of the report object.
Also the "Reference #" on the report PDF.
- #userstring (uuid)ID of the user associated with the report.
- #(Deprecated) reference_idstring (uuid)
Report PDF identifier.
- #(Deprecated) generated_atstring (datetime)
Timestamp (ISO 8601) when the report was requested.
- #created_atstring (datetime)
Timestamp (ISO 8601) when the report was requested.
- #typestring (enum)
The type of report.
- #statusstring (enum)
Progress of report generation.
- #file_urlstring
Download link to the report PDF.
— Requires Argyle authentication headers. - #json_urlstring
Download link to the report in JSON.
— Requires Argyle authentication headers. - #accountsarray of objectsThe accounts used to generate the report.
- #metadataobjectAny metadata for internal use added when generating the report.
- #last_synced_atstring (datetime)
Timestamp (ISO 8601) when the account used to generate the report was last scanned for new data before the report was generated. If multiple accounts were used, the more recent timestamp.
Used to populate the "Data as of" date on the report PDF.
- #external_idstring
The
external_id
of the user, otherwisenull
.
1{
2 "id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
3 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
4 "reference_id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
5 "generated_at": "2023-03-09T16:22:06.081Z",
6 "created_at": "2023-03-09T16:22:06.081Z",
7 "type": "voie",
8 "status": "generated",
9 "file_url": "www.argyle.com/storagename/pdf",
10 "json_url": "www.argyle.com/storagename/json",
11 "accounts": [
12 {
13 "id": "0187c66e-e7e5-811c-b006-2232f00f426a",
14 "item": "item_123456789",
15 "last_synced_at": "2023-03-09T14:08:25.069105Z"
16 },
17 {
18 "id": "0185a8b8-60eb-80ca-7482-5f24504573f7",
19 "item": "item_000000001",
20 "last_synced_at": "2023-03-01T05:10:59.558295Z"
21 }
22 ],
23 "metadata": {},
24 "last_synced_at": "2023-03-09T14:08:25.069Z",
25 "external_id": "July_Connection"
26}
#Generate a report
Generates a new report and returns a report object.
There is a daily limit of 10 reports per user to prevent excessive report generation due to accidental client-side errors.
If the daily report limit is reached, deleting a previously generated report from the same 24 hour period will allow another report to be generated.
- #typestring (enum)required
The type of report to generate.
1curl --request POST \
2 --url https://api.argyle.com/v2/reports/voie \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json' \
5 --data '{
6 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69"
7 }'
1{
2 "id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
3 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
4 "reference_id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
5 "generated_at": "2023-03-09T16:22:06.081Z",
6 "created_at": "2023-03-09T16:22:06.081Z",
7 "type": "voie",
8 "status": "generating",
9 "file_url": "www.argyle.com/storagename/pdf",
10 "json_url": "www.argyle.com/storagename/json",
11 "accounts": [
12 {
13 "id": "0187c66e-e7e5-811c-b006-2232f00f426a",
14 "item": "item_123456789",
15 "last_synced_at": "2023-03-09T14:08:25.069105Z"
16 },
17 {
18 "id": "0185a8b8-60eb-80ca-7482-5f24504573f7",
19 "item": "item_000000001",
20 "last_synced_at": "2023-03-01T05:10:59.558295Z"
21 }
22 ],
23 "metadata": {},
24 "last_synced_at": "2023-03-09T14:08:25.069Z",
25 "external_id": "July_Connection"
26}
#Retrieve a report
Retrieves a report object.
- #idstring (uuid)ID of the report object to be retrieved.required
1curl --request GET \
2 --url https://api.argyle.com/v2/reports/{id} \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1{
2 "id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
3 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
4 "reference_id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
5 "generated_at": "2023-03-09T16:22:06.081Z",
6 "created_at": "2023-03-09T16:22:06.081Z",
7 "type": "voie",
8 "status": "generated",
9 "file_url": "www.argyle.com/storagename/pdf",
10 "json_url": "www.argyle.com/storagename/json",
11 "accounts": [
12 {
13 "id": "0187c66e-e7e5-811c-b006-2232f00f426a",
14 "item": "item_123456789",
15 "last_synced_at": "2023-03-09T14:08:25.069105Z"
16 },
17 {
18 "id": "0185a8b8-60eb-80ca-7482-5f24504573f7",
19 "item": "item_000000001",
20 "last_synced_at": "2023-03-01T05:10:59.558295Z"
21 }
22 ],
23 "metadata": {},
24 "last_synced_at": "2023-03-09T14:08:25.069Z",
25 "external_id": "July_Connection"
26}
#Delete a report
Deletes a report object.
- #idstring (uuid)ID of the report object to be deleted.required
1curl --request DELETE \
2 --url https://api.argyle.com/v2/reports/{id} \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1"204 status code: No content."
#List all reports
Returns an array of all report objects.
1curl --request GET \
2 --url https://api.argyle.com/v2/reports?limit=2 \
3 --header 'accept: application/json' \
4 --header 'content-type: application/json'
1[
2 {
3 "id": "5b3fa756-1d76-43e1-55f6-e29fc6ae535d",
4 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
5 "reference_id": "5b3fa756-1d76-43e1-55f6-e29fc6ae535d",
6 "generated_at": "2023-03-01T22:45:08.916Z",
7 "created_at": "2023-03-01T22:45:08.916Z",
8 "type": "voe",
9 "status": "generated",
10 "file_url": "www.argyle.com/storagename/pdf",
11 "json_url": "www.argyle.com/storagename/json",
12 "accounts": [
13 {
14 "id": "018e6a25-130b-3b98-a3ca-1658cb3afc26",
15 "item": "item_987654321",
16 "last_synced_at": "2023-03-01T19:20:21.576363Z"
17 }
18 ],
19 "metadata": {},
20 "last_synced_at": "2023-03-01T19:20:21.576Z",
21 "external_id": null
22 },
23 {
24 "id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
25 "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
26 "reference_id": "43a2c6c3-1e63-91e5-88e3-f9ab2dcc489b",
27 "generated_at": "2023-03-09T16:22:06.081Z",
28 "created_at": "2023-03-09T16:22:06.081Z",
29 "type": "voie",
30 "status": "generated",
31 "file_url": "www.argyle.com/storagename/pdf",
32 "json_url": "www.argyle.com/storagename/json",
33 "accounts": [
34 {
35 "id": "0187c66e-e7e5-811c-b006-2232f00f426a",
36 "item": "item_123456789",
37 "last_synced_at": "2023-03-09T14:08:25.069105Z"
38 },
39 {
40 "id": "0185a8b8-60eb-80ca-7482-5f24504573f7",
41 "item": "item_000000001",
42 "last_synced_at": "2023-03-01T05:10:59.558295Z"
43 }
44 ],
45 "metadata": {},
46 "last_synced_at": "2023-03-09T14:08:25.069Z",
47 "external_id": "July_Connection"
48 }
49]