Back to neotek ↗Get Sandbox Access

GetFilingFiles

GEThttps://test.api.neotek.sa/qawaem/v1/get-filing-files

Sandbox URL · in Production call https://api.neotek.sa

The documents behind one filing, base64-encoded. A single filing can carry several files — typically the statements as a PDF alongside the XBRL data as XML.

Query parameters:

ParameterRequiredDescription
filingCodeRequiredthe code of the filing to download, from GetCRDetails

Headers:

ParameterRequiredDescription
authorizationRequiredBearer <ACCESS_TOKEN>, with scope qawaem_establishment_information
x-request-idOptionalan RFC 4122 UUID you generate; quote it when raising a support ticket
sub-clientOptionalidentifies the downstream consumer when one client fronts several
cURL
curl -G 'https://test.api.neotek.sa/qawaem/v1/get-filing-files' \  -H 'Authorization: Bearer <ACCESS_TOKEN>' \  -d 'filingCode=<filingCode>'

Response (FileContent truncated — the real value is the full base64-encoded file)

JSON
{    "Data": [        {            "FileName": "FS.pdf",            "Extension": ".pdf",            "ContentType": "application/pdf",            "FileContent": "JVBERi0xLjcNCiW1tbW1DQox..."        },        {            "FileName": "MCI_7000000001_06Aug2021.xml",            "Extension": ".xml",            "ContentType": "application/pdf",            "FileContent": "PD94bWwgdmVyc2lvbj0iMS4w..."        }    ]}

Errors

CodeStatusCause and Action
400Bad RequestRequired field missing, or a value fails validation — check Code and Path in the body
401UnauthorizedBearer token missing, expired, or invalid
403ForbiddenToken doesn't carry the qawaem_establishment_information scope
404Not FoundNo resource matches the identifier provided
405Method Not AllowedHTTP verb not supported on that path
406Not AcceptableAccept header doesn't match a supported representation
415Unsupported Media TypeContent-Type missing or wrong
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error