Integrate to PayEx Output API 

Introduction

This api is used to download available reports and files related to the companys accounts receivable

1624263385817-770.png

Files

This resource lists all types of files that is available for download

Request
GET /ledger/output/v1/XXX/files HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json

{
   "@id": "/ledger/output/v1/XXX/files",
   "ar-accounting" : "/ledger/output/v1/XXX/files/NNN/ar-settlement",
   "operations": null
}

Files resource properties

PropertyData typeFormatDescription
@idstringUriThe uri identifier of this resource
ar-accountingstringUriThe uri identifier of the accounts receivable report file type, this uri will return a list of all availbale ar-accounting reports

AR Accounting (Accounts receivable accounting report)

This report contains detailed accounting data from the companys accounts receviable
Each instance of this resource is a downloadable file (the actual report).
The reports are created automatically accoring to configured schedule and will show up in this list-response upon creation.

Detailed information and examples of the report can be found here

List all available ar-accounting reports

Below examples show how to list the files that are available for download. By default, the files created in the last 7 days are displayed. To list older files, date filters in querystring can be used

Date filter parameters "FromDate" and "ToDate" must both be used if filtering in a date interval. The maximum number of days for filtering is 31

Request example of how to list all files created between 2021-02-05 and 2021-02-25

Request
GET /ledger/output/v1/XXX/files/ar-accounting?FromDate=2021-02-05&ToDate=2021-02-25 HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json

Request example of how to list all files created in the last deafult (7) number of days. No querystring parameters are used

Request
GET /ledger/output/v1/XXX/files/ar-accounting HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json


{
   "items": [
        {
           "fileName": "ARAccounting10_853_20210225112347_12.xml",
           "sequence": 12,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-25_89764",
        },
        {
           "fileName": "ARAccounting10_853_20210224112347_11.xml",
           "sequence": 11,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-24_89760",
        },
        {
           "fileName": "ARAccounting10_853_20210223112347_10.xml",
           "sequence": 10,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-23_89756",
        },
        {
           "fileName": "ARAccounting10_853_20210222112347_9.xml",
           "sequence": 9,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-22_89754",
        },
        {
           "fileName": "ARAccounting10_853_20210221112347_8.xml",
           "sequence": 8,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-21_89740",
        },
        {
           "fileName": "ARAccounting10_853_20210220112347_7.xml",
           "sequence": 7,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-20_89737",
        },
        {
           "fileName": "ARAccounting10_853_20210219112347_6.xml",
           "sequence": 6,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-19_89736",
        },
        {
           "fileName": "ARAccounting10_853_20210218112347_5.xml",
           "sequence": 5,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-18_89729",
        },
        {
           "fileName": "ARAccounting10_853_20210217112347_4.xml",
           "sequence": 4,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-17_89725",
        },
        {
           "fileName": "ARAccounting10_853_20210216112347_3.xml",
           "sequence": 3,
           "@id": "/ledger/output/v1/XXX/files/ar-accounting/2021-02-16_89722",
        },
    ],
   "@id": "/ledger/output/v1/XXX/files/ar-accounting",
   "operations": null,
}

Querystring parameters

PropertyData typeFormatDescription
FromDatestringYYYY-MM-DDList files from this date
ToDatestringYYYY-MM-DDList files to this date

Resource properties

PropertyData typeFormatDescription
fileNamestring Name of the file. The name format in the above example is not guaranteed to match the real files in this API
sequencenumber All files of this type created for a specific company follow this sequence. Sequence should be used to validate that you have received all files
@idstringUriUri to the download the file

AR Settlement

List all available ar-settlement reports

Below examples show how to list the files that are available for download. By default, the files created in the last 7 days are displayed. To list older files, date filters in querystring can be used

Detailed information and examples of the report can be found here

Date filter parameters "FromDate" and "ToDate" must both be used if filtering in a date interval. The maximum number of days for filtering is 31

Request example of how to list all files created between 2021-02-05 and 2021-02-25

Request
GET /ledger/output/v1/XXX/files/ar-settlement?FromDate=2021-02-05&ToDate=2021-02-25 HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json

Request example of how to list all files created in the last deafult (7) number of days. No querystring parameters are used

Request
GET /ledger/output/v1/XXX/files/ar-settlement HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json


