Get User Past Authorized Documents

Retrieve all documents that user authorized for a specific company, or all companies accessible for this apikey in Basecone.

GET authorization/history?companyId=:id

Sorting

Sorting can be performed by using the sort parameter, for the date of upload. The current default value is returning the most recent uploads first.

Document collection properties

Property Type Description
Documents Array A list of documents.
_links Array A list of useful preconfigured uri's a client app can use to navigate this resource collection.
_metadata Complex object Optional object with additional information concerning the current returned result.

For details on document properties see document details.

For details on collections see collection details.

Example response:

{
    "documents":[
    {
        "documentId": "fe455a0c-9a2c-468e-8bf6-5eb92e324e05",
        "name": "Invoice_201700113",
        "documentMetadata":[],
        "currentWorkFlow": "Recognized",
        "documentImportSource": "WebPortal",
        "tagDetails":
        {
            "code": "PNV",
            "codeValue": "INK", 
            "customTags":[]
        },
        "transactionProposalId": "8c85cf20-ba57-42b8-8e00-50786931a880",
        "transactionId": null,
        "totalComments": 0,
        "createdOn": "2021-05-19T15:47:54.303",
        "companyId": "74ac2a72-79bb-480c-be72-fb07c93488cf",
        "currentAuthorizer": null,
        "isCredit": false,
        "transactionDate": null,
        "dueDate": null,
        "total": 0.0000,
        "currencyCode": "EUR",
        "project": null,
        "costCenter": "KP2",
        "_links":[
        {
            "rel": "self",
            "href": "http://localhost:54634/documents/fe455a0c-9a2c-468e-8bf6-5eb92e324e05"
        }]
    },
    {
        "documentId": "43b579b6-3bf0-43a5-8540-265766e540fb",
        "name": "Invoice_201700112",
        "documentMetadata":[],
        "currentWorkFlow": "Recognized",
        "documentImportSource": "WebPortal",
        "tagDetails":
        {
            "code": "SLS", 
            "codeValue": "VRK", 
            "customTags":[]
        },
        "transactionProposalId": "593b029d-3ccf-4037-b6b0-520d3629591c",
        "transactionId": null,
        "totalComments": 0,
        "createdOn": "2021-05-19T15:47:54.303",
        "companyId": "74ac2a72-79bb-480c-be72-fb07c93488cf",
        "currentAuthorizer": null,
        "isCredit": false,
        "transactionDate": null,
        "dueDate": null,
        "total": 0.0000,
        "currencyCode": "EUR",
        "project": null,
        "costCenter": null,
        "_links":[
        {
            "rel": "self", 
            "href": "http://api.basecone.com/documents/43b579b6-3bf0-43a5-8540-265766e540fb"
        }]
    }
    ],
    "_links":[
    {
        "rel": "self",
        "href": "http://api.basecone.com/documents?limit=20&offset=0"
    }],
    "_metadata":
    {
        "total": 27,
        "count": 20
    }
}