convertSalesOrderToInvoice
Genel Bilgi
| Özellik |
Değer |
| Endpoint Adı |
convertSalesOrderToInvoice |
| SOAPAction |
urn:WebticariService#convertSalesOrderToInvoice |
| Açıklama |
Mevcut bir satış siparişini direkt olarak satış faturasına dönüştürür. |
| Kimlik Doğrulama Gerektirir |
Evet (token) |
İstek Parametreleri
| Parametre |
Tip |
Zorunlu |
Açıklama |
token |
xsd:string |
Evet |
login endpoint'inden alınan oturum token'ı |
siparisler |
xsd:string |
Evet |
Dönüştürülecek sipariş bilgilerini içeren XML |
Yanıt Parametreleri
| Parametre |
Tip |
Açıklama |
return |
xsd:string |
Oluşturulan fatura bilgilerini içeren sonuç |
Yanıt Yapısı
<transactions>
<transferreds>
<transaction>
<server_id>SUNUCU_FATURA_NO</server_id>
</transaction>
</transferreds>
<transposeds>
<transaction>
<errorno>-1</errorno>
<errormessage>Hata açıklaması</errormessage>
</transaction>
</transposeds>
</transactions>
Davranış
- Fonksiyon
satisSiparisDonusturFatura() çağrısı yapar.
- Satış siparişi doğrudan faturalanmış olarak dönüştürülür; ara irsaliye oluşturulmaz.
- Sipariş ID (
sipsat_id) parametre olarak doğrudan gönderilir; XML parse etme yapılmaz.
Örnek SOAP İstek
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="urn:WebticariService">
<soapenv:Header/>
<soapenv:Body>
<tns:convertSalesOrderToInvoice>
<token>a3f5c2b1d8e4f9a0b7c6d3e2f1a8b5c4d7e0f3a2</token>
<siparisler>1547</siparisler>
</tns:convertSalesOrderToInvoice>
</soapenv:Body>
</soapenv:Envelope>
Notlar
siparisler parametresi satış siparişinin sistem ID'sidir (sipsat_id).
- Dönüşüm başarılı olduğunda oluşturulan fatura ID'si
server_id alanında döner.
- Token geçersizse yanıt
Invalid Token string'i döner.