{
   "items": [
        {
           "fileName": "ARSettlement_853_20210225112347_12.pdf",
           "sequence": 12,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-25_89764",
        },
        {
           "fileName": "ARSettlement_853_20210224112347_11.pdf",
           "sequence": 11,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-24_89760",
        },
        {
           "fileName": "ARSettlement_853_20210223112347_10.pdf",
           "sequence": 10,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-23_89756",
        },
        {
           "fileName": "ARSettlement_853_20210222112347_9.pdf",
           "sequence": 9,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-22_89754",
        },
        {
           "fileName": "ARSettlement_853_20210221112347_8.pdf",
           "sequence": 8,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-21_89740",
        },
        {
           "fileName": "ARSettlement_853_20210220112347_7.pdf",
           "sequence": 7,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-20_89737",
        },
        {
           "fileName": "ARSettlement_853_20210219112347_6.pdf",
           "sequence": 6,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-19_89736",
        },
        {
           "fileName": "ARSettlement_853_20210218112347_5.pdf",
           "sequence": 5,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-18_89729",
        },
        {
           "fileName": "ARSettlement_853_20210217112347_4.pdf",
           "sequence": 4,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-17_89725",
        },
        {
           "fileName": "ARSettlement_853_20210216112347_3.pdf",
           "sequence": 3,
           "@id": "/ledger/output/v1/XXX/files/ar-settlement/2021-02-16_89722",
        },
    ],
   "@id": "/ledger/output/v1/XXX/files/ar-settlement",
   "operations": null,
}

Querystring parameters

PropertyData typeFormatDescription
FromDatestringYYYY-MM-DDList files from this date
ToDatestringYYYY-MM-DDList files to this date

Resource properties

PropertyData typeFormatDescription
fileNamestring Name of the file. The name format in the above example is not guaranteed to match the real files in this API
sequencenumber All files of this type created for a specific company follow this sequence. Sequence should be used to validate that you have received all files
@idstringUriUri to the download the file

AR Report 106

This is a complete ledger report, for accounting reconciliation (ledger value as of specified date)
Each instance of this resource is a downloadable file (the actual report).
The reports are created automatically accoring to configured schedule and will show up in this list-response upon creation.

Detailed information and examples of the report can be found here

List all available "ar-report106" files

Below examples show how to list the files that are available for download. By default, the files created in the last 7 days are displayed. To list older files, date filters in querystring can be used

Date filter parameters "FromDate" and "ToDate" must both be used if filtering in a date interval. The maximum number of days for filtering is 31

Request example of how to list all files created between 2021-02-05 and 2021-02-25

Request
GET /ledger/output/v1/XXX/files/ar-report106?FromDate=2021-02-05&ToDate=2021-02-25 HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json

Request example of how to list all files created in the last deafult (7) number of days. No querystring parameters are used

Request
GET /ledger/output/v1/XXX/files/ar-report106 HTTP/1.1
Host: -
Authorization: Bearer <Token>
Content-Type: application/json
Response
HTTP/1.1 200 OK
Content-Type: application/json


{
   "items": [
        {
           "fileName": "ARREPORT106_853_20210225112347_12.xml",
           "sequence": 12,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-25_89764",
        },
        {
           "fileName": "ARREPORT106_853_20210224112347_11.xml",
           "sequence": 11,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-24_89760",
        },
        {
           "fileName": "ARREPORT106_853_20210223112347_10.xml",
           "sequence": 10,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-23_89756",
        },
        {
           "fileName": "ARREPORT106_853_20210222112347_9.xml",
           "sequence": 9,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-22_89754",
        },
        {
           "fileName": "ARREPORT106_853_20210221112347_8.xml",
           "sequence": 8,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-21_89740",
        },
        {
           "fileName": "ARREPORT106_853_20210220112347_7.xml",
           "sequence": 7,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-20_89737",
        },
        {
           "fileName": "ARREPORT106_853_20210219112347_6.xml",
           "sequence": 6,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-19_89736",
        },
        {
           "fileName": "ARREPORT106_853_20210218112347_5.xml",
           "sequence": 5,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-18_89729",
        },
        {
           "fileName": "ARREPORT106_853_20210217112347_4.xml",
           "sequence": 4,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-17_89725",
        },
        {
           "fileName": "ARREPORT106_853_20210216112347_3.xml",
           "sequence": 3,
           "@id": "/ledger/output/v1/XXX/files/ar-report106/2021-02-16_89722",
        },
    ],
   "@id": "/ledger/output/v1/XXX/files/ar-report106",
   "operations": null,
}

Querystring parameters

PropertyData typeFormatDescription
FromDatestringYYYY-MM-DDList files from this date
ToDatestringYYYY-MM-DDList files to this date

Resource properties

PropertyData typeFormatDescription
fileNamestring Name of the file. The name format in the above example is not guaranteed to match the real files in this API
sequencenumber All files of this type created for a specific company follow this sequence. Sequence should be used to validate that you have received all files
@idstringUriUri to the download the file
Created by David Persson on 2024/01/11 08:49