Bu metod ile mağazanızın siparişlerinize ait faturaları yüklemenize olanak tanır.
https://ws.pttavm.com:93/service.svc HTTP/1.1POSTtext/xml;charset=UTF-81621http://tempuri.org/IService/SaveInvoincews.pttavm.com:93
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soapenv:Header/>
<soapenv:Body>
<tem:SaveInvoince>
<!--Optional:-->
<tem:lineItemId>
<!--Merchant sepet kodu her siparişin bir idsi vardır. buda sipariş id ye denk gelen sepetid
lineitem değeri olabilir. :-->
<arr:int>189355237</arr:int>
</tem:lineItemId>
<!--Optional:-->
<tem:orderId>PTT-123123-123123</tem:orderId>
<!--Optional:-->
<tem:content></tem:content>
<tem:url><![CDATA[https://pttavm.com/web/ngn/doc/printout?rc=1&id=5123AE7640AE415AB2F32ADFAD02DD9A&tp=BFCE0FAA8EA123D29DFD211A5DAA43FC]]></tem:url>
</tem:SaveInvoince>
</soapenv:Body>
</soapenv:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<ActivityId CorrelationId="2d9f9cb4-cdb4-4398-83d5-0669a3747e4b" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-0000-000000000000</ActivityId>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2025-04-29T12:07:15.499Z</u:Created>
<u:Expires>2025-04-29T12:12:15.499Z</u:Expires>
</u:Timestamp>
</o:Security>
</s:Header>
<s:Body>
<SaveInvoinceResponse xmlns="http://tempuri.org/">
<SaveInvoinceResult xmlns:a="http://schemas.datacontract.org/2004/07/ePttAVMService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Error_Message>işlem gerçekleştirilmiştir.</a:Error_Message>
<a:Success>false</a:Success>
</SaveInvoinceResult>
</SaveInvoinceResponse>
</s:Body>
</s:Envelope>
| Parametre | Tür | Açıklama |
|---|---|---|
| lineItemId | int | Mağazadan gelen siparişteki ürün ID'lerini içerir. |
| arr:int | int | Siparişlerin line bazlı benzersiz sayısıdır. (En az bir veri girişi gereklidir!) |
| orderId | string | Sipariş numarası |
| content | string | Faturanın Base64 verilerini .pdf formatında içerir. (İsteğe bağlı) |
| Error_Message | string | Hata mesajı |
| Success | boolean | İşlem durum bilgisi |