deleteAccountingVoucherXML
Genel Bilgi
| Özellik |
Değer |
| Endpoint Adı |
deleteAccountingVoucherXML |
| SOAPAction |
urn:WebticariService#deleteAccountingVoucherXML |
| Açıklama |
Daha önce aktarılmış muhasebe fişlerini siler. |
| Kimlik Doğrulama Gerektirir |
Evet (token) |
İstek Parametreleri
| Parametre |
Tip |
Zorunlu |
Açıklama |
token |
xsd:string |
Evet |
login endpoint'inden alınan oturum token'ı |
fisler |
xsd:string |
Evet |
Silinecek muhasebe fişi kimlik bilgilerini içeren XML |
Yanıt Parametreleri
| Parametre |
Tip |
Açıklama |
return |
xsd:string |
İşlem sonucu |
fisler XML Yapısı
<fisler>
<fis>
<fis_no>77</fis_no>
</fis>
<!-- Birden fazla fiş silinebilir -->
<fis>
<fis_no>78</fis_no>
</fis>
</fisler>
| Alan |
Tip |
Zorunlu |
Açıklama |
fis_no |
integer |
Evet |
Silinecek muhasebe fişinin sunucu ID'si (importAccountingVoucherXML yanıtındaki server_id) |
Yanıt XML Yapısı
<transactions>
<transferreds>
<transaction>
<server_id>77</server_id>
</transaction>
</transferreds>
<transposeds>
<transaction>
<errorno>-1</errorno>
<errormessage>Fiş bulunamadı.</errormessage>
</transaction>
</transposeds>
</transactions>
| Alan |
Açıklama |
transferreds |
Başarıyla silinen fişler; server_id = fis_no |
transposeds |
Başarısız olanlar; errormessage hata açıklaması |
Örnek SOAP İstek
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="urn:WebticariService">
<soapenv:Header/>
<soapenv:Body>
<tns:deleteAccountingVoucherXML>
<token>abc123tokendeğeri</token>
<fisler><![CDATA[
<fisler>
<fis>
<fis_no>77</fis_no>
</fis>
</fisler>
]]></fisler>
</tns:deleteAccountingVoucherXML>
</soapenv:Body>
</soapenv:Envelope>
Hata Durumları
| Durum |
Açıklama |
Invalid Token |
Token geçersiz veya süresi dolmuş (30 dakika) |
| Fiş bulunamadı |
fis_no tabloda mevcut değil |
Notlar
- Silme işlemi
muhFisSil($fis_no) fonksiyonunu çağırır; başarılı olursa true döner.
fis_no, importAccountingVoucherXML yanıtındaki server_id değeridir.
- Silme işlemi ilgili tüm muhasebe kayıtlarını kalıcı olarak siler.