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.

Documents are sorted by default with decending Authorized date of the document, DoneListSortDirection is optional query paramter is enum which accept Ascending, Descending input.

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": "Booked",
        "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"
        }],
        "authorizedDate": "2023-08-07T05:48:29.177",
        "relation":{"id": "8142c2b6-9963-40e0-8c88-742f7b1de65b", "name": "Complete Car Lease", "code": "2000"…},
        "invoiceNumber": "111111116666",
        "description": "after booking approved",
        "authorizers":[],
        "readyToBeAuthorized": null,
        "lines":[{"index": 1, "accountCode": "7300", "accountName": "Car fuel & oil", "amount": 66.0000,…],
        "authorizersCount": 0,
        "lineCount": 1,
        "period": "2020/07"
    },
    {
        "documentId": "43b579b6-3bf0-43a5-8540-265766e540fb",
        "name": "Invoice_201700112",
        "documentMetadata":[],
        "currentWorkFlow": "RejectedAfterBooking",
        "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"
        }],
        "authorizedDate": "2023-07-27T06:41:44.07",
        "relation": "Complete Car Lease",
        "invoiceNumber": "TestInvoice2",
        "description": "TestInv",
        "authorizers":[
        ],
        "readyToBeAuthorized": null,
        "lines":[
        {
        "index": 1,
        "accountCode": "7300",
        "accountName": "Car fuel & oil",
        "amount": 50.0000,
        "project": null,
        "costCenter": "another cost center",
        "costUnit": null,
        "description": "TD1"
        },
        {
        "index": 2,
        "accountCode": "7203",
        "accountName": "Other heating costs",
        "amount": 100.0000,
        "project": null,
        "costCenter": "another cost center",
        "costUnit": null,
        "description": "TD2"
        }
        ],
        "authorizersCount": 0,
        "lineCount": 2,
        "period": "2019/10"
    }
    ],
    "_links":[
    {
        "rel": "self",
        "href": "http://api.basecone.com/documents?limit=20&offset=0"
    }],
    "_metadata":
    {
        "total": 27,
        "count": 20
    }
}