The GUID in these calls should be obtained from Login API


Endpoint URL

Based URL address depends on domain address on which the backend is deployed

MethodURL
GET{base url}/api/Document/Get/{id}

Query parameters

TypeParamsValues
HEADERGuid{GUID obtained from login call}

Example requests

https://backend/api/Document/Get/1


Example responses:

{
    "dueDate""2021-08-19T00:00:00",
    "gRVDate""2021-08-19T00:00:00",
    "branchId"0,
    "cashAdvanceId"0,
    "defaultWarehouseId"5,
    "signatureBytes"null,
    "id"69006,
    "supplierId"0,
    "customerId"4354,
    "orderType"4,
    "orderNumber""SO1213",
    "externalOrderNumber""0123",
    "contactPersonId"0,
    "mergedTo"null,
    "mergedFrom"null,
    "orderDate""2021-08-19T00:00:00",
    "deliveryDate""2021-08-19T00:00:00",
    "invoiceDate""2021-08-19T00:00:00",
    "invNumber""",
    "grvNumber""",
    "deliveryAddress""",
    "deliveryNote""0123",
    "postalAddress""",
    "incidentId"2164,
    "workflowId"12,
    "delMethodId"0,
    "incidentTypeId"51,
    "incidentTypeGroupId"0,
    "state"2,
    "attachedFiles": [
        {
            "docModified""0001-01-01T00:00:00",
            "isLinked"true,
            "category": {
                "id"0,
                "idDocCat"0,
                "cDescription""INVOICE"
            },
            "fileId"507,
            "fileName""Document.pdf",
            "description""",
            "agentName""Administrator",
            "agentId"1,
            "dateAdded""2021-08-19T09:42:00",
            "canDelete"false,
            "fileSize"29378,
            "dmsId"null,
            "isNew"false,
            "documentId"null,
            "manDocId"0,
            "expiryDate""2021-08-19T09:42:14.353+00:00"
        },
        {
            "docModified""0001-01-01T00:00:00",
            "isLinked"true,
            "category": {
                "id"0,
                "idDocCat"0,
                "cDescription""INVOICE"
            },
            "fileId"508,
            "fileName""Document II.pdf",
            "description""",
            "agentName""Administrator",
            "agentId"1,
            "dateAdded""2021-08-19T09:42:00",
            "canDelete"false,
            "fileSize"29378,
            "dmsId"null,
            "isNew"false,
            "documentId"null,
            "manDocId"0,
            "expiryDate""2021-08-19T09:42:14.387+00:00"
        }
    ],
    "lineNote"null,
    "priorityId"0,
    "salesRepId"0,
    "opportunityId"0,
    "projectId"0,
    "settlementTermsId"0,
    "iCurrrentAgentId"29,
    "groupAgentIDToAuthorize"0,
    "requesteeCanEdit"true,
    "customCashAdvanceAmount"0.0,
    "expatDocument"false,
    "docState"8,
    "currencyId"0,
    "currencySymbol"null,
    "vATPercentage"0.0,
    "exchangeRate"1.0,
    "homeAmount"null,
    "inclusiveTotal""95.5",
    "specialInstruction"null,
    "beneficiary"null,
    "foreignUserInfoJson"null,
    "customer""Abubakar Kagina",
    "message""\r\n\r\n",
    "message1""",
    "message2""",
    "message3""",
    "detailLines": [
        {
            "gLAccountId"0,
            "description""Variator Pulley",
            "additionalField""",
            "lineNote"null,
            "projectId"0,
            "project": {
                "id"0,
                "projectCode"null,
                "projectName"null,
                "masterSubProject"null,
                "projectDescription"null
            },
            "lineId"533921,
            "jobId"0,
            "price"95.5,
            "taxRate"0.0,
            "taxMode"0,
            "exchangeRate"0.0,
            "quantity"1.0,
            "confirmedQty"1.0,
            "deliveredQty"0.0,
            "processedQty"0.0,
            "disc"0.0,
            "currencyId"0,
            "receiptReference""",
            "gLAccount": {
                "id"0,
                "accountLink"0,
                "master_Sub_Account"null,
                "account_Type"null,
                "description"null,
                "iAllowICPurchases"false,
                "iAllowICSales"false
            },
            "requisitionLineId"0,
            "warehouseId"5,
            "warehouse": {
                "id"5,
                "code""GIT"
            },
            "inventoryItemId"9620,
            "inventoryItem": {
                "udfs": {},
                "id"9620,
                "code""0006034060",
                "qty_On_Hand"0.0,
                "qtyOnPO"0.0,
                "serviceItem"false,
                "reservedQty"0.0,
                "iLotStatus"0,
                "serialItem"false,
                "description""Variator Pulley",
                "description_2""",
                "iUOMStockingUnitId"0,
                "bUOMItem"false,
                "bLotItem"false,
                "whseItem"true,
                "tTI""1",
                "tTC""1",
                "tTR""3",
                "tTG""3"
            },
            "unitId"0,
            "unit": {
                "id"0,
                "cUnitCode"null
            },
            "lotId"0,
            "lot": {
                "id"0,
                "cLotDescription"null
            },
            "itemGroupId"0,
            "lineType"1,
            "udfs": {},
            "serials": [],
            "taxId"35
        }
    ],
    "bankDetails": {
        "enabled"false,
        "beneficiary"null,
        "iban"null,
        "bicSwiftCode"null,
        "cashDelivery"false
    },
    "cashAdvanceDetail": {
        "purposeId"0,
        "startDate""0001-01-01T00:00:00",
        "description"null,
        "amount"0.0,
        "gLAccountId"0
    },
    "purposeDetail": {
        "purposeId"0,
        "startDate""0001-01-01T00:00:00",
        "description"null
    },
    "udfs": {},
    "isFullyAuthorized"false,
    "isArchived"false,
    "grantId"0,
    "sectorId"0,
    "grvId"0,
    "supplierRating"0,
    "isForeignCurrency"false,
    "purpose"null,
    "taxMode"0,
    "isEditable"true,
    "canGrv"false,
    "canProcess"false
}