POST web/Bank/Cashbook

Request Information

URI Parameters

None.

Body Parameters

CreateCashBook
NameDescriptionTypeAdditional information
cashbook_master

BookMaster

None.

cashbook_detail

Collection of BookDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "cashbook_master": {
    "name": "sample string 1",
    "description": "sample string 2",
    "is_active": true,
    "is_allow_negative": true,
    "inventory_org": {
      "value": "sample string 1",
      "id": 2
    },
    "external_id": "sample string 5"
  },
  "cashbook_detail": [
    {
      "account_segment": [
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        },
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        }
      ],
      "account_clearing": [
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        },
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        }
      ],
      "account_cash_intransit": [
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        },
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        }
      ],
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "opening_balnace": 1.1,
      "domination": [
        {
          "cur_note": 1,
          "cur_value": "sample string 2"
        },
        {
          "cur_note": 1,
          "cur_value": "sample string 2"
        }
      ],
      "external_det_id": "sample string 2",
      "opening_rate": 3.1
    },
    {
      "account_segment": [
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        },
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        }
      ],
      "account_clearing": [
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        },
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        }
      ],
      "account_cash_intransit": [
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        },
        {
          "account": {
            "value": "sample string 1",
            "id": 2
          },
          "segment": "sample string 1"
        }
      ],
      "currency": {
        "value": "sample string 1",
        "id": 2
      },
      "opening_balnace": 1.1,
      "domination": [
        {
          "cur_note": 1,
          "cur_value": "sample string 2"
        },
        {
          "cur_note": 1,
          "cur_value": "sample string 2"
        }
      ],
      "external_det_id": "sample string 2",
      "opening_rate": 3.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 'CreateCashBook'.

application/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot access a closed Stream.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot access a closed Stream.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.