POST api/Documents/CreateOrders

Request Information

URI Parameters

None.

Body Parameters

SalesOrderPost
NameDescriptionTypeAdditional information
DocNum

integer

None.

CardCode

string

None.

NumAtCard

string

None.

DocCurrency

string

None.

DocDueDate

string

None.

Comments

string

None.

PaymentGroupCode

integer

None.

SalesPersonCode

integer

None.

ContactPersonCode

integer

None.

DocumentsOwner

integer

None.

DocumentLines

Collection of LineDocumentPost

None.

Udfs

Collection of Udf

None.

Request Formats

application/json, text/json

Sample:
{
  "DocNum": 1,
  "CardCode": "sample string 2",
  "NumAtCard": "sample string 3",
  "DocCurrency": "sample string 4",
  "DocDueDate": "sample string 5",
  "Comments": "sample string 6",
  "PaymentGroupCode": 7,
  "SalesPersonCode": 8,
  "ContactPersonCode": 9,
  "DocumentsOwner": 10,
  "DocumentLines": [
    {
      "Udfs": [
        {
          "Name": "sample string 1",
          "FieldType": "sample string 2",
          "Value": "sample string 3"
        },
        {
          "Name": "sample string 1",
          "FieldType": "sample string 2",
          "Value": "sample string 3"
        }
      ],
      "ItemCode": "sample string 1",
      "ItemDescription": "sample string 2",
      "Quantity": 3.1,
      "UnitPrice": 4.1,
      "DiscountPercent": 1.1,
      "ShippingMethod": 5,
      "TaxCode": "sample string 6",
      "WarehouseCode": "sample string 7",
      "CostingCode": "sample string 8",
      "ProjectCode": "sample string 9",
      "UomCode": "sample string 10",
      "ParentLineNum": 1,
      "AgreementNo": 1,
      "Currency": "sample string 11",
      "BaseEntry": 1,
      "BaseType": 12,
      "BaseLine": 1
    },
    {
      "Udfs": [
        {
          "Name": "sample string 1",
          "FieldType": "sample string 2",
          "Value": "sample string 3"
        },
        {
          "Name": "sample string 1",
          "FieldType": "sample string 2",
          "Value": "sample string 3"
        }
      ],
      "ItemCode": "sample string 1",
      "ItemDescription": "sample string 2",
      "Quantity": 3.1,
      "UnitPrice": 4.1,
      "DiscountPercent": 1.1,
      "ShippingMethod": 5,
      "TaxCode": "sample string 6",
      "WarehouseCode": "sample string 7",
      "CostingCode": "sample string 8",
      "ProjectCode": "sample string 9",
      "UomCode": "sample string 10",
      "ParentLineNum": 1,
      "AgreementNo": 1,
      "Currency": "sample string 11",
      "BaseEntry": 1,
      "BaseType": 12,
      "BaseLine": 1
    }
  ],
  "Udfs": [
    {
      "Name": "sample string 1",
      "FieldType": "sample string 2",
      "Value": "sample string 3"
    },
    {
      "Name": "sample string 1",
      "FieldType": "sample string 2",
      "Value": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<SalesOrderPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CL_TD_TD_SRV_API.MODELS.SAP">
  <CardCode>sample string 2</CardCode>
  <Comments>sample string 6</Comments>
  <ContactPersonCode>9</ContactPersonCode>
  <DocCurrency>sample string 4</DocCurrency>
  <DocDueDate>sample string 5</DocDueDate>
  <DocNum>1</DocNum>
  <DocumentLines>
    <LineDocumentPost>
      <AgreementNo>1</AgreementNo>
      <BaseEntry>1</BaseEntry>
      <BaseLine>1</BaseLine>
      <BaseType>12</BaseType>
      <CostingCode>sample string 8</CostingCode>
      <Currency>sample string 11</Currency>
      <DiscountPercent>1.1</DiscountPercent>
      <ItemCode>sample string 1</ItemCode>
      <ItemDescription>sample string 2</ItemDescription>
      <ParentLineNum>1</ParentLineNum>
      <ProjectCode>sample string 9</ProjectCode>
      <Quantity>3.1</Quantity>
      <ShippingMethod>5</ShippingMethod>
      <TaxCode>sample string 6</TaxCode>
      <UnitPrice>4.1</UnitPrice>
      <UomCode>sample string 10</UomCode>
      <WarehouseCode>sample string 7</WarehouseCode>
      <Udfs xmlns:d4p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf">
        <d4p1:Udf>
          <d4p1:FieldType>sample string 2</d4p1:FieldType>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:Value>sample string 3</d4p1:Value>
        </d4p1:Udf>
        <d4p1:Udf>
          <d4p1:FieldType>sample string 2</d4p1:FieldType>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:Value>sample string 3</d4p1:Value>
        </d4p1:Udf>
      </Udfs>
    </LineDocumentPost>
    <LineDocumentPost>
      <AgreementNo>1</AgreementNo>
      <BaseEntry>1</BaseEntry>
      <BaseLine>1</BaseLine>
      <BaseType>12</BaseType>
      <CostingCode>sample string 8</CostingCode>
      <Currency>sample string 11</Currency>
      <DiscountPercent>1.1</DiscountPercent>
      <ItemCode>sample string 1</ItemCode>
      <ItemDescription>sample string 2</ItemDescription>
      <ParentLineNum>1</ParentLineNum>
      <ProjectCode>sample string 9</ProjectCode>
      <Quantity>3.1</Quantity>
      <ShippingMethod>5</ShippingMethod>
      <TaxCode>sample string 6</TaxCode>
      <UnitPrice>4.1</UnitPrice>
      <UomCode>sample string 10</UomCode>
      <WarehouseCode>sample string 7</WarehouseCode>
      <Udfs xmlns:d4p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf">
        <d4p1:Udf>
          <d4p1:FieldType>sample string 2</d4p1:FieldType>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:Value>sample string 3</d4p1:Value>
        </d4p1:Udf>
        <d4p1:Udf>
          <d4p1:FieldType>sample string 2</d4p1:FieldType>
          <d4p1:Name>sample string 1</d4p1:Name>
          <d4p1:Value>sample string 3</d4p1:Value>
        </d4p1:Udf>
      </Udfs>
    </LineDocumentPost>
  </DocumentLines>
  <DocumentsOwner>10</DocumentsOwner>
  <NumAtCard>sample string 3</NumAtCard>
  <PaymentGroupCode>7</PaymentGroupCode>
  <SalesPersonCode>8</SalesPersonCode>
  <Udfs xmlns:d2p1="http://schemas.datacontract.org/2004/07/CL.STRUCTURES.CLASSES.Udf">
    <d2p1:Udf>
      <d2p1:FieldType>sample string 2</d2p1:FieldType>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Value>sample string 3</d2p1:Value>
    </d2p1:Udf>
    <d2p1:Udf>
      <d2p1:FieldType>sample string 2</d2p1:FieldType>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Value>sample string 3</d2p1:Value>
    </d2p1:Udf>
  </Udfs>
</SalesOrderPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.