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| Name | Description | Type | Additional 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-12-06T08:16:46.7066656+03:00",
"orderDocumentDate": "2025-12-06T08:16:46.710598+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",
"external_id": "sample string 13"
},
"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",
"external_id": "sample string 13"
}
}
}
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>
<external_id>sample string 13</external_id>
<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>
<external_id>sample string 13</external_id>
<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-12-06T08:16:46.7066656+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-12-06T08:16:46.710598+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:
Response Information
Resource Description
ResultModelOfListOfSaveOrderAndInvoiceResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Value | Collection of SaveOrderAndInvoiceResultModel |
None. |
|
| IsSuccessfull | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| StatusCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Value": [
{
"orderId": "8d2ba6fd-843f-46fd-aa27-15a4a93794e3",
"invoiceId": "e51f9732-6dfe-4f93-9f3b-3bbb962d56b1",
"barcode": "sample string 3"
},
{
"orderId": "8d2ba6fd-843f-46fd-aa27-15a4a93794e3",
"invoiceId": "e51f9732-6dfe-4f93-9f3b-3bbb962d56b1",
"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>e51f9732-6dfe-4f93-9f3b-3bbb962d56b1</d2p1:invoiceId>
<d2p1:orderId>8d2ba6fd-843f-46fd-aa27-15a4a93794e3</d2p1:orderId>
</d2p1:SaveOrderAndInvoiceResultModel>
<d2p1:SaveOrderAndInvoiceResultModel>
<d2p1:barcode>sample string 3</d2p1:barcode>
<d2p1:invoiceId>e51f9732-6dfe-4f93-9f3b-3bbb962d56b1</d2p1:invoiceId>
<d2p1:orderId>8d2ba6fd-843f-46fd-aa27-15a4a93794e3</d2p1:orderId>
</d2p1:SaveOrderAndInvoiceResultModel>
</Value>
</ResultModelOfArrayOfSaveOrderAndInvoiceResultModelUBDOYRAL>