İşlem İptali
POST
/partner/1.0/pos/transaction/cancelGerekli scope: payment:void
Henüz mahsuplaşmamış bir ödeme tahsilatını iptal eder (void).
Örnek
- cURL
- Node.js
- Java
curl -X POST https://<host>/partner/1.0/pos/transaction/cancel \
-H "X-Api-Key: ..." \
-H "X-Timestamp: ..." \
-H "X-Signature: ..." \
-H "Content-Type: application/json" \
-d '{
"id": "PAY-77820",
"reason": "Müşteri talebi"
}'
const res = await kaptanRequest('/partner/1.0/pos/transaction/cancel', {
id: 'PAY-77820',
reason: 'Müşteri talebi'
});
console.log(res);
String res = client.post("/partner/1.0/pos/transaction/cancel", """
{
"id": "PAY-77820",
"reason": "Müşteri talebi"
}
""");
System.out.println(res);
İstek Body
idstringrequiredİptal edilecek ödeme tahsilatının kimliği.
reasonstringOpsiyonel iptal gerekçesi.