İçeriğe geç

cancel

POST
/v1/payments/{paymentCode}/cancel
curl --request POST \
--url https://api.lydiagate.com/v1/payments/example/cancel \
--header 'Authorization: Bearer <token>'
paymentCode
required
string

İptal edildi ya da zaten iptal edilmişti (idempotentReplay=true). Bazı banka bağlantılarında iptal bankada sürerken yanıt status: "awaiting_capture" döner; ödeme bankanın teyidinden sonra cancelled olur.

Media typeapplication/json
object
paymentCode
string
status
string
Allowed values: initiated capture_pending captured failed expired voided partially_refunded refunded authorization_pending awaiting_capture cancelled
idempotentReplay
boolean

Example

{
"status": "initiated"
}

Partner CLOSED — partner_not_active.

Media type*/*
object
paymentCode
string
status
string
Allowed values: initiated capture_pending captured failed expired voided partially_refunded refunded authorization_pending awaiting_capture cancelled
idempotentReplay
boolean

Ödeme yok ya da başka partnerin — payment_not_found.

Media type*/*
object
paymentCode
string
status
string
Allowed values: initiated capture_pending captured failed expired voided partially_refunded refunded authorization_pending awaiting_capture cancelled
idempotentReplay
boolean

Ödeme iptal edilebilir durumda değil (captured, expired, …) — payment_not_cancellable.

Media type*/*
object
paymentCode
string
status
string
Allowed values: initiated capture_pending captured failed expired voided partially_refunded refunded authorization_pending awaiting_capture cancelled
idempotentReplay
boolean

Ödeme auto modda — capture_mode_mismatch.

Media type*/*
object
paymentCode
string
status
string
Allowed values: initiated capture_pending captured failed expired voided partially_refunded refunded authorization_pending awaiting_capture cancelled
idempotentReplay
boolean