Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

Method

URL

POST{base url}/api/Document/SaveDocument

Query parameters

Type

Params

Values

HEADERGuid{GUID obtained from login call}
Line type
GLAccount = 0
StkItem = 1
Document type
Purchase Order = 0
Cash Advance = 1
Expense Claim = 2
Return To Supplier = 3
Sales Order = 4
Credit Note = 7
Sales Order Quotation = 8


Example requests

https://backend/api/Document/SaveDocument

body call:

{
  "documentType"4,
  "customerId"5,
  "delMethodId"0,
  "incidentTypeID"7,
  "workflowId"5,
  "orderDate""2021-10-21T14:20:32.343Z",
  "attachedFiles": [],
  "detailLines": [
    {
      "lineType"0,
      "gLAccountId"1187,
      "description""DC - Delivery charges",  
      "price"1000,
      "quantity"1,
      "confirmedQty"1,
      "taxId"1,
      "projectId"1
    }
  ]
}

Example responses:


{
    "id"656,
    "message""new document saved id = 656",
    "orderNum""SO0029"
}

  • No labels