İçeriğe geç

capture

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

Tahsilat sonucu (captured / failed / capture_pending) ya da replay (idempotentReplay=true).

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
captureMode
string
Allowed values: auto manual
idempotentReplay
boolean

Example

{
"status": "initiated",
"captureMode": "auto"
}

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
captureMode
string
Allowed values: auto manual
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
captureMode
string
Allowed values: auto manual
idempotentReplay
boolean

Ödeme tahsil edilebilir durumda değil (initiated, expired, cancelled, …) — payment_not_capturable.

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

Ödeme auto modda — capture_mode_mismatch · capture penceresi doldu — capture_window_expired.

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