Parçalı İptal Talebi (ClaimCancelPartial)
Parçalı İptal Talebi (ClaimCancelPartial)
Parçalı iptal talebi servisi.
ClaimCancelPartialRequest
Auth | Bkz: Authentication |
orderItemId | İptal edilecek sipariş kalemi idsi. |
cancelQuantity | İptal edilecek sipariş kalemi adedi. |
cancelReasonTypeId | İptal sebebi idsi. ClaimCancelPartialReasonType servisinden alınacaktır. |
cancelReasonDescription | İptal sebebi açıklaması.. |
ClaimCancelPartialResponse
result |
ClaimCancelPartial Örnek Çağrı
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.n11.com/ws/schemas">
<soapenv:Header/>
<soapenv:Body>
<sch: ClaimCancelPartialRequest>
<auth>
<appKey>************************</appKey>
<appSecret>********</appSecret>
</auth>
<orderItemId>1234567</orderItemId>
<cancelQuantity>1</cancelQuantity>
<cancelReasonTypeId>81</cancelReasonTypeId>
<cancelReasonDescription>Stok Yok</cancelReasonDescription>
</sch: ClaimCancelPartialRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns3: ClaimCancelPartialResponse xmlns:ns3="http://www.n11.com/ws/schemas">
<result>
<status>success</status>
</result>
</ns3: ClaimCancelPartialResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
ClaimCancelPartial Örnek Çağrı (JAVA)
public static void main(String[] args) {
String strAppKey = "***";
String strAppSecret = "***";
Long orderItemId = 1234567L;
Integer cancelQuantity = 1;
Long cancelReasonTypeId = 81L;
String cancelReasonDescription = ”Stok Yok”;
Authentication authentication = new Authentication();
authentication.setAppKey(strAppKey);
authentication.setAppSecret(strAppSecret);
ClaimCancelPartialRequest request = new ClaimCancelPartialRequest();
request.setAuthentication(authentication);
request.setOrderItemId(orderItemId);
request.setCancelQuantity(cancelQuantity);
request.setCancelReasonTypeId(cancelReasonTypeId);
request.setCancelReasonDescription(cancelReasonDescription);
ClaimCancelServicePort port = new ClaimCancelServicePortService()
.getClaimCancelServicePortSoap11();
ClaimCancelPartialResponse response = port.claimCancelPartial(request);}