POST api/Documents

Request Information

URI Parameters

None.

Body Parameters

DocumentHeader
NameDescriptionTypeAdditional information
id

integer

None.

type

integer

Required

fullNumber

string

String length: inclusive between 0 and 30

foreignNumber

string

String length: inclusive between 0 and 30

calculatedOn

integer

Required

paymentMethod

string

Required

String length: inclusive between 0 and 20

currency

string

Required

String length: inclusive between 0 and 3

payer

Customer

None.

defaultPayer

Customer

None.

recipient

Customer

None.

elements

Collection of DocumentElement

Required

attributes

Collection of Attribute

None.

description

string

String length: inclusive between 0 and 1024

status

integer

Required

sourceWarehouseId

integer

Required

targetWarehouseId

integer

None.

documentSaleDate

date

None.

documentIssueDate

date

None.

documentPaymentDate

date

None.

documentReservationDate

date

None.

documentCorrectionDate

date

None.

documentReceptionDate

date

None.

documentReceiptDate

date

None.

documentDeliveryDate

date

None.

documentPurchaseDate

date

None.

documentReleaseDate

date

None.

documentExchangeRateDate

date

None.

updated

date

None.

created

date

None.

exchangeRate

decimal number

None.

exchangeRateType

integer

None.

amountPaid

decimal number

None.

amountToPay

decimal number

None.

checkIfExists

boolean

None.

symbol

string

String length: inclusive between 0 and 5

series

string

String length: inclusive between 0 and 5

number

integer

None.

state

integer

None.

category

string

String length: inclusive between 0 and 20

internalReservation

integer

None.

transactionType

integer

Range: inclusive between -1 and 10

activeVatVies

integer

Range: inclusive between -1 and 1

correction

integer

None.

discount

decimal number

None.

netAmount

decimal number

None.

grossAmount

decimal number

None.

ownerCode

string

None.

ownerName

string

None.

splitpay

integer

None.

intrastatCountryCode

string

String length: inclusive between 0 and 2

intrastatTransactionCode

string

String length: inclusive between 0 and 2

intrastatExportDate

date

None.

refoundAmount

decimal number

None.

refundedAmount

decimal number

None.

jpkV7Codes

Collection of string

None.

companyData

