POST v6/api_2004_SevtarController/SaveOrderAndInvoice

Bir adet sipariş fişi oluşturup faturalaştırır. Oluşturduğu siparişe ve faturaya ilişkin Id bilgilerini verir.(Hamurlabsın göndermiş oldugu evrak.)

Request Information

URI Parameters

None.

Body Parameters

SaveOrderAndInvoiceModel
NameDescriptionTypeAdditional information
documentHeader

DocumentHeader

None.

documentLines

Collection of DocumentDetail

None.

customer

CustomerInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "documentHeader": {
    "invoiceDocumentSerial": "sample string 1",
    "invoiceDocumentNumber": 2,
    "invoiceGibDocumentNumber": "sample string 3",
    "oderDocumentSerial": "sample string 4",
    "oderDocumentNumber": 5,
    "invoiceDocumentDate": "2025-06-19T16:15:38.0683582+03:00",
    "orderDocumentDate": "2025-06-19T16:15:38.0683582+03:00",
    "warehouseNumber": 8,
    "projectCode": "sample string 9",
    "responsibilityCenterCode": "sample string 10",
    "paymentPlanNo": 11,
    "sellerCode": "sample string 12",
    "tradeType": 0
  },
  "documentLines": [
    {
      "barcode": "sample string 1",
      "vat": 2.0,
      "quantity": 3.0,
      "unitPrice": 4.0,
      "discountTotal": 5.0,
      "specialNote": "sample string 6",
      "currencyName": 0,
      "currencyRate": 7.0
    },
    {
      "barcode": "sample string 1",
      "vat": 2.0,
      "quantity": 3.0,
      "unitPrice": 4.0,
      "discountTotal": 5.0,
      "specialNote": "sample string 6",
      "currencyName": 0,
      "currencyRate": 7.0
    }
  ],
  "customer": {
    "customerCode": "sample string 1",
    "firstName": "sample string 2",
    "lastName": "sample string 3",
    "fullName": "sample string 4",
    "email": "sample string 5",
    "phone": "sample string 6",
    "taxNo": "sample string 7",
    "taxOffice": "sample string 8",
    "citizenshipNumber": "sample string 9",
    "source": "sample string 10",
    "groupCode": "sample string 11",
    "sectorCode": "sample string 12",
    "representativeCode": "sample string 13",
    "specialNote": "sample string 14",
    "accountingCode": "sample string 15",
    "customerCurrencyName": 0,
    "customerBillingAddress": {
      "addressNo": 1,
      "firstName": "sample string 2",
      "lastName": "sample string 3",
      "fullName": "sample string 4",
      "phone": "sample string 5",
      "country": "sample string 6",
      "city": "sample string 7",
      "district": "sample string 8",
      "township": "sample string 9",
      "openAddress": "sample string 10",
      "postalCode": "sample string 11",
      "specialNote": "sample string 12"
    },
    "customerShippingAddress": {
      "addressNo": 1,
      "firstName": "sample string 2",
      "lastName": "sample string 3",
      "fullName": "sample string 4",
      "phone": "sample string 5",
      "country": "sample string 6",
      "city": "sample string 7",
      "district": "sample string 8",
      "township": "sample string 9",
      "openAddress": "sample string 10",
      "postalCode": "sample string 11",
      "specialNote": "sample string 12"
    }
  }
}

application/xml, text/xml

