POST api/VoucherEntry/POSTGSTCNDN

Request Information

URI Parameters

None.

Body Parameters

Z_GSTCNDN
NameDescriptionTypeAdditional information
VoucherHeader

F_VoucherHeader

None.

VoucherLine

Collection of GSTCNDNItemDetailView

None.

VoucherCNDNMapping

F_VoucherCnDnMapping

None.

TotalAmount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "VoucherHeader": {
    "Id": 1,
    "VoucherNo": "sample string 2",
    "VoucherDate": "2024-04-27T20:32:22.2876994+00:00",
    "VoucherType": "sample string 3",
    "VoucherTypeName": "sample string 4",
    "Narration": "sample string 5",
    "ChequeNo": "sample string 6",
    "DDNo": "sample string 7",
    "RTGSNo": "sample string 8",
    "RefVoucherNo": "sample string 9",
    "BranchCode": 10,
    "CreatedBy": 1,
    "CreatedOn": "2024-04-27T20:32:22.2876994+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2024-04-27T20:32:22.2876994+00:00",
    "UpdatedByIT": "sample string 11",
    "InvoiceNo": "sample string 12"
  },
  "VoucherLine": [
    {
      "ItemCode": "sample string 1",
      "Qty": 2.0,
      "TotalAmount": 3.0,
      "Ataxcode": "sample string 4",
      "linenumber": 5,
      "CustomerCode": "sample string 6",
      "Rate": 7.0,
      "TotalTaxAmount": 8.0
    },
    {
      "ItemCode": "sample string 1",
      "Qty": 2.0,
      "TotalAmount": 3.0,
      "Ataxcode": "sample string 4",
      "linenumber": 5,
      "CustomerCode": "sample string 6",
      "Rate": 7.0,
      "TotalTaxAmount": 8.0
    }
  ],
  "VoucherCNDNMapping": {
    "Id": 1,
    "VoucherNo": "sample string 2",
    "PartyCode": "sample string 3",
    "PartyType": "sample string 4",
    "CrDrFlag": "sample string 5",
    "Amount": 1.0,
    "PendingAmount": 1.0,
    "ReferenceNo": "sample string 6",
    "HeaderBranchCode": 7,
    "BranchCode": 8,
    "CreatedBy": 1,
    "CreatedOn": "2024-04-27T20:32:22.2876994+00:00",
    "ProductGroup": 1,
    "UpdatedByIT": "sample string 9"
  },
  "TotalAmount": 1.0
}

application/xml, text/xml

Sample:
<Z_GSTCNDN xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <TotalAmount>1</TotalAmount>
  <VoucherCNDNMapping>
    <Amount>1</Amount>
    <BranchCode>8</BranchCode>
    <CrDrFlag>sample string 5</CrDrFlag>
    <CreatedBy>1</CreatedBy>
    <CreatedOn>2024-04-27T20:32:22.2876994+00:00</CreatedOn>
    <HeaderBranchCode>7</HeaderBranchCode>
    <Id>1</Id>
    <PartyCode>sample string 3</PartyCode>
    <PartyType>sample string 4</PartyType>
    <PendingAmount>1</PendingAmount>
    <ProductGroup>1</ProductGroup>
    <ReferenceNo>sample string 6</ReferenceNo>
    <UpdatedByIT>sample string 9</UpdatedByIT>
    <VoucherNo>sample string 2</VoucherNo>
  </VoucherCNDNMapping>
  <VoucherHeader>
    <BranchCode>10</BranchCode>
    <ChequeNo>sample string 6</ChequeNo>
    <CreatedBy>1</CreatedBy>
    <CreatedOn>2024-04-27T20:32:22.2876994+00:00</CreatedOn>
    <DDNo>sample string 7</DDNo>
    <Id>1</Id>
    <InvoiceNo>sample string 12</InvoiceNo>
    <ModifiedBy>1</ModifiedBy>
    <ModifiedOn>2024-04-27T20:32:22.2876994+00:00</ModifiedOn>
    <Narration>sample string 5</Narration>
    <RTGSNo>sample string 8</RTGSNo>
    <RefVoucherNo>sample string 9</RefVoucherNo>
    <UpdatedByIT>sample string 11</UpdatedByIT>
    <VoucherDate>2024-04-27T20:32:22.2876994+00:00</VoucherDate>
    <VoucherNo>sample string 2</VoucherNo>
    <VoucherType>sample string 3</VoucherType>
    <VoucherTypeName>sample string 4</VoucherTypeName>
  </VoucherHeader>
  <VoucherLine xmlns:d2p1="http://schemas.datacontract.org/2004/07/RREL.Data.Models.Views">
    <d2p1:GSTCNDNItemDetailView>
      <d2p1:Ataxcode>sample string 4</d2p1:Ataxcode>
      <d2p1:CustomerCode>sample string 6</d2p1:CustomerCode>
      <d2p1:ItemCode>sample string 1</d2p1:ItemCode>
      <d2p1:Qty>2</d2p1:Qty>
      <d2p1:Rate>7</d2p1:Rate>
      <d2p1:TotalAmount>3</d2p1:TotalAmount>
      <d2p1:TotalTaxAmount>8</d2p1:TotalTaxAmount>
      <d2p1:linenumber>5</d2p1:linenumber>
    </d2p1:GSTCNDNItemDetailView>
    <d2p1:GSTCNDNItemDetailView>
      <d2p1:Ataxcode>sample string 4</d2p1:Ataxcode>
      <d2p1:CustomerCode>sample string 6</d2p1:CustomerCode>
      <d2p1:ItemCode>sample string 1</d2p1:ItemCode>
      <d2p1:Qty>2</d2p1:Qty>
      <d2p1:Rate>7</d2p1:Rate>
      <d2p1:TotalAmount>3</d2p1:TotalAmount>
      <d2p1:TotalTaxAmount>8</d2p1:TotalTaxAmount>
      <d2p1:linenumber>5</d2p1:linenumber>
    </d2p1:GSTCNDNItemDetailView>
  </VoucherLine>
</Z_GSTCNDN>

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 'Z_GSTCNDN'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.