POST api/Document/CreateGoodReceipt

Request Information

URI Parameters

None.

Body Parameters

CreateGoodReceipt
NameDescriptionTypeAdditional information
GoodReceipt

GoodReceipt

None.

DocumentType

integer

None.

ListFiles

Collection of AttachedFile

None.

Attch

Attachments

None.

Request Formats

application/json, text/json

Sample:
{
  "GoodReceipt": {
    "DocumentLines": [
      {
        "BarCode": "sample string 1",
        "RequiredUpdateItem": true,
        "RequireCreateBarCode": true,
        "ItemBarCodeCollection": [
          {
            "BcdCode": "sample string 1"
          },
          {
            "BcdCode": "sample string 1"
          }
        ],
        "DocEntry": 1,
        "ItemCode": "sample string 4",
        "ItemName": "sample string 5",
        "Quantity": 6.1,
        "NumPerMsr": 7.0,
        "WarehouseCode": "sample string 8",
        "UnitPrice": 9.0,
        "Total": 1.0,
        "Price": 1.0,
        "TotalQuantity": 1.0,
        "LineNum": 1,
        "DiscountPercent": 1.0,
        "TaxCode": "sample string 10",
        "TaxRate": 1.0,
        "U_DocCurrency": "sample string 11",
        "UoMEntry": 1,
        "UoMCode": "sample string 12",
        "Height1": 13.0,
        "Hight1Unit": 14,
        "Lengh1": 15.0,
        "Lengh1Unit": 16,
        "Weight1": 17.0,
        "Weight1Unit": 18,
        "Width1": 19.0,
        "Width1Unit": 20,
        "Volume": 21.0,
        "VolumeUnit": 22,
        "BaseEntry": 1,
        "BaseType": "sample string 23",
        "BaseLine": 1,
        "DocumentLinesBinAllocations": [
          {
            "BinAbsEntry": 1,
            "Quantity": 2.0
          },
          {
            "BinAbsEntry": 1,
            "Quantity": 2.0
          }
        ]
      },
      {
        "BarCode": "sample string 1",
        "RequiredUpdateItem": true,
        "RequireCreateBarCode": true,
        "ItemBarCodeCollection": [
          {
            "BcdCode": "sample string 1"
          },
          {
            "BcdCode": "sample string 1"
          }
        ],
        "DocEntry": 1,
        "ItemCode": "sample string 4",
        "ItemName": "sample string 5",
        "Quantity": 6.1,
        "NumPerMsr": 7.0,
        "WarehouseCode": "sample string 8",
        "UnitPrice": 9.0,
        "Total": 1.0,
        "Price": 1.0,
        "TotalQuantity": 1.0,
        "LineNum": 1,
        "DiscountPercent": 1.0,
        "TaxCode": "sample string 10",
        "TaxRate": 1.0,
        "U_DocCurrency": "sample string 11",
        "UoMEntry": 1,
        "UoMCode": "sample string 12",
        "Height1": 13.0,
        "Hight1Unit": 14,
        "Lengh1": 15.0,
        "Lengh1Unit": 16,
        "Weight1": 17.0,
        "Weight1Unit": 18,
        "Width1": 19.0,
        "Width1Unit": 20,
        "Volume": 21.0,
        "VolumeUnit": 22,
        "BaseEntry": 1,
        "BaseType": "sample string 23",
        "BaseLine": 1,
        "DocumentLinesBinAllocations": [
          {
            "BinAbsEntry": 1,
            "Quantity": 2.0
          },
          {
            "BinAbsEntry": 1,
            "Quantity": 2.0
          }
        ]
      }
    ],
    "DocNum": 1,
    "DocEntry": 1,
    "Segment": 1,
    "DocDate": "2025-12-09T01:22:11.4120872-06:00",
    "DocDueDate": "2025-12-09T01:22:11.4120872-06:00",
    "TaxDate": "2025-12-09T01:22:11.4120872-06:00",
    "CardCode": "sample string 4",
    "CardName": "sample string 5",
    "Total": 1.0,
    "DocStatus": "sample string 6",
    "DocType": "sample string 7",
    "DocCurrency": "sample string 8",
    "DocRate": "sample string 9",
    "DocTotalFC": 1.0,
    "Comments": "sample string 10",
    "AttachmentEntry": 1,
    "WarehouseCode": "sample string 11",
    "DocObjectCode": "sample string 12",
    "SalesPersonCode": "sample string 13",
    "NumAtCard": "sample string 14"
  },
  "DocumentType": 1,
  "ListFiles": [
    {
      "base64": "sample string 1",
      "filename": "sample string 2",
      "type": "sample string 3"
    },
    {
      "base64": "sample string 1",
      "filename": "sample string 2",
      "type": "sample string 3"
    }
  ],
  "Attch": {
    "ImagesBase64": [
      "sample string 1",
      "sample string 2"
    ],
    "Files": [
      "sample string 1",
      "sample string 2"
    ]
  }
}

