Order Confirmation

Pazaryeri_TP_Siparis_Onay

This method is used in the marketplace to approve the product for money transfer if the transaction is completed without any problems.

Status codes and descriptions:

Durum Kodu Açıklama
0 Waiting for Approval It is used in Parameters to be sent.
1 Approved It is used in Parameters to be sent.
-1 Cancel (Only for Cancel Order. Firstly, State = 0 for Cancel Order) It is used in Parameters to be sent.
12 Canceled (Statement Code for Cancel Order and Payment) It is used in Parameters to be sent.
13 Returned. It is used in Parameters to be sent.


Parameter Required Type Length Description
G Yes Object - ST_WS_Guvenlik Object
PYSiparis_GUID Yes String 36 Marketplace Order GUID Value
Durum No String - Order Status Code
Parameter Type Length Description
Sonuc Integer 1 Result Value
Sonuc_Str String 150 Result Description, Sonuc_Ack Parameter > 0 Operation Successful, otherwise failed.
POS_Islem_Id String - Transaction ID value
GUID_AltUyeIsyeri String 36 GUID of the sub-merchant
Tutar_Urun String - Amount of the total product
Tutar_Odenecek String - Amount to be paid
Durum String - Status Code
Durum_Str String - Status Description

G Object:

Parameter Required Type Length Description
CLIENT_CODE * Integer 5 Terminal ID will be forwarded by us.
CLIENT_USERNAME * String max 16 Username will be transmitted by us.
CLIENT_PASSWORD * String max 11 Password will be transmitted by us.
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TP_Siparis_Onay_Pazaryeri xmlns="https://turkpos.com.tr/">
<G>
<CLIENT_CODE>10738</CLIENT_CODE>
<CLIENT_USERNAME>Test</CLIENT_USERNAME>
<CLIENT_PASSWORD>Test</CLIENT_PASSWORD>
</G>
<PYSiparis_GUID>107382101040931139763</PYSiparis_GUID>
<Durum>1</Durum>
</TP_Siparis_Onay_Pazaryeri>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TP_Siparis_Onay_Response xmlns="https://turkpos.com.tr/">
<TP_Siparis_Onay_Result>
<POS_Islem_Id>1065004720</POS_Islem_Id>
<GUID_AltUyeIsyeri>84715a8e-14d3-47b5-80f0-b833d8de1057</GUID_AltUyeIsyeri>
<Tutar_Urun>1,8900</Tutar_Urun>
<Tutar_Odenecek>1,8900</Tutar_Odenecek>
<Durum>1</Durum>
<Durum_Str>Sipariş Durum Güncellendi</Durum_Str>
<Sonuc>1</Sonuc>
<Sonuc_Str>Başarılı</Sonuc_Str>
</TP_Siparis_Onay_Result>
</TP_Siparis_Onay_Response>
</soap:Body>
</soap:Envelope>