CompanyData

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "type": 2,
  "fullNumber": "sample string 3",
  "foreignNumber": "sample string 4",
  "calculatedOn": 5,
  "paymentMethod": "sample string 6",
  "currency": "sample string 7",
  "payer": {
    "id": 1,
    "code": "sample string 2",
    "name1": "sample string 3",
    "name2": "sample string 4",
    "name3": "sample string 5",
    "peselNumber": "sample string 6",
    "vatNumber": "sample string 7",
    "country": "sample string 8",
    "voivodeship": "sample string 9",
    "city": "sample string 10",
    "street": "sample string 11",
    "additionalAdress": "sample string 12",
    "postCode": "sample string 13",
    "post": "sample string 14",
    "houseNumber": "sample string 15",
    "flatNumber": "sample string 16",
    "phoneDocument": "sample string 17",
    "phone1": "sample string 18",
    "phone2": "sample string 19",
    "inactive": 20,
    "defaultPrice": 21,
    "final": 1,
    "bankAccountNumber": "sample string 22",
    "regon": "sample string 23",
    "email": "sample string 24",
    "paymentMethod": "sample string 25",
    "dateOfPayment": 26,
    "maxPaymentDelay": 27,
    "created": "2025-11-08T13:42:52.3714211+01:00",
    "updated": "2025-11-08T13:42:52.3714211+01:00",
    "description": "sample string 30",
    "countryCode": "sample string 31",
    "type": 1,
    "companyData": {
      "companyName": "sample string 1",
      "databaseName": "sample string 2"
    },
    "countryIso": "sample string 32",
    "group": "sample string 33",
    "type_supplier": 1,
    "type_receiver": 1,
    "type_competitor": 1,
    "type_partner": 1,
    "type_potential": 1,
    "split_payment": 1,
    "attributes": [
      {
        "id": 1,
        "attributeId": 2,
        "objectId": 3,
        "code": "sample string 4",
        "value": "sample string 5",
        "copyToTransaction": 6,
        "copyToDelivery": 7,
        "companyData": {
          "companyName": "sample string 1",
          "databaseName": "sample string 2"
        }
      },
      {
        "id": 1,
        "attributeId": 2,
        "objectId": 3,
        "code": "sample string 4",
        "value": "sample string 5",
        "copyToTransaction": 6,
        "copyToDelivery": 7,
        "companyData": {
          "companyName": "sample string 1",
          "databaseName": "sample string 2"
        }
      }
    ],
    "purchaseCategory": "sample string 34",
    "representativeId": 35,
    "representativeType": 36
  },
  "defaultPayer": {
    "id": 1,
    "code": "sample string 2",
    "name1": "sample string 3",
    "name2": "sample string 4",
    "name3": "sample string 5",
    "peselNumber": "sample string 6",
    "vatNumber": "sample string 7",
    "country": "sample string 8",
    "voivodeship": "sample string 9",
    "city": "sample string 10",
    "street": "sample string 11",
    "additionalAdress": "sample string 12",
    "postCode": "sample string 13",
    "post": "sample string 14",
    "houseNumber": "sample string 15",
    "flatNumber": "sample string 16",
    "phoneDocument": "sample string 17",
    "phone1": "sample string 18",
    "phone2": "sample string 19",
    "inactive": 20,
    "defaultPrice": 21,
    "final": 1,
    "bankAccountNumber": "sample string 22",
    "regon": "sample string 23",
    "email": "sample string 24",
    "paymentMethod": "sample string 25",
    "dateOfPayment": 26,
    "maxPaymentDelay": 27,
    "created": "2025-11-08T13:42:52.3714211+01:00",
    "updated": "2025-11-08T13:42:52.3714211+01:00",
    "description": "sample string 30",
    "countryCode": "sample string 31",
    "type": 1,
    "companyData": {
      "companyName": "sample string 1",
      "databaseName": "sample string 2"
    },
    "countryIso": "sample string 32",
    "group": "sample string 33",
    "type_supplier": 1,
    "type_receiver": 1,
    "type_competitor": 1,
    "type_partner": 1,
    "type_potential": 1,
    "split_payment": 1,
    "attributes": [
      {
        "id": 1,
        "attributeId": 2,
        "objectId": 3,
        "code": "sample string 4",
        "value": "sample string 5",
        "copyToTransaction": 6,
        "copyToDelivery": 7,
        "companyData": {
          "companyName": "sample string 1",
          "databaseName": "sample string 2"
        }
      },
      {
        "id": 1,
        "attributeId": 2,
        "objectId": 3,
        "code": "sample string 4",
        "value": "sample string 5",
        "copyToTransaction": 6,
        "copyToDelivery": 7,
        "companyData": {
          "companyName": "sample string 1",
          "databaseName": "sample string 2"
        }
      }
    ],
    "purchaseCategory": "sample string 34",
    "representativeId": 35,
    "representativeType": 36
  },
  "recipient": {
    "id": 1,
    "code": "sample string 2",
    "name1": "sample string 3",
    "name2": "sample string 4",
    "name3": "sample string 5",
    "peselNumber": "sample string 6",
    "vatNumber": "sample string 7",
    "country": "sample string 8",
    "voivodeship": "sample string 9",
    "city": "sample string 10",
    "street": "sample string 11",
    "additionalAdress": "sample string 12",
    "postCode": "sample string 13",
    "post": "sample string 14",
    "houseNumber": "sample string 15",
    "flatNumber": "sample string 16",
    "phoneDocument": "sample string 17",
    "phone1": "sample string 18",
    "phone2": "sample string 19",
    "inactive": 20,
    "defaultPrice": 21,
    "final": 1,
    "bankAccountNumber": "sample string 22",
    "regon": "sample string 23",
    "email": "sample string 24",
    "paymentMethod": "sample string 25",
    "dateOfPayment": 26,
    "maxPaymentDelay": 27,
    "created": "2025-11-08T13:42:52.3714211+01:00",
    "updated": "2025-11-08T13:42:52.3714211+01:00",
    "description": "sample string 30",
    "countryCode": "sample string 31",
    "type": 1,
    "companyData": {
      "companyName": "sample string 1",
      "databaseName": "sample string 2"
    },
    "countryIso": "sample string 32",
    "group": "sample string 33",
    "type_supplier": 1,
    "type_receiver": 1,
    "type_competitor": 1,
    "type_partner": 1,
    "type_potential": 1,
    "split_payment": 1,
    "attributes": [
      {
        "id": 1,
        "attributeId": 2,
        "objectId": 3,
        "code": "sample string 4",
        "value": "sample string 5",
        "copyToTransaction": 6,
        "copyToDelivery": 7,
        "companyData": {
          "companyName": "sample string 1",
          "databaseName": "sample string 2"
        }
      },
      {
        "id": 1,
        "attributeId": 2,
        "objectId": 3,
        "code": "sample string 4",
        "value": "sample string 5",
        "copyToTransaction": 6,
        "copyToDelivery": 7,
        "companyData": {
          "companyName": "sample string 1",
          "databaseName": "sample string 2"
        }
      }
    ],
    "purchaseCategory": "sample string 34",
    "representativeId": 35,
    "representativeType": 36
  },
  "elements": [
    {
      "id": 1,
      "itemId": 2,
      "code": "sample string 3",
      "name": "sample string 4",
      "manufacturerCode": "sample string 5",
      "warehouseId": 6,
      "unitNetPrice": 7.0,
      "priceNumber": 8,
      "priceType": 9,
      "priceZero": 10.0,
      "unitGrossPrice": 11.0,
      "totalNetValue": 12.0,
      "totalGrossValue": 13.0,
      "quantity": 14.0,
      "vatRate": 15.0,
      "vatRateFlag": 16,
      "setCustomValue": true,
      "currentQuantity": 18.0,
      "unit": "sample string 19",
      "category": "sample string 20",
      "purchaseAmount": 21.0,
      "deliveryLots": [
        {
          "deliveryId": 1,
          "quantity": 2.0,
          "features": [
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            },
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            }
          ]
        },
        {
          "deliveryId": 1,
          "quantity": 2.0,
          "features": [
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            },
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            }
          ]
        }
      ],
      "attributes": [
        {
          "id": 1,
          "attributeId": 2,
          "objectId": 3,
          "code": "sample string 4",
          "value": "sample string 5",
          "copyToTransaction": 6,
          "copyToDelivery": 7,
          "companyData": {
            "companyName": "sample string 1",
            "databaseName": "sample string 2"
          }
        },
        {
          "id": 1,
          "attributeId": 2,
          "objectId": 3,
          "code": "sample string 4",
          "value": "sample string 5",
          "copyToTransaction": 6,
          "copyToDelivery": 7,
          "companyData": {
            "companyName": "sample string 1",
            "databaseName": "sample string 2"
          }
        }
      ],
      "recipeID": 22
    },
    {
      "id": 1,
      "itemId": 2,
      "code": "sample string 3",
      "name": "sample string 4",
      "manufacturerCode": "sample string 5",
      "warehouseId": 6,
      "unitNetPrice": 7.0,
      "priceNumber": 8,
      "priceType": 9,
      "priceZero": 10.0,
      "unitGrossPrice": 11.0,
      "totalNetValue": 12.0,
      "totalGrossValue": 13.0,
      "quantity": 14.0,
      "vatRate": 15.0,
      "vatRateFlag": 16,
      "setCustomValue": true,
      "currentQuantity": 18.0,
      "unit": "sample string 19",
      "category": "sample string 20",
      "purchaseAmount": 21.0,
      "deliveryLots": [
        {
          "deliveryId": 1,
          "quantity": 2.0,
          "features": [
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            },
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            }
          ]
        },
        {
          "deliveryId": 1,
          "quantity": 2.0,
          "features": [
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            },
            {
              "featureCode": "sample string 1",
              "featureValue": "sample string 2"
            }
          ]
        }
      ],
      "attributes": [
        {
          "id": 1,
          "attributeId": 2,
          "objectId": 3,
          "code": "sample string 4",
          "value": "sample string 5",
          "copyToTransaction": 6,
          "copyToDelivery": 7,
          "companyData": {
            "companyName": "sample string 1",
            "databaseName": "sample string 2"
          }
        },
        {
          "id": 1,
          "attributeId": 2,
          "objectId": 3,
          "code": "sample string 4",
          "value": "sample string 5",
          "copyToTransaction": 6,
          "copyToDelivery": 7,
          "companyData": {
            "companyName": "sample string 1",
            "databaseName": "sample string 2"
          }
        }
      ],
      "recipeID": 22
    }
  ],
  "attributes": [
    {
      "id": 1,
      "attributeId": 2,
      "objectId": 3,
      "code": "sample string 4",
      "value": "sample string 5",
      "copyToTransaction": 6,
      "copyToDelivery": 7,
      "companyData": {
        "companyName": "sample string 1",
        "databaseName": "sample string 2"
      }
    },
    {
      "id": 1,
      "attributeId": 2,
      "objectId": 3,
      "code": "sample string 4",
      "value": "sample string 5",
      "copyToTransaction": 6,
      "copyToDelivery": 7,
      "companyData": {
        "companyName": "sample string 1",
        "databaseName": "sample string 2"
      }
    }
  ],
  "description": "sample string 8",
  "status": 9,
  "sourceWarehouseId": 10,
  "targetWarehouseId": 11,
  "documentSaleDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentIssueDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentPaymentDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentReservationDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentCorrectionDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentReceptionDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentReceiptDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentDeliveryDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentPurchaseDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentReleaseDate": "2025-11-08T13:42:52.3714211+01:00",
  "documentExchangeRateDate": "2025-11-08T13:42:52.3714211+01:00",
  "updated": "2025-11-08T13:42:52.3714211+01:00",
  "created": "2025-11-08T13:42:52.3714211+01:00",
  "exchangeRate": 25.0,
  "exchangeRateType": 26,
  "amountPaid": 27.0,
  "amountToPay": 28.0,
  "checkIfExists": true,
  "symbol": "sample string 30",
  "series": "sample string 31",
  "number": 32,
  "state": 33,
  "category": "sample string 34",
  "internalReservation": 35,
  "transactionType": 36,
  "activeVatVies": 37,
  "correction": 38,
  "discount": 39.0,
  "netAmount": 40.0,
  "grossAmount": 41.0,
  "ownerCode": "sample string 42",
  "ownerName": "sample string 43",
  "splitpay": 44,
  "intrastatCountryCode": "sample string 45",
  "intrastatTransactionCode": "sample string 46",
  "intrastatExportDate": "2025-11-08T13:42:52.3714211+01:00",
  "refoundAmount": 48.0,
  "refundedAmount": 49.0,
  "jpkV7Codes": [
    "sample string 1",
    "sample string 2"
  ],
  "companyData": {
    "companyName": "sample string 1",
    "databaseName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<DocumentHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiOptima_v._2._0.Models">
  <activeVatVies>37</activeVatVies>
  <amountPaid>27</amountPaid>
  <amountToPay>28</amountToPay>
  <attributes>
    <Attribute>
      <attributeId>2</attributeId>
      <code>sample string 4</code>
      <companyData>
        <companyName>sample string 1</companyName>
        <databaseName>sample string 2</databaseName>
      </companyData>
      <copyToDelivery>7</copyToDelivery>
      <copyToTransaction>6</copyToTransaction>
      <id>1</id>
      <objectId>3</objectId>
      <value>sample string 5</value>
    </Attribute>
    <Attribute>
      <attributeId>2</attributeId>
      <code>sample string 4</code>
      <companyData>
        <companyName>sample string 1</companyName>
        <databaseName>sample string 2</databaseName>
      </companyData>
      <copyToDelivery>7</copyToDelivery>
      <copyToTransaction>6</copyToTransaction>
      <id>1</id>
      <objectId>3</objectId>
      <value>sample string 5</value>
    </Attribute>
  </attributes>
  <calculatedOn>5</calculatedOn>
  <category>sample string 34</category>
  <checkIfExists>true</checkIfExists>
  <companyData>
    <companyName>sample string 1</companyName>
    <databaseName>sample string 2</databaseName>
  </companyData>
  <correction>38</correction>
  <created>2025-11-08T13:42:52.3714211+01:00</created>
  <currency>sample string 7</currency>
  <defaultPayer>
    <additionalAdress>sample string 12</additionalAdress>
    <attributes>
      <Attribute>
        <attributeId>2</attributeId>
        <code>sample string 4</code>
        <companyData>
          <companyName>sample string 1</companyName>
          <databaseName>sample string 2</databaseName>
        </companyData>
        <copyToDelivery>7</copyToDelivery>
        <copyToTransaction>6</copyToTransaction>
        <id>1</id>
        <objectId>3</objectId>
        <value>sample string 5</value>
      </Attribute>
      <Attribute>
        <attributeId>2</attributeId>
        <code>sample string 4</code>
        <companyData>
          <companyName>sample string 1</companyName>
          <databaseName>sample string 2</databaseName>
        </companyData>
        <copyToDelivery>7</copyToDelivery>
        <copyToTransaction>6</copyToTransaction>
        <id>1</id>
        <objectId>3</objectId>
        <value>sample string 5</value>
      </Attribute>
    </attributes>
    <bankAccountNumber>sample string 22</bankAccountNumber>
    <city>sample string 10</city>
    <code>sample string 2</code>
    <companyData>
      <companyName>sample string 1</companyName>
      <databaseName>sample string 2</databaseName>
    </companyData>
    <country>sample string 8</country>
    <countryCode>sample string 31</countryCode>
    <countryIso>sample string 32</countryIso>
    <created>2025-11-08T13:42:52.3714211+01:00</created>
    <dateOfPayment>26</dateOfPayment>
    <defaultPrice>21</defaultPrice>
    <description>sample string 30</description>
    <email>sample string 24</email>
    <final>1</final>
    <flatNumber>sample string 16</flatNumber>
    <group>sample string 33</group>
    <houseNumber>sample string 15</houseNumber>
    <id>1</id>
    <inactive>20</inactive>
    <maxPaymentDelay>27</maxPaymentDelay>
    <name1>sample string 3</name1>
    <name2>sample string 4</name2>
    <name3>sample string 5</name3>
    <paymentMethod>sample string 25</paymentMethod>
    <peselNumber>sample string 6</peselNumber>
    <phone1>sample string 18</phone1>
    <phone2>sample string 19</phone2>
    <phoneDocument>sample string 17</phoneDocument>
    <post>sample string 14</post>
    <postCode>sample string 13</postCode>
    <purchaseCategory>sample string 34</purchaseCategory>
    <regon>sample string 23</regon>
    <representativeId>35</representativeId>
    <representativeType>36</representativeType>
    <split_payment>1</split_payment>
    <street>sample string 11</street>
    <type>1</type>
    <type_competitor>1</type_competitor>
    <type_partner>1</type_partner>
    <type_potential>1</type_potential>
    <type_receiver>1</type_receiver>
    <type_supplier>1</type_supplier>
    <updated>2025-11-08T13:42:52.3714211+01:00</updated>
    <vatNumber>sample string 7</vatNumber>
    <voivodeship>sample string 9</voivodeship>
  </defaultPayer>
  <description>sample string 8</description>
  <discount>39</discount>
  <documentCorrectionDate>2025-11-08T13:42:52.3714211+01:00</documentCorrectionDate>
  <documentDeliveryDate>2025-11-08T13:42:52.3714211+01:00</documentDeliveryDate>
  <documentExchangeRateDate>2025-11-08T13:42:52.3714211+01:00</documentExchangeRateDate>
  <documentIssueDate>2025-11-08T13:42:52.3714211+01:00</documentIssueDate>
  <documentPaymentDate>2025-11-08T13:42:52.3714211+01:00</documentPaymentDate>
  <documentPurchaseDate>2025-11-08T13:42:52.3714211+01:00</documentPurchaseDate>
  <documentReceiptDate>2025-11-08T13:42:52.3714211+01:00</documentReceiptDate>
  <documentReceptionDate>2025-11-08T13:42:52.3714211+01:00</documentReceptionDate>
  <documentReleaseDate>2025-11-08T13:42:52.3714211+01:00</documentReleaseDate>
  <documentReservationDate>2025-11-08T13:42:52.3714211+01:00</documentReservationDate>
  <documentSaleDate>2025-11-08T13:42:52.3714211+01:00</documentSaleDate>
  <elements>
    <DocumentElement>
      <attributes>
        <Attribute>
          <attributeId>2</attributeId>
          <code>sample string 4</code>
          <companyData>
            <companyName>sample string 1</companyName>
            <databaseName>sample string 2</databaseName>
          </companyData>
          <copyToDelivery>7</copyToDelivery>
          <copyToTransaction>6</copyToTransaction>
          <id>1</id>
          <objectId>3</objectId>
          <value>sample string 5</value>
        </Attribute>
        <Attribute>
          <attributeId>2</attributeId>
          <code>sample string 4</code>
          <companyData>
            <companyName>sample string 1</companyName>
            <databaseName>sample string 2</databaseName>
          </companyData>
          <copyToDelivery>7</copyToDelivery>
          <copyToTransaction>6</copyToTransaction>
          <id>1</id>
          <objectId>3</objectId>
          <value>sample string 5</value>
        </Attribute>
      </attributes>
      <category>sample string 20</category>
      <code>sample string 3</code>
      <currentQuantity>18</currentQuantity>
      <deliveryLots>
        <DeliveryLot>
          <deliveryId>1</deliveryId>
          <features>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
          </features>
          <quantity>2</quantity>
        </DeliveryLot>
        <DeliveryLot>
          <deliveryId>1</deliveryId>
          <features>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
          </features>
          <quantity>2</quantity>
        </DeliveryLot>
      </deliveryLots>
      <id>1</id>
      <itemId>2</itemId>
      <manufacturerCode>sample string 5</manufacturerCode>
      <name>sample string 4</name>
      <priceNumber>8</priceNumber>
      <priceType>9</priceType>
      <priceZero>10</priceZero>
      <purchaseAmount>21</purchaseAmount>
      <quantity>14</quantity>
      <recipeID>22</recipeID>
      <setCustomValue>true</setCustomValue>
      <totalGrossValue>13</totalGrossValue>
      <totalNetValue>12</totalNetValue>
      <unit>sample string 19</unit>
      <unitGrossPrice>11</unitGrossPrice>
      <unitNetPrice>7</unitNetPrice>
      <vatRate>15</vatRate>
      <vatRateFlag>16</vatRateFlag>
      <warehouseId>6</warehouseId>
    </DocumentElement>
    <DocumentElement>
      <attributes>
        <Attribute>
          <attributeId>2</attributeId>
          <code>sample string 4</code>
          <companyData>
            <companyName>sample string 1</companyName>
            <databaseName>sample string 2</databaseName>
          </companyData>
          <copyToDelivery>7</copyToDelivery>
          <copyToTransaction>6</copyToTransaction>
          <id>1</id>
          <objectId>3</objectId>
          <value>sample string 5</value>
        </Attribute>
        <Attribute>
          <attributeId>2</attributeId>
          <code>sample string 4</code>
          <companyData>
            <companyName>sample string 1</companyName>
            <databaseName>sample string 2</databaseName>
          </companyData>
          <copyToDelivery>7</copyToDelivery>
          <copyToTransaction>6</copyToTransaction>
          <id>1</id>
          <objectId>3</objectId>
          <value>sample string 5</value>
        </Attribute>
      </attributes>
      <category>sample string 20</category>
      <code>sample string 3</code>
      <currentQuantity>18</currentQuantity>
      <deliveryLots>
        <DeliveryLot>
          <deliveryId>1</deliveryId>
          <features>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
          </features>
          <quantity>2</quantity>
        </DeliveryLot>
        <DeliveryLot>
          <deliveryId>1</deliveryId>
          <features>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
            <ItemFeatures>
              <featureCode>sample string 1</featureCode>
              <featureValue>sample string 2</featureValue>
            </ItemFeatures>
          </features>
          <quantity>2</quantity>
        </DeliveryLot>
      </deliveryLots>
      <id>1</id>
      <itemId>2</itemId>
      <manufacturerCode>sample string 5</manufacturerCode>
      <name>sample string 4</name>
      <priceNumber>8</priceNumber>
      <priceType>9</priceType>
      <priceZero>10</priceZero>
      <purchaseAmount>21</purchaseAmount>
      <quantity>14</quantity>
      <recipeID>22</recipeID>
      <setCustomValue>true</setCustomValue>
      <totalGrossValue>13</totalGrossValue>
      <totalNetValue>12</totalNetValue>
      <unit>sample string 19</unit>
      <unitGrossPrice>11</unitGrossPrice>
      <unitNetPrice>7</unitNetPrice>
      <vatRate>15</vatRate>
      <vatRateFlag>16</vatRateFlag>
      <warehouseId>6</warehouseId>
    </DocumentElement>
  </elements>
  <exchangeRate>25</exchangeRate>
  <exchangeRateType>26</exchangeRateType>
  <foreignNumber>sample string 4</foreignNumber>
  <fullNumber>sample string 3</fullNumber>
  <grossAmount>41</grossAmount>
  <id>1</id>
  <internalReservation>35</internalReservation>
  <intrastatCountryCode>sample string 45</intrastatCountryCode>
  <intrastatExportDate>2025-11-08T13:42:52.3714211+01:00</intrastatExportDate>
  <intrastatTransactionCode>sample string 46</intrastatTransactionCode>
  <jpkV7Codes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </jpkV7Codes>
  <netAmount>40</netAmount>
  <number>32</number>
  <ownerCode>sample string 42</ownerCode>
  <ownerName>sample string 43</ownerName>
  <payer>
    <additionalAdress>sample string 12</additionalAdress>
    <attributes>
      <Attribute>
        <attributeId>2</attributeId>
        <code>sample string 4</code>
        <companyData>
          <companyName>sample string 1</companyName>
          <databaseName>sample string 2</databaseName>
        </companyData>
        <copyToDelivery>7</copyToDelivery>
        <copyToTransaction>6</copyToTransaction>
        <id>1</id>
        <objectId>3</objectId>
        <value>sample string 5</value>
      </Attribute>
      <Attribute>
        <attributeId>2</attributeId>
        <code>sample string 4</code>
        <companyData>
          <companyName>sample string 1</companyName>
          <databaseName>sample string 2</databaseName>
        </companyData>
        <copyToDelivery>7</copyToDelivery>
        <copyToTransaction>6</copyToTransaction>
        <id>1</id>
        <objectId>3</objectId>
        <value>sample string 5</value>
      </Attribute>
    </attributes>
    <bankAccountNumber>sample string 22</bankAccountNumber>
    <city>sample string 10</city>
    <code>sample string 2</code>
    <companyData>
      <companyName>sample string 1</companyName>
      <databaseName>sample string 2</databaseName>
    </companyData>
    <country>sample string 8</country>
    <countryCode>sample string 31</countryCode>
    <countryIso>sample string 32</countryIso>
    <created>2025-11-08T13:42:52.3714211+01:00</created>
    <dateOfPayment>26</dateOfPayment>
    <defaultPrice>21</defaultPrice>
    <description>sample string 30</description>
    <email>sample string 24</email>
    <final>1</final>
    <flatNumber>sample string 16</flatNumber>
    <group>sample string 33</group>
    <houseNumber>sample string 15</houseNumber>
    <id>1</id>
    <inactive>20</inactive>
    <maxPaymentDelay>27</maxPaymentDelay>
    <name1>sample string 3</name1>
    <name2>sample string 4</name2>
    <name3>sample string 5</name3>
    <paymentMethod>sample string 25</paymentMethod>
    <peselNumber>sample string 6</peselNumber>
    <phone1>sample string 18</phone1>
    <phone2>sample string 19</phone2>
    <phoneDocument>sample string 17</phoneDocument>
    <post>sample string 14</post>
    <postCode>sample string 13</postCode>
    <purchaseCategory>sample string 34</purchaseCategory>
    <regon>sample string 23</regon>
    <representativeId>35</representativeId>
    <representativeType>36</representativeType>
    <split_payment>1</split_payment>
    <street>sample string 11</street>
    <type>1</type>
    <type_competitor>1</type_competitor>
    <type_partner>1</type_partner>
    <type_potential>1</type_potential>
    <type_receiver>1</type_receiver>
    <type_supplier>1</type_supplier>
    <updated>2025-11-08T13:42:52.3714211+01:00</updated>
    <vatNumber>sample string 7</vatNumber>
    <voivodeship>sample string 9</voivodeship>
  </payer>
  <paymentMethod>sample string 6</paymentMethod>
  <recipient>
    <additionalAdress>sample string 12</additionalAdress>
    <attributes>
      <Attribute>
        <attributeId>2</attributeId>
        <code>sample string 4</code>
        <companyData>
          <companyName>sample string 1</companyName>
          <databaseName>sample string 2</databaseName>
        </companyData>
        <copyToDelivery>7</copyToDelivery>
        <copyToTransaction>6</copyToTransaction>
        <id>1</id>
        <objectId>3</objectId>
        <value>sample string 5</value>
      </Attribute>
      <Attribute>
        <attributeId>2</attributeId>
        <code>sample string 4</code>
        <companyData>
          <companyName>sample string 1</companyName>
          <databaseName>sample string 2</databaseName>
        </companyData>
        <copyToDelivery>7</copyToDelivery>
        <copyToTransaction>6</copyToTransaction>
        <id>1</id>
        <objectId>3</objectId>
        <value>sample string 5</value>
      </Attribute>
    </attributes>
    <bankAccountNumber>sample string 22</bankAccountNumber>
    <city>sample string 10</city>
    <code>sample string 2</code>
    <companyData>
      <companyName>sample string 1</companyName>
      <databaseName>sample string 2</databaseName>
    </companyData>
    <country>sample string 8</country>
    <countryCode>sample string 31</countryCode>
    <countryIso>sample string 32</countryIso>
    <created>2025-11-08T13:42:52.3714211+01:00</created>
    <dateOfPayment>26</dateOfPayment>
    <defaultPrice>21</defaultPrice>
    <description>sample string 30</description>
    <email>sample string 24</email>
    <final>1</final>
    <flatNumber>sample string 16</flatNumber>
    <group>sample string 33</group>
    <houseNumber>sample string 15</houseNumber>
    <id>1</id>
    <inactive>20</inactive>
    <maxPaymentDelay>27</maxPaymentDelay>
    <name1>sample string 3</name1>
    <name2>sample string 4</name2>
    <name3>sample string 5</name3>
    <paymentMethod>sample string 25</paymentMethod>
    <peselNumber>sample string 6</peselNumber>
    <phone1>sample string 18</phone1>
    <phone2>sample string 19</phone2>
    <phoneDocument>sample string 17</phoneDocument>
    <post>sample string 14</post>
    <postCode>sample string 13</postCode>
    <purchaseCategory>sample string 34</purchaseCategory>
    <regon>sample string 23</regon>
    <representativeId>35</representativeId>
    <representativeType>36</representativeType>
    <split_payment>1</split_payment>
    <street>sample string 11</street>
    <type>1</type>
    <type_competitor>1</type_competitor>
    <type_partner>1</type_partner>
    <type_potential>1</type_potential>
    <type_receiver>1</type_receiver>
    <type_supplier>1</type_supplier>
    <updated>2025-11-08T13:42:52.3714211+01:00</updated>
    <vatNumber>sample string 7</vatNumber>
    <voivodeship>sample string 9</voivodeship>
  </recipient>
  <refoundAmount>48</refoundAmount>
  <refundedAmount>49</refundedAmount>
  <series>sample string 31</series>
  <sourceWarehouseId>10</sourceWarehouseId>
  <splitpay>44</splitpay>
  <state>33</state>
  <status>9</status>
  <symbol>sample string 30</symbol>
  <targetWarehouseId>11</targetWarehouseId>
  <transactionType>36</transactionType>
  <type>2</type>
  <updated>2025-11-08T13:42:52.3714211+01:00</updated>
</DocumentHeader>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.