Download OpenAPI specification:
PTX Connect API
The process for API authentication uses Oauth2 and is used across PTX for One PTX modules and is not module specific. See Authentication for details.
These API calls are designed to collect reports for batches generated by PTX. Reports are of type PDF, PS or PCL format.
Returns all report files for a batch.
| batchId required | integer <int64> Batch ID. |
https://documents.uk.pt-x.com/api/batches/1234/reportfiles
[- {
- "fileId": 3001,
- "fileGuid": "e2d258db-59b7-4b86-a724-6011d56dd567",
- "accountId": 2001,
- "batchId": 1234,
- "printReport": true,
- "fileName": "batch_report.pdf",
- "creationDate": "2025-05-10T08:40:27.0479142Z"
}, - {
- "fileId": 3002,
- "fileGuid": "3f47978c-4eb5-484a-a1b6-867b2d79d830",
- "accountId": 2001,
- "batchId": 1234,
- "parentReportFile": 3001,
- "printReport": false,
- "fileName": "detailed_report.xlsx",
- "creationDate": "2025-05-10T08:40:27.0479165Z"
}, - {
- "fileId": 3003,
- "fileGuid": "20e1d2ba-5547-4d6a-8fb7-a2e8295d8c0e",
- "accountId": 2001,
- "batchId": 1234,
- "printReport": false,
- "fileName": "metadata_report.json",
- "creationDate": "2025-05-11T08:40:27.0479167Z"
}
]Retrieves the report file for a given batch ID and report file ID.
| batchId required | integer <int64> Batch ID. |
| fileId required | integer <int64> File ID. |
https://documents.uk.pt-x.com/api/batches/1234/reportfiles/5678
Printing Services enables customers to securely outsource the printing and delivery of cheques and other financial documents.
These API calls are designed to create a new batch, and to retrieve a list of batches or details of a specific batch.
Uploads a file to create a new Printing Services batch.
| BtsBatchOptions required | string JSON string options, e.g. {"profileId":"1"}. |
| File required | string <binary> File to upload. |
{- "model": {
- "id": 3431540,
- "batchId": 3431540,
- "accountId": 22456,
- "creationDate": "2025-05-15T08:40:27.051684Z",
- "btsBatchStatus": "Validating",
- "btsProfileId": 456,
- "name": "Name",
- "inputFileGuid": "09cd828d-c389-4fb1-b59d-96bda9050926",
- "fileName": "FileName 1",
- "fileSize": 100,
- "printFileId": "ea445c5d-cd5d-44d4-8342-dd1d13bca15b",
- "validationErrors": [ ],
- "testMode": true,
- "printFactoryIdentifier": "PrintFactoryIdentifier",
- "archived": true,
- "hasBtsBatchReport": true
}
}Returns a list of Printing Services batches based on specific criteria.
| Name | string or null Name of the batch. |
| CreationDate | string or null Date that the batch was created. |
| creationdate_gte | string or null Batch created later than a specific date. |
| creationdate_lte | string or null Batch created earlier than a specific date. |
| BTSBatchStatus | string or null Status of the batch. |
| Id | integer or null <int32> Batch ID. |
| FileName | string or null Name of the uploaded file. |
| TestMode | boolean or null If set to true, batch created in test mode. |
| Archived | boolean or null If set to true, batch has been archived. |
| sort | string (BtsBatchListRawQueryString.SortFields) Enum: "Id" "Name" "CreationDate" "BtsBatchStatus" "FileName" "FileSize" Sort results by particular column. |
| limit | integer <int32> The maximum number of items to return. |
| startIndex | integer <int32> The number of items to skip. |
| order | string (SortOrder) Enum: "ASC" "DESC" Sort results in ascending or descending order. |
| freetextsearch | string or null Custom text search for File Name or Full Name. |
1. List batches by name and status https://documents.uk.pt-x.com/api/bts/batches?Name=Batch Name&BTSBatchStatus=Validating 2. Filter by creation date range https://documents.uk.pt-x.com/api/bts/batches?creationdate_gte=2025-01-01T00:00:00Z&creationdate_lte=2025-03-31T23:59:59Z 3. Paginate with sorting by creation date descending https://documents.uk.pt-x.com/api/bts/batches?limit=25&startIndex=0&sort=CreationDate&order=desc 4. Free text search https://documents.uk.pt-x.com/api/bts/batches?freetextsearch=important batch
{- "model": {
- "data": [
- {
- "id": 1001,
- "accountId": 2001,
- "creationDate": "2025-05-03T08:40:27.0544489Z",
- "btsBatchStatus": "Printed",
- "btsProfileId": 501,
- "name": "February Print Batch",
- "inputFileGuid": "2f827e1a-f918-41ed-a458-6c57187cb9a1",
- "fileName": "february_invoices.csv",
- "fileSize": 1048576,
- "printFileId": "acf799ea-bc3b-4f88-9649-2172e591fbb6",
- "testMode": false,
- "archived": false
}, - {
- "id": 1002,
- "accountId": 2002,
- "creationDate": "2025-05-09T08:40:27.0544524Z",
- "btsBatchStatus": "NeedsWork",
- "btsProfileId": 502,
- "name": "Late Submissions",
- "inputFileGuid": "87ef4bce-4af9-4898-9346-6acc6501fa76",
- "fileName": "late_subs.pdf",
- "fileSize": 2097152,
- "printFileId": "d66d7699-60c9-4a92-9a10-33f9a4fb4373",
- "testMode": true,
- "archived": false
}, - {
- "id": 1003,
- "accountId": 2003,
- "creationDate": "2025-05-13T08:40:27.0544542Z",
- "btsBatchStatus": "UploadingToPrintFactory",
- "btsProfileId": 503,
- "name": "April Statements",
- "inputFileGuid": "9217afed-2ba1-431f-bb95-7950ee0a1d8a",
- "fileName": "april_statements.xml",
- "fileSize": 524288,
- "printFileId": "272323e0-f3c9-4794-95ca-cb5655f5e111",
- "testMode": false,
- "archived": true
}
], - "recordTotal": 3,
- "summary": [
- {
- "status": "Printed",
- "total": 1
}, - {
- "status": "NeedsWork",
- "total": 1
}, - {
- "status": "UploadingToPrintFactory",
- "total": 1
}
]
}
}Returns details of a Printing Services batch using given ID.
| btsBatchId required | integer <int64> Batch ID. |
https://documents.uk.pt-x.com/api/bts/batches/1234
{- "model": {
- "id": 1234,
- "batchId": 1234,
- "accountId": 22456,
- "creationDate": "2025-05-15T08:40:27.0561438Z",
- "btsBatchStatus": "Validating",
- "btsProfileId": 456,
- "name": "Name",
- "inputFileGuid": "df333233-740d-4396-814b-01637402b775",
- "fileName": "FileName 1",
- "fileSize": 100,
- "printFileId": "7cf80bf4-f159-45ea-8b1e-1e5ef7c7e54c",
- "validationErrors": [ ],
- "testMode": true,
- "printFactoryIdentifier": "PrintFactoryIdentifier",
- "archived": true,
- "hasBtsBatchReport": true
}
}These API calls are designed to retrieve a list of documents or details of a specific document and can be used for standard or cheque documents.
Returns a list of documents based on specific criteria.
| dir | string Direction – set to out (outgoing) or in (incoming). |
| recipientemailaddress | string Recipient email address. |
| documentdate | string Document date. |
| documentdate_gte | string Used to list documents later than a specified date. |
| documentdate_lte | string Used to list documents earlier than a specified date. |
| documentdatetime_gte | string Used to list documents later than a specified datetime. |
| documentdatetime_lte | string Used to list documents earlier than a specified datetime. |
| creationdate | string Creation date. |
| creationdate_gte | string Used to list documents created later than a specified date. |
| creationdate_lte | string Used to list documents created earlier than a specified date. |
| creationdatetime_gte | string Used to list documents created later than a specified datetime. |
| creationdatetime_lte | string Used to list documents created earlier than a specified datetime. |
| sentdate | string Sent date. |
| sentdate_gte | string Used to list documents sent later than a specified date. |
| sentdate_lte | string Used to list documents sent earlier than a specified date. |
| sentdatetime_gte | string Used to list documents sent later than a specified datetime. |
| sentdatetime_lte | string Used to list documents sent earlier than a specified datetime. |
| expirydate | string OutsideRetentionDate of the the document. |
| expirydate_lte | string Used to list expired documents earlier than a specified date. |
| expirydate_gte | string Used to list expired documents later than a specified date. |
| expirydatetime_lte | string Used to list expired documents earlier than a specified datetime. |
| expirydatetime_gte | string Used to list expired documents later than a specified datetime. |
| duedate | string Due date of the document e.g. payment date. |
| duedate_lte | string Used to list documents with due date earlier than a specified date. |
| duedate_gte | string Used to list documents with due date later than a specified date. |
| duedatetime_lte | string Used to list documents with due date earlier than a specified datetime. |
| duedatetime_gte | string Used to list documents with due date later than a specified datetime. |
| documenttype | string (MailingType) Enum: "Remittance" "Invoice" "SalesQuote" "DeliveryNote" "DunningLetter" "CreditNote" "StatementOfAccount" "Cheque" "PurchaseOrder" "Miscellaneous" "OrderAcknowledgement" "LegalCorrespondence" "Label" Document type. |
| documenttype_include | Array of strings (MailingType) Items Enum: "Remittance" "Invoice" "SalesQuote" "DeliveryNote" "DunningLetter" "CreditNote" "StatementOfAccount" "Cheque" "PurchaseOrder" "Miscellaneous" "OrderAcknowledgement" "LegalCorrespondence" "Label" Document types to include. |
| documenttype_exclude | Array of strings (MailingType) Items Enum: "Remittance" "Invoice" "SalesQuote" "DeliveryNote" "DunningLetter" "CreditNote" "StatementOfAccount" "Cheque" "PurchaseOrder" "Miscellaneous" "OrderAcknowledgement" "LegalCorrespondence" "Label" Document types to exclude. |
| senderDocumentReference | string Sender document reference. |
| recipientDocumentReference | string Recipient document reference. |
| recipientReference | string Recipient reference. |
| amount | string Amount. |
| status | string (DocumentStatusQueryOptions) Enum: "ReadyToSend" "Sending" "Warning" "Delivered" "SentManually" "Viewed" "Downloaded" "PrintedByRecipient" "Unpaid" "PartPaid" "Paid" "PaymentApproved" "PaymentInitiated" "PrintedBySender" "Printing" "Failed" "Actioned" "DeliveredAll" Batch status. |
| paidStatus | string (DocumentPaidStatus) Enum: "Unknown" "PartPaid" "Paid" "Failed" "PaymentApproved" "PaymentInitiated" Invoice Outcome |
| groupBy | string (DocumentListRawQueryString.GroupByFields) Enum: "MailingId" "MailingName" "Status" "RecipientEmailAddress" "DocumentType" Specify how to group documents. |
| mailingId | integer <int64> Batch Id. |
| profileId | integer <int64> Document profile id. |
| mailingName | string Batch name. |
| currency | string Currency e.g. GBP, USD, EUR. |
| idle | integer <int32> Period that document has been idle for. |
| idle_lte | integer <int32> Used to list documents idle for less than a specified number of days. |
| idle_gte | integer <int32> Used to list documents idle for more than a specified number of days. |
| timeuntilactioned | integer <int32> Time taken to action the document. |
| discussion | string (DiscussionStatus) Enum: "None" "Closed" "Open" Discussion status. Possible values are: • None • Closed • Open |
| owner | string Document owner. |
| testMode | boolean If true, document has been uploaded using a document profile in test mode. |
| from | string Email From address. |
| companyName | string Company name. |
| sort | string (DocumentListRawQueryString.SortFields) Enum: "RecipientEmailAddress" "DocumentDate" "DocumentType" "Amount" "Status" "From" "RecipientDocumentReference" "SenderDocumentReference" "RecipientReference" "MailingName" "Discussion" "Owner" "CompanyName" "SentDate" "CreationDate" "ExpiryDate" "DueDate" "PaidStatus" Sort the results by column. |
| Done | boolean Whether the document was marked as archived. |
| Archived | boolean Whether the document was marked as archived. |
| IgnoreCompleteArchivedBatches | boolean If true, batches that were archived should not be included. |
| Revoked | boolean Revoked status of the document. |
| limit | integer <int32> The maximum number of items to return. |
| startIndex | integer <int32> The number of items to skip. |
| order | string (SortOrder) Enum: "ASC" "DESC" Sort results in ascending or descending order. |
| freetextsearch | string Custom text search for File Name or Full Name. |
1. List documents by date https://documents.uk.pt-x.com/api/documents?documentdate=2019-07-16T09:28:12.004Z 2. List documents by status https://documents.uk.pt-x.com/api/documents?status=sent 3. List documents by type and currency https://documents.uk.pt-x.com/api/documents?documenttype=invoice¤cy=GBP 4. List documents by recipient email address and date https://documents.uk.pt-x.com/api/documents?recipientemailaddress=example@gmail.com&documentdate=2019-07-11T09:28:12.004Z
{- "summary": {
- "gbp": {
- "miscellaneous": {
- "readyToSend": {
- "count": 0,
- "amount": 456,
- "idle": 0
}, - "sending": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "delivered": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "failed": {
- "count": 0,
- "amount": 23.12,
- "idle": 0
}, - "warning": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "actioned": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "viewed": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "downloaded": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "printed": {
- "count": 0,
- "amount": 0,
- "idle": 0
}, - "total": {
- "count": 0,
- "amount": 479.12,
- "idle": 0
}
}
}
}, - "data": [
- {
- "id": 3431598,
- "documentType": "Miscellaneous",
- "documentDate": null,
- "senderDocumentReference": "",
- "recipientDocumentReference": "REC-DOC-REF-002",
- "amount": 456,
- "currency": "GBP",
- "creationDate": "2025-05-12T08:40:27.0691238Z",
- "pageCount": 1,
- "sentDate": "2025-05-12T08:40:27.0691287Z",
- "viewedDate": null,
- "subject": null,
- "recipientCompanyNumber": "BOTTOM003",
- "recipientVATNumber": "VAT004",
- "recipientEmailAddress": "sandrashortland@example.com",
- "recipientTelephoneNumber": "1234567890",
- "allowSignUp": null,
- "from": "noreply@dev.ptxtest2.co.uk",
- "sentTo": "sandrashortland@example.com",
- "status": "New",
- "secretId": "ZOCAQW3IX128RQL7JZOX",
- "lastStatusChangeDate": "2025-05-12T08:40:27.06913Z",
- "comments": 0,
- "discussion": "None",
- "discussionOpen": true,
- "discussionUrl": null,
- "supportingFileTotal": 0,
- "expiryDate": "0001-01-01T00:00:00Z",
- "pendingDeletion": false,
- "dueDate": null,
- "recipientType": null,
- "revoked": false,
- "LayoutPdfFileId": null,
- "recipientId": null,
- "recipientUserId": null,
- "done": false,
- "archived": false,
- "read": false,
- "registrationUrl": null,
- "printUrl": null,
- "documentInboxUrl": null,
- "companyName": null,
- "isPromptToPayDocument": false,
- "privateInbox": true,
- "additionalRecipientsTotal": 0,
- "paidStatus": "Unknown"
}, - {
- "id": 3431600,
- "documentType": "Miscellaneous",
- "documentDate": null,
- "senderDocumentReference": "",
- "recipientDocumentReference": "REC-DOC-REF-002",
- "amount": 23.12,
- "currency": "GBP",
- "creationDate": "2025-05-12T08:40:27.0691315Z",
- "pageCount": 1,
- "sentDate": "2025-05-12T08:40:27.0691316Z",
- "viewedDate": null,
- "subject": null,
- "recipientCompanyNumber": "BOTTOM003",
- "recipientVATNumber": "VAT004",
- "recipientEmailAddress": "chris.hayes@example.com",
- "recipientTelephoneNumber": "1234567890",
- "allowSignUp": null,
- "from": "noreply@dev.ptxtest2.co.uk",
- "sentTo": "chris.hayes@example.com",
- "status": "SendFailedHardBounce",
- "secretId": "4D5NL2GJPVW9JZU9PVPV",
- "lastStatusChangeDate": "2025-05-12T08:40:27.0691318Z",
- "comments": 0,
- "discussion": "None",
- "discussionOpen": true,
- "discussionUrl": null,
- "supportingFileTotal": 0,
- "expiryDate": "0001-01-01T00:00:00Z",
- "pendingDeletion": false,
- "dueDate": null,
- "recipientType": null,
- "revoked": false,
- "LayoutPdfFileId": null,
- "recipientId": null,
- "recipientUserId": null,
- "done": false,
- "archived": false,
- "read": false,
- "registrationUrl": null,
- "printUrl": null,
- "documentInboxUrl": null,
- "companyName": null,
- "isPromptToPayDocument": false,
- "privateInbox": true,
- "additionalRecipientsTotal": 0,
- "paidStatus": "Unknown"
}
], - "recordTotal": 2
}Returns a list of archived documents.
| pendingDeletion | boolean or null If true, document is pending deletion. |
| done | boolean or null If true, documents that are marked as archived or part of a Check batch that is archived. |
| archived | boolean or null If true, documents that are marked as archived or part of a Check batch that is archived. |
| dir | string or null Direction – set to out (outgoing) or in (incoming). |
| recipientemailaddress | string or null Recipient email address. |
| documentdate | string or null Document date. |
| documentdate_gte | string or null Used to list documents later than a specified date. |
| documentdate_lte | string or null Used to list documents earlier than a specified date. |
| documentdatetime_gte | string or null Used to list documents later than a specified datetime. |
| documentdatetime_lte | string or null Used to list documents earlier than a specified datetime. |
| creationdate | string or null Creation date. |
| creationdate_gte | string or null Used to list documents created later than a specified date. |
| creationdate_lte | string or null Used to list documents created earlier than a specified date. |
| creationdatetime_gte | string or null Used to list documents created later than a specified datetime. |
| creationdatetime_lte | string or null Used to list documents created earlier than a specified datetime. |
| sentdate | string or null Sent date. |
| sentdate_gte | string or null Used to list documents sent later than a specified date. |
| sentdate_lte | string or null Used to list documents sent earlier than a specified date. |
| sentdatetime_gte | string or null Used to list documents sent later than a specified datetime. |
| sentdatetime_lte | string or null Used to list documents sent earlier than a specified datetime. |
| expirydate | string or null OutsideRetentionDate of the the document. |
| expirydate_lte | string or null Used to list expired documents earlier than a specified date. |
| expirydate_gte | string or null Used to list expired documents later than a specified date. |
| expirydatetime_lte | string or null Used to list expired documents earlier than a specified datetime. |
| expirydatetime_gte | string or null Used to list expired documents later than a specified datetime. |
| duedate | string or null Due date of the document e.g. payment date. |
| duedate_lte | string or null Used to list documents with due date earlier than a specified date. |
| duedate_gte | string or null Used to list documents with due date later than a specified date. |
| duedatetime_lte | string or null Used to list documents with due date earlier than a specified datetime. |
| duedatetime_gte | string or null Used to list documents with due date later than a specified datetime. |
| documenttype | string (MailingType) Enum: "Remittance" "Invoice" "SalesQuote" "DeliveryNote" "DunningLetter" "CreditNote" "StatementOfAccount" "Cheque" "PurchaseOrder" "Miscellaneous" "OrderAcknowledgement" "LegalCorrespondence" "Label" Document type. |
| documenttype_include | Array of strings or null (MailingType) Enum: "Remittance" "Invoice" "SalesQuote" "DeliveryNote" "DunningLetter" "CreditNote" "StatementOfAccount" "Cheque" "PurchaseOrder" "Miscellaneous" "OrderAcknowledgement" "LegalCorrespondence" "Label" Document types to include. |
| documenttype_exclude | Array of strings or null (MailingType) Enum: "Remittance" "Invoice" "SalesQuote" "DeliveryNote" "DunningLetter" "CreditNote" "StatementOfAccount" "Cheque" "PurchaseOrder" "Miscellaneous" "OrderAcknowledgement" "LegalCorrespondence" "Label" Document types to exclude. |
| senderDocumentReference | string or null Sender document reference. |
| recipientDocumentReference | string or null Recipient document reference. |
| recipientReference | string or null Recipient reference. |
| amount | string or null Amount. |
| status | string (DocumentStatusQueryOptions) Enum: "ReadyToSend" "Sending" "Warning" "Delivered" "SentManually" "Viewed" "Downloaded" "PrintedByRecipient" "Unpaid" "PartPaid" "Paid" "PaymentApproved" "PaymentInitiated" "PrintedBySender" "Printing" "Failed" "Actioned" "DeliveredAll" Batch status. |
| paidStatus | string (DocumentPaidStatus) Enum: "Unknown" "PartPaid" "Paid" "Failed" "PaymentApproved" "PaymentInitiated" Invoice Outcome |
| groupBy | string (DocumentListRawQueryString.GroupByFields) Enum: "MailingId" "MailingName" "Status" "RecipientEmailAddress" "DocumentType" Specify how to group documents. |
| mailingId | integer or null <int64> Batch Id. |
| profileId | integer or null <int64> Document profile id. |
| mailingName | string or null Batch name. |
| currency | string or null Currency e.g. GBP, USD, EUR. |
| idle | integer or null <int32> Period that document has been idle for. |
| idle_lte | integer or null <int32> Used to list documents idle for less than a specified number of days. |
| idle_gte | integer or null <int32> Used to list documents idle for more than a specified number of days. |
| timeuntilactioned | integer or null <int32> Time taken to action the document. |
| discussion | string (DiscussionStatus) Enum: "None" "Closed" "Open" Discussion status. Possible values are: • None • Closed • Open |
| owner | string or null Document owner. |
| testMode | boolean or null If true, document has been uploaded using a document profile in test mode. |
| from | string or null Email From address. |
| companyName | string or null Company name. |
| sort | string (DocumentListRawQueryString.SortFields) Enum: "RecipientEmailAddress" "DocumentDate" "DocumentType" "Amount" "Status" "From" "RecipientDocumentReference" "SenderDocumentReference" "RecipientReference" "MailingName" "Discussion" "Owner" "CompanyName" "SentDate" "CreationDate" "ExpiryDate" "DueDate" "PaidStatus" Sort the results by column. |
| Done | boolean or null Whether the document was marked as archived. |
| Archived | boolean or null Whether the document was marked as archived. |
| IgnoreCompleteArchivedBatches | boolean or null If true, batches that were archived should not be included. |
| Revoked | boolean or null Revoked status of the document. |
| limit | integer <int32> The maximum number of items to return. |
| startIndex | integer <int32> The number of items to skip. |
| order | string (SortOrder) Enum: "ASC" "DESC" Sort results in ascending or descending order. |
| freetextsearch | string or null Custom text search for File Name or Full Name. |
1. List documents by date https://documents.uk.pt-x.com/api/documents/archived?documentdate=2019-07-16T09:28:12.004Z 2. List documents by type https://documents.uk.pt-x.com/api/documents/archived?documenttype=invoice&documenttype_exclude=salesqoute 3. List documents by type and currency https://documents.uk.pt-x.com/api/documents/archived?documenttype=invoice¤cy=GBP 4. List documents by recipient email address and date https://documents.uk.pt-x.com/api/documents/archived?recipientemailaddress=example@gmail.com&documentdate=2019-07-11T09:28:12.004Z
{- "data": [
- {
- "id": 3431523,
- "documentType": "Invoice",
- "documentDate": "2019-07-16T09:28:12",
- "senderDocumentReference": "",
- "recipientDocumentReference": null,
- "amount": 100,
- "currency": "ALL",
- "creationDate": "2019-07-13T07:38:12.004Z",
- "pageCount": 1,
- "sentDate": null,
- "viewedDate": null,
- "subject": null,
- "recipientCompanyNumber": "BOTTOM003",
- "recipientVATNumber": "VAT004",
- "recipientEmailAddress": "sandrashortland@example.com",
- "recipientTelephoneNumber": "1234567890",
- "allowSignUp": null,
- "from": "noreply@dev.ptxtest2.co.uk",
- "sentTo": "sandrashortland@example.com",
- "status": "SendFailedHardBounce",
- "secretId": "059OSWZBZGAGG9I8C3G2",
- "lastStatusChangeDate": "2019-07-13T07:38:14.044Z",
- "comments": 0,
- "discussion": "None",
- "discussionOpen": true,
- "discussionUrl": null,
- "supportingFileTotal": 0,
- "expiryDate": "0001-01-01T00:00:00Z",
- "pendingDeletion": false,
- "dueDate": null,
- "recipientType": null,
- "revoked": false,
- "LayoutPdfFileId": null,
- "recipientId": null,
- "recipientUserId": null,
- "done": false,
- "archived": false,
- "read": false,
- "registrationUrl": null,
- "printUrl": null,
- "documentInboxUrl": null,
- "companyName": null,
- "isPromptToPayDocument": false,
- "privateInbox": true,
- "additionalRecipientsTotal": 0,
- "paidStatus": "Unknown"
}, - {
- "id": 3431527,
- "documentType": "Invoice",
- "documentDate": "2019-07-16T12:28:12.004",
- "senderDocumentReference": "",
- "recipientDocumentReference": null,
- "amount": 100.22,
- "currency": "USD",
- "creationDate": "2019-07-13T07:38:12.004Z",
- "pageCount": 1,
- "sentDate": null,
- "viewedDate": null,
- "subject": null,
- "recipientCompanyNumber": "BOTTOM003",
- "recipientVATNumber": "VAT004",
- "recipientEmailAddress": "chris.hayes@example.com",
- "recipientTelephoneNumber": "1234567890",
- "allowSignUp": null,
- "from": "noreply@dev.ptxtest2.co.uk",
- "sentTo": "chris.hayes@example.com",
- "status": "New",
- "secretId": "ZVOR4VPU2PKIYV05MGHX",
- "lastStatusChangeDate": null,
- "comments": 0,
- "discussion": "None",
- "discussionOpen": true,
- "discussionUrl": null,
- "supportingFileTotal": 0,
- "expiryDate": "0001-01-01T00:00:00Z",
- "pendingDeletion": false,
- "dueDate": null,
- "recipientType": null,
- "revoked": false,
- "LayoutPdfFileId": null,
- "recipientId": null,
- "recipientUserId": null,
- "done": false,
- "archived": false,
- "read": false,
- "registrationUrl": null,
- "printUrl": null,
- "documentInboxUrl": null,
- "companyName": null,
- "isPromptToPayDocument": false,
- "privateInbox": true,
- "additionalRecipientsTotal": 0,
- "paidStatus": "Unknown"
}
], - "recordTotal": 2
}Retrieves details of a document using unique identifier.
| documentId required | integer <int64> Document identifier, obtained from the List documents call. |
| dir | string (Document.Direction) Enum: "Out" "In" Determines whether this is an inbox or outbox query. |
https://documents.uk.pt-x.com/api/documents/1234
{- "id": 1234,
- "documentType": "Miscellaneous",
- "documentDate": null,
- "senderDocumentReference": "",
- "recipientDocumentReference": "REC-DOC-REF-002",
- "amount": 456,
- "currency": "GBP",
- "creationDate": "2025-05-12T08:40:27.0781606Z",
- "pageCount": 1,
- "sentDate": "2025-05-12T08:40:27.0781679Z",
- "viewedDate": null,
- "subject": null,
- "recipientCompanyNumber": "BOTTOM003",
- "recipientVATNumber": "VAT004",
- "recipientEmailAddress": "sandrashortland@example.com",
- "recipientTelephoneNumber": "1234567890",
- "allowSignUp": null,
- "from": "noreply@dev.ptxtest2.co.uk",
- "sentTo": "sandrashortland@example.com",
- "status": "New",
- "secretId": "ZOCAQW3IX128RQL7JZOX",
- "lastStatusChangeDate": "2025-05-12T08:40:27.07817Z",
- "comments": 0,
- "discussion": "None",
- "discussionOpen": true,
- "discussionUrl": null,
- "supportingFileTotal": 0,
- "expiryDate": "0001-01-01T00:00:00Z",
- "pendingDeletion": false,
- "dueDate": null,
- "recipientType": null,
- "revoked": false,
- "LayoutPdfFileId": null,
- "recipientId": null,
- "recipientUserId": null,
- "done": false,
- "archived": false,
- "read": false,
- "registrationUrl": null,
- "printUrl": null,
- "documentInboxUrl": null,
- "companyName": null,
- "isPromptToPayDocument": false,
- "privateInbox": true,
- "additionalRecipientsTotal": 0,
- "paidStatus": "Unknown"
}