application/xml, text/xml

Sample:
<CreateGoodReceipt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.CreateDocuments">
  <Attch xmlns:d2p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.SAP">
    <d2p1:Files xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:Files>
    <d2p1:ImagesBase64 xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:ImagesBase64>
  </Attch>
  <DocumentType>1</DocumentType>
  <GoodReceipt xmlns:d2p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.Service_layer">
    <d2p1:AttachmentEntry>1</d2p1:AttachmentEntry>
    <d2p1:CardCode>sample string 4</d2p1:CardCode>
    <d2p1:CardName>sample string 5</d2p1:CardName>
    <d2p1:Comments>sample string 10</d2p1:Comments>
    <d2p1:DocCurrency>sample string 8</d2p1:DocCurrency>
    <d2p1:DocDate>2025-12-09T01:22:11.4120872-06:00</d2p1:DocDate>
    <d2p1:DocDueDate>2025-12-09T01:22:11.4120872-06:00</d2p1:DocDueDate>
    <d2p1:DocEntry>1</d2p1:DocEntry>
    <d2p1:DocNum>1</d2p1:DocNum>
    <d2p1:DocObjectCode>sample string 12</d2p1:DocObjectCode>
    <d2p1:DocRate>sample string 9</d2p1:DocRate>
    <d2p1:DocStatus>sample string 6</d2p1:DocStatus>
    <d2p1:DocTotalFC>1</d2p1:DocTotalFC>
    <d2p1:DocType>sample string 7</d2p1:DocType>
    <d2p1:NumAtCard>sample string 14</d2p1:NumAtCard>
    <d2p1:SalesPersonCode>sample string 13</d2p1:SalesPersonCode>
    <d2p1:Segment>1</d2p1:Segment>
    <d2p1:TaxDate>2025-12-09T01:22:11.4120872-06:00</d2p1:TaxDate>
    <d2p1:Total>1</d2p1:Total>
    <d2p1:WarehouseCode>sample string 11</d2p1:WarehouseCode>
    <d2p1:DocumentLines>
      <d2p1:GoodReceiptLine>
        <d2p1:BaseEntry>1</d2p1:BaseEntry>
        <d2p1:BaseLine>1</d2p1:BaseLine>
        <d2p1:BaseType>sample string 23</d2p1:BaseType>
        <d2p1:DiscountPercent>1</d2p1:DiscountPercent>
        <d2p1:DocEntry>1</d2p1:DocEntry>
        <d2p1:DocumentLinesBinAllocations xmlns:d5p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.SAP">
          <d5p1:BinLocation>
            <d5p1:BinAbsEntry>1</d5p1:BinAbsEntry>
            <d5p1:Quantity>2</d5p1:Quantity>
          </d5p1:BinLocation>
          <d5p1:BinLocation>
            <d5p1:BinAbsEntry>1</d5p1:BinAbsEntry>
            <d5p1:Quantity>2</d5p1:Quantity>
          </d5p1:BinLocation>
        </d2p1:DocumentLinesBinAllocations>
        <d2p1:Height1>13</d2p1:Height1>
        <d2p1:Hight1Unit>14</d2p1:Hight1Unit>
        <d2p1:ItemCode>sample string 4</d2p1:ItemCode>
        <d2p1:ItemName>sample string 5</d2p1:ItemName>
        <d2p1:Lengh1>15</d2p1:Lengh1>
        <d2p1:Lengh1Unit>16</d2p1:Lengh1Unit>
        <d2p1:LineNum>1</d2p1:LineNum>
        <d2p1:NumPerMsr>7</d2p1:NumPerMsr>
        <d2p1:Price>1</d2p1:Price>
        <d2p1:Quantity>6.1</d2p1:Quantity>
        <d2p1:TaxCode>sample string 10</d2p1:TaxCode>
        <d2p1:TaxRate>1</d2p1:TaxRate>
        <d2p1:Total>1</d2p1:Total>
        <d2p1:TotalQuantity>1</d2p1:TotalQuantity>
        <d2p1:U_DocCurrency>sample string 11</d2p1:U_DocCurrency>
        <d2p1:UnitPrice>9</d2p1:UnitPrice>
        <d2p1:UoMCode>sample string 12</d2p1:UoMCode>
        <d2p1:UoMEntry>1</d2p1:UoMEntry>
        <d2p1:Volume>21</d2p1:Volume>
        <d2p1:VolumeUnit>22</d2p1:VolumeUnit>
        <d2p1:WarehouseCode>sample string 8</d2p1:WarehouseCode>
        <d2p1:Weight1>17</d2p1:Weight1>
        <d2p1:Weight1Unit>18</d2p1:Weight1Unit>
        <d2p1:Width1>19</d2p1:Width1>
        <d2p1:Width1Unit>20</d2p1:Width1Unit>
        <d2p1:BarCode>sample string 1</d2p1:BarCode>
        <d2p1:ItemBarCodeCollection xmlns:d5p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.SAP">
          <d5p1:BarCode>
            <d5p1:BcdCode>sample string 1</d5p1:BcdCode>
          </d5p1:BarCode>
          <d5p1:BarCode>
            <d5p1:BcdCode>sample string 1</d5p1:BcdCode>
          </d5p1:BarCode>
        </d2p1:ItemBarCodeCollection>
        <d2p1:RequireCreateBarCode>true</d2p1:RequireCreateBarCode>
        <d2p1:RequiredUpdateItem>true</d2p1:RequiredUpdateItem>
      </d2p1:GoodReceiptLine>
      <d2p1:GoodReceiptLine>
        <d2p1:BaseEntry>1</d2p1:BaseEntry>
        <d2p1:BaseLine>1</d2p1:BaseLine>
        <d2p1:BaseType>sample string 23</d2p1:BaseType>
        <d2p1:DiscountPercent>1</d2p1:DiscountPercent>
        <d2p1:DocEntry>1</d2p1:DocEntry>
        <d2p1:DocumentLinesBinAllocations xmlns:d5p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.SAP">
          <d5p1:BinLocation>
            <d5p1:BinAbsEntry>1</d5p1:BinAbsEntry>
            <d5p1:Quantity>2</d5p1:Quantity>
          </d5p1:BinLocation>
          <d5p1:BinLocation>
            <d5p1:BinAbsEntry>1</d5p1:BinAbsEntry>
            <d5p1:Quantity>2</d5p1:Quantity>
          </d5p1:BinLocation>
        </d2p1:DocumentLinesBinAllocations>
        <d2p1:Height1>13</d2p1:Height1>
        <d2p1:Hight1Unit>14</d2p1:Hight1Unit>
        <d2p1:ItemCode>sample string 4</d2p1:ItemCode>
        <d2p1:ItemName>sample string 5</d2p1:ItemName>
        <d2p1:Lengh1>15</d2p1:Lengh1>
        <d2p1:Lengh1Unit>16</d2p1:Lengh1Unit>
        <d2p1:LineNum>1</d2p1:LineNum>
        <d2p1:NumPerMsr>7</d2p1:NumPerMsr>
        <d2p1:Price>1</d2p1:Price>
        <d2p1:Quantity>6.1</d2p1:Quantity>
        <d2p1:TaxCode>sample string 10</d2p1:TaxCode>
        <d2p1:TaxRate>1</d2p1:TaxRate>
        <d2p1:Total>1</d2p1:Total>
        <d2p1:TotalQuantity>1</d2p1:TotalQuantity>
        <d2p1:U_DocCurrency>sample string 11</d2p1:U_DocCurrency>
        <d2p1:UnitPrice>9</d2p1:UnitPrice>
        <d2p1:UoMCode>sample string 12</d2p1:UoMCode>
        <d2p1:UoMEntry>1</d2p1:UoMEntry>
        <d2p1:Volume>21</d2p1:Volume>
        <d2p1:VolumeUnit>22</d2p1:VolumeUnit>
        <d2p1:WarehouseCode>sample string 8</d2p1:WarehouseCode>
        <d2p1:Weight1>17</d2p1:Weight1>
        <d2p1:Weight1Unit>18</d2p1:Weight1Unit>
        <d2p1:Width1>19</d2p1:Width1>
        <d2p1:Width1Unit>20</d2p1:Width1Unit>
        <d2p1:BarCode>sample string 1</d2p1:BarCode>
        <d2p1:ItemBarCodeCollection xmlns:d5p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.SAP">
          <d5p1:BarCode>
            <d5p1:BcdCode>sample string 1</d5p1:BcdCode>
          </d5p1:BarCode>
          <d5p1:BarCode>
            <d5p1:BcdCode>sample string 1</d5p1:BcdCode>
          </d5p1:BarCode>
        </d2p1:ItemBarCodeCollection>
        <d2p1:RequireCreateBarCode>true</d2p1:RequireCreateBarCode>
        <d2p1:RequiredUpdateItem>true</d2p1:RequiredUpdateItem>
      </d2p1:GoodReceiptLine>
    </d2p1:DocumentLines>
  </GoodReceipt>
  <ListFiles xmlns:d2p1="http://schemas.datacontract.org/2004/07/ClvsICEMInvent.MODELS.Others">
    <d2p1:AttachedFile>
      <d2p1:base64>sample string 1</d2p1:base64>
      <d2p1:filename>sample string 2</d2p1:filename>
      <d2p1:type>sample string 3</d2p1:type>
    </d2p1:AttachedFile>
    <d2p1:AttachedFile>
      <d2p1:base64>sample string 1</d2p1:base64>
      <d2p1:filename>sample string 2</d2p1:filename>
      <d2p1:type>sample string 3</d2p1:type>
    </d2p1:AttachedFile>
  </ListFiles>
</CreateGoodReceipt>

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

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.