POST api/DocumentsForCustomer

Request Information

URI Parameters

None.

Body Parameters

DocumentForCustomerHeader
NameDescriptionTypeAdditional information
paymentMethod

string

Required

String length: inclusive between 0 and 20

currency

string

Required

String length: inclusive between 0 and 3

elements

Collection of DocumentElementForCustomer

Required

description

string

String length: inclusive between 0 and 1024

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "paymentMethod": "sample string 1",
  "currency": "sample string 2",
  "elements": [
    {
      "code": "sample string 1",
      "quantity": 2.0
    },
    {
      "code": "sample string 1",
      "quantity": 2.0
    }
  ],
  "description": "sample string 3",
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<DocumentForCustomerHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <currency>sample string 2</currency>
  <description>sample string 3</description>
  <elements>
    <DocumentElementForCustomer>
      <code>sample string 1</code>
      <quantity>2</quantity>
    </DocumentElementForCustomer>
    <DocumentElementForCustomer>
      <code>sample string 1</code>
      <quantity>2</quantity>
    </DocumentElementForCustomer>
  </elements>
  <paymentMethod>sample string 1</paymentMethod>
</DocumentForCustomerHeader>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.