Sample:
<SaveOrderAndInvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.SevtarEntegrasyon">
  <customer>
    <accountingCode>sample string 15</accountingCode>
    <citizenshipNumber>sample string 9</citizenshipNumber>
    <customerBillingAddress>
      <addressNo>1</addressNo>
      <city>sample string 7</city>
      <country>sample string 6</country>
      <district>sample string 8</district>
      <firstName>sample string 2</firstName>
      <fullName>sample string 4</fullName>
      <lastName>sample string 3</lastName>
      <openAddress>sample string 10</openAddress>
      <phone>sample string 5</phone>
      <postalCode>sample string 11</postalCode>
      <specialNote>sample string 12</specialNote>
      <township>sample string 9</township>
    </customerBillingAddress>
    <customerCode>sample string 1</customerCode>
    <customerCurrencyName>TL</customerCurrencyName>
    <customerShippingAddress>
      <addressNo>1</addressNo>
      <city>sample string 7</city>
      <country>sample string 6</country>
      <district>sample string 8</district>
      <firstName>sample string 2</firstName>
      <fullName>sample string 4</fullName>
      <lastName>sample string 3</lastName>
      <openAddress>sample string 10</openAddress>
      <phone>sample string 5</phone>
      <postalCode>sample string 11</postalCode>
      <specialNote>sample string 12</specialNote>
      <township>sample string 9</township>
    </customerShippingAddress>
    <email>sample string 5</email>
    <firstName>sample string 2</firstName>
    <fullName>sample string 4</fullName>
    <groupCode>sample string 11</groupCode>
    <lastName>sample string 3</lastName>
    <phone>sample string 6</phone>
    <representativeCode>sample string 13</representativeCode>
    <sectorCode>sample string 12</sectorCode>
    <source>sample string 10</source>
    <specialNote>sample string 14</specialNote>
    <taxNo>sample string 7</taxNo>
    <taxOffice>sample string 8</taxOffice>
  </customer>
  <documentHeader>
    <invoiceDocumentDate>2025-06-19T16:15:38.0683582+03:00</invoiceDocumentDate>
    <invoiceDocumentNumber>2</invoiceDocumentNumber>
    <invoiceDocumentSerial>sample string 1</invoiceDocumentSerial>
    <invoiceGibDocumentNumber>sample string 3</invoiceGibDocumentNumber>
    <oderDocumentNumber>5</oderDocumentNumber>
    <oderDocumentSerial>sample string 4</oderDocumentSerial>
    <orderDocumentDate>2025-06-19T16:15:38.0683582+03:00</orderDocumentDate>
    <paymentPlanNo>11</paymentPlanNo>
    <projectCode>sample string 9</projectCode>
    <responsibilityCenterCode>sample string 10</responsibilityCenterCode>
    <sellerCode>sample string 12</sellerCode>
    <tradeType>ToptanYurtici</tradeType>
    <warehouseNumber>8</warehouseNumber>
  </documentHeader>
  <documentLines>
    <DocumentDetail>
      <barcode>sample string 1</barcode>
      <currencyName>TL</currencyName>
      <currencyRate>7</currencyRate>
      <discountTotal>5</discountTotal>
      <quantity>3</quantity>
      <specialNote>sample string 6</specialNote>
      <unitPrice>4</unitPrice>
      <vat>2</vat>
    </DocumentDetail>
    <DocumentDetail>
      <barcode>sample string 1</barcode>
      <currencyName>TL</currencyName>
      <currencyRate>7</currencyRate>
      <discountTotal>5</discountTotal>
      <quantity>3</quantity>
      <specialNote>sample string 6</specialNote>
      <unitPrice>4</unitPrice>
      <vat>2</vat>
    </DocumentDetail>
  </documentLines>
</SaveOrderAndInvoiceModel>

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

Response Information

Resource Description

ResultModelOfListOfSaveOrderAndInvoiceResultModel
NameDescriptionTypeAdditional information
Value

Collection of SaveOrderAndInvoiceResultModel

None.

IsSuccessfull

boolean

None.

ErrorMessage

string

None.

StatusCode

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": [
    {
      "orderId": "840a346a-aced-4dfa-8e5a-ed7693b488e6",
      "invoiceId": "f008a027-56a7-4c5e-8c92-fdef532e6f32",
      "barcode": "sample string 3"
    },
    {
      "orderId": "840a346a-aced-4dfa-8e5a-ed7693b488e6",
      "invoiceId": "f008a027-56a7-4c5e-8c92-fdef532e6f32",
      "barcode": "sample string 3"
    }
  ],
  "IsSuccessfull": true,
  "ErrorMessage": "sample string 2",
  "StatusCode": 3
}

application/xml, text/xml

Sample:
<ResultModelOfArrayOfSaveOrderAndInvoiceResultModelUBDOYRAL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/V6.models.CommonModels">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccessfull>true</IsSuccessfull>
  <StatusCode>3</StatusCode>
  <Value xmlns:d2p1="http://schemas.datacontract.org/2004/07/V6.models.Entegrasyon.Operasyonlar.SevtarEntegrasyon">
    <d2p1:SaveOrderAndInvoiceResultModel>
      <d2p1:barcode>sample string 3</d2p1:barcode>
      <d2p1:invoiceId>f008a027-56a7-4c5e-8c92-fdef532e6f32</d2p1:invoiceId>
      <d2p1:orderId>840a346a-aced-4dfa-8e5a-ed7693b488e6</d2p1:orderId>
    </d2p1:SaveOrderAndInvoiceResultModel>
    <d2p1:SaveOrderAndInvoiceResultModel>
      <d2p1:barcode>sample string 3</d2p1:barcode>
      <d2p1:invoiceId>f008a027-56a7-4c5e-8c92-fdef532e6f32</d2p1:invoiceId>
      <d2p1:orderId>840a346a-aced-4dfa-8e5a-ed7693b488e6</d2p1:orderId>
    </d2p1:SaveOrderAndInvoiceResultModel>
  </Value>
</ResultModelOfArrayOfSaveOrderAndInvoiceResultModelUBDOYRAL>