This method is used to cancel or refund a successful credit card transaction. Cancellation is made for transactions made on the same day and refund is made for transactions made on different days.
Parameter | Required | Type | Length | Description |
---|---|---|---|---|
G | * | Object | - | ST_WS_Security Object |
PYSiparis_GUID | * | String | 36 | Marketplace Order GUID Value (from the Pazaryeri_TP_Siparis_Detay_Ekle method result) |
GUID | * | String | 36 | Merchant Key |
Durum | * | String | - | For cancellation, write IPTAL. For refund, write IADE. |
Siparis_ID | * | String | - | Transaction Order ID value (from the Pos_Odeme method result) |
Sipariş Tutar | * | Double | - | Order amount (If Sipariş Tutar=0, full amount is refunded. If Sipariş > 0, partial cancellation/refund is processed.) |
Ödenecek Tutar | * | Double | - | Current amount to be paid to the seller |
G Object:
Parameter | Required | Type | Length | Description |
---|---|---|---|---|
CLIENT_CODE | * | Integer | 5 | Terminal ID, will be provided by us. |
CLIENT_USERNAME | * | String | max 16 | Username, will be provided by us. |
CLIENT_PASSWORD | * | String | max 11 | Password, will be provided by us. |
Parameter | Type | Length | Description |
---|---|---|---|
Sonuc | Integer | 1 | Result Value |
Sonuc_Str | String | 150 | Result Description, If Result Parameter > 0, Operation Successful; otherwise, unsuccessful. |
Durum | String | 36 | Status Code |
Durum_Str | String | - | Status Description |