GetEStatementPDF
GET
https://test.api.neotek.sa/financial-statements/v1/e-statements/{StatementId}/pdfSandbox 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:
| Parameter | Required | Description |
|---|---|---|
StatementId | Required | the id of the statement to retrieve, returned per account by EStatementsRequest |
Headers:
| Parameter | Required | Description |
|---|---|---|
authorization | Required | Bearer <ACCESS_TOKEN> |
x-request-id | Optional | — |
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
| Code | Status | Cause and Action |
|---|---|---|
400 | Bad Request | Invalid or missing request fields. Check the error Code and Path. Common: NTSP.ERROR.400.349 = PSUId is mandatory. |
401 | Unauthorized | Token missing, expired, or invalid. Refresh the bearer token and retry. |
403 | Forbidden | No valid subscription or insufficient scope. Verify client credentials and that the correct scope is included for the service being called. |
405 | Method Not Allowed | Wrong HTTP verb for this endpoint. Check the endpoint specification. |
406 | Not Acceptable | Accept header mismatch. Use application/json. |
429 | Too Many Requests | Rate limit exceeded. Wait the number of seconds in the Retry-After response header before retrying. |
500 | Internal Server Error | Unexpected server error. Retry with exponential backoff. Include x-request-id when raising a support ticket. |