POST api/ledger/save

Request Information

URI Parameters

None.

Body Parameters

LedgerData
NameDescriptionTypeAdditional information
Master

Ledger

None.

Detail

Collection of LedgerDet

None.

Request Formats

application/json, text/json

Sample:
{
  "Master": {
    "SEQ_NO": 1,
    "BOOK_SEQ": 1,
    "NAME_SEQ": 1,
    "TRANS_DATE": "2024-11-21T04:19:53.2744821-05:00",
    "VOUCHER_NO": "sample string 2",
    "INVOICE_NO": "sample string 3",
    "TOTAL_AMOUNT": 1.0,
    "ADJUST_AMOUNT": 1.0,
    "AC_YEAR_SEQ": 1,
    "COMP_SEQ": 1,
    "IS_OPENING": true,
    "USER_SEQ": 1,
    "TRANS_SEQ": 1,
    "PUR_SEQ": 1,
    "BOOK_AC_SEQ": 1,
    "CURRENCY": "sample string 4",
    "EXCH_RATE": 5.0,
    "CHQ_BANK": "sample string 6",
    "CHQ_PARTY_NAME": "sample string 7",
    "CHQ_NO": "sample string 8",
    "CHQ_DATE": "2024-11-21T04:19:53.2744821-05:00",
    "NARRATION": "sample string 9",
    "TOKAN_NO": "sample string 10"
  },
  "Detail": [
    {
      "SEQ_NO": 1,
      "MAS_SEQ": 1,
      "AC_YEAR_SEQ": 1,
      "BOOK_SEQ": 1,
      "NAME_SEQ": 1,
      "P_NAME_SEQ": 1,
      "AMOUNT": 1.0,
      "CR_DR": "sample string 2",
      "TRANS_SEQ": 1,
      "CHECHED": true,
      "ADJ_LEDGER_DET_SEQ": 1
    },
    {
      "SEQ_NO": 1,
      "MAS_SEQ": 1,
      "AC_YEAR_SEQ": 1,
      "BOOK_SEQ": 1,
      "NAME_SEQ": 1,
      "P_NAME_SEQ": 1,
      "AMOUNT": 1.0,
      "CR_DR": "sample string 2",
      "TRANS_SEQ": 1,
      "CHECHED": true,
      "ADJ_LEDGER_DET_SEQ": 1
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LedgerData'.

Response Information

Resource Description

ResponseMessage
NameDescriptionTypeAdditional information
STATUS

string

None.

MESSAGE

string

None.

VALUE

string

None.

Response Formats

application/json, text/json

Sample:
{
  "STATUS": "sample string 1",
  "MESSAGE": "sample string 2",
  "VALUE": "sample string 3"
}