Back to neotek ↗Get Sandbox Access

GetEStatementPDF

GEThttps://test.api.neotek.sa/financial-statements/v1/e-statements/{StatementId}/pdf

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

Returns the same statement as a ready-made PDF — a formatted document you can hand to a customer, upload to a loan file, or attach to an application, without building the layout yourself.

Path parameters:

ParameterRequiredDescription
StatementIdRequiredthe id of the statement to retrieve, returned per account by EStatementsRequest

Headers:

ParameterRequiredDescription
authorizationRequiredBearer <ACCESS_TOKEN>
x-request-idOptional
cURL
curl 'https://test.api.neotek.sa/financial-statements/v1/e-statements/{StatementId}/pdf' \  -H 'Authorization: Bearer <ACCESS_TOKEN>'

Response (PDF truncated — the real value is the full base64-encoded document)

JSON
{    "Data": {        "Status": "Completed",        "PDF": "JVBERi0xLjQKJZOMi54gUmVwb3J0TGFiIEdlbmVyYXRlZCBQREYgZG9jdW1lbnQgKG9wZW5zb3VyY2UpCjEgMCBvYmoKPDwKL0YxIDIgMCBSIC9GMiswIDExIDAgUiAvRjMgNSAwIFIKPj4KZW5kb2JqCjIgMCBvYmoK…"    }}

Decode Data.PDF from base64 to get the .pdf file.

Errors

CodeStatusCause and Action
400Bad RequestInvalid or missing request fields. Check the error Code and Path. Common: NTSP.ERROR.400.349 = PSUId is mandatory.
401UnauthorizedToken missing, expired, or invalid. Refresh the bearer token and retry.
403ForbiddenNo valid subscription or insufficient scope. Verify client credentials and that the correct scope is included for the service being called.
405Method Not AllowedWrong HTTP verb for this endpoint. Check the endpoint specification.
406Not AcceptableAccept header mismatch. Use application/json.
429Too Many RequestsRate limit exceeded. Wait the number of seconds in the Retry-After response header before retrying.
500Internal Server ErrorUnexpected server error. Retry with exponential backoff. Include x-request-id when raising a support ticket.