convertPurchaseOrderToInvoice
Genel Bilgi
| Özellik |
Değer |
| Endpoint Adı |
convertPurchaseOrderToInvoice |
| SOAPAction |
urn:WebticariService#convertPurchaseOrderToInvoice |
| Açıklama |
Mevcut bir alış siparişini direkt olarak alış 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 alış 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>
XML Yapısı
Alış siparişinden faturaya dönüştürmek için sipal_id alınır. <sepet> ile kısmi dönüşüm yapılabilir:
<siparisler>
<siparis>
<sipal_id>88</sipal_id> <!-- Alış siparişi ID -->
<sepet>
<kalem>
<sipalsp_no>201</sipalsp_no> <!-- Sipariş satır no (kısmi dönüşüm için) -->
</kalem>
</sepet>
</siparis>
</siparisler>
Örnek SOAP İstek
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="urn:WebticariService">
<soapenv:Header/>
<soapenv:Body>
<tns:convertPurchaseOrderToInvoice>
<token>a3f5c2b1d8e4f9a0b7c6d3e2f1a8b5c4d7e0f3a2</token>
<siparisler><![CDATA[
<siparisler>
<siparis>
<sipal_id>88</sipal_id>
</siparis>
</siparisler>
]]></siparisler>
</tns:convertPurchaseOrderToInvoice>
</soapenv:Body>
</soapenv:Envelope>
Notlar
sepet boş bırakılırsa siparişin tüm satırları faturalanmış olarak dönüştürülür.
sipalsp_no belirtilerek belirli sipariş satırlarının kısmi faturalanması yapılabilir.
- Alış siparişi doğrudan faturaya dönüştürülür; ara irsaliye oluşturulmaz.
- Token geçersizse yanıt
Invalid Token string'i döner.