POST v6/api_2004_SevtarController/SaveWaybil
Bir adet satış irsaliyesi kaydeder. (Hamurlabsın göndermiş oldugu evrak.)
Request Information
URI Parameters
None.
Body Parameters
SaveWaybilModelName | Description | Type | Additional information |
---|---|---|---|
documentHeader | WaybilDocumentHeader |
None. |
|
documentLines | Collection of WaybilDocumentDetail |
None. |
|
customer | CustomerInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "documentHeader": { "documentSerial": "sample string 1", "documentNumber": 2, "gibDocumentNumber": "sample string 3", "waybilDocumentDate": "2025-06-19T16:15:37.4998593+03:00", "warehouseNumber": 5, "projectCode": "sample string 6", "responsibilityCenterCode": "sample string 7", "paymentPlanNo": 8, "sellerCode": "sample string 9" }, "documentLines": [ { "orderId": "c9937a4e-7d5c-43ec-93b6-dcfd13971c31", "barcode": "sample string 2", "vat": 3.0, "quantity": 4.0, "unitPrice": 5.0, "discountTotal": 6.0, "specialNote": "sample string 7", "currencyName": 0, "currencyRate": 8.0 }, { "orderId": "c9937a4e-7d5c-43ec-93b6-dcfd13971c31", "barcode": "sample string 2", "vat": 3.0, "quantity": 4.0, "unitPrice": 5.0, "discountTotal": 6.0, "specialNote": "sample string 7", "currencyName": 0, "currencyRate": 8.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:
<SaveWaybilModel 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> <documentNumber>2</documentNumber> <documentSerial>sample string 1</documentSerial> <gibDocumentNumber>sample string 3</gibDocumentNumber> <paymentPlanNo>8</paymentPlanNo> <projectCode>sample string 6</projectCode> <responsibilityCenterCode>sample string 7</responsibilityCenterCode> <sellerCode>sample string 9</sellerCode> <warehouseNumber>5</warehouseNumber> <waybilDocumentDate>2025-06-19T16:15:37.4998593+03:00</waybilDocumentDate> </documentHeader> <documentLines> <WaybilDocumentDetail> <barcode>sample string 2</barcode> <currencyName>TL</currencyName> <currencyRate>8</currencyRate> <discountTotal>6</discountTotal> <quantity>4</quantity> <specialNote>sample string 7</specialNote> <unitPrice>5</unitPrice> <vat>3</vat> <orderId>c9937a4e-7d5c-43ec-93b6-dcfd13971c31</orderId> </WaybilDocumentDetail> <WaybilDocumentDetail> <barcode>sample string 2</barcode> <currencyName>TL</currencyName> <currencyRate>8</currencyRate> <discountTotal>6</discountTotal> <quantity>4</quantity> <specialNote>sample string 7</specialNote> <unitPrice>5</unitPrice> <vat>3</vat> <orderId>c9937a4e-7d5c-43ec-93b6-dcfd13971c31</orderId> </WaybilDocumentDetail> </documentLines> </SaveWaybilModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModelName | Description | Type | Additional information |
---|---|---|---|
IsSuccessfull | boolean |
None. |
|
ErrorMessage | string |
None. |
|
StatusCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsSuccessfull": true, "ErrorMessage": "sample string 2", "StatusCode": 3 }
application/xml, text/xml
Sample:
<ResultModel 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> </ResultModel>