capture
POST
/v1/payments/{paymentCode}/capture
const url = 'https://api.lydiagate.com/v1/payments/example/capture';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.lydiagate.com/v1/payments/example/capture \ --header 'Authorization: Bearer <token>'Authorizations
Bölüm başlığı “Authorizations”Parameters
Bölüm başlığı “Parameters”Path Parameters
Bölüm başlığı “Path Parameters”paymentCode
required
string
Responses
Bölüm başlığı “Responses”Tahsilat sonucu (captured / failed / capture_pending) ya da replay (idempotentReplay=true).
Media typeapplication/json
object
paymentCode
string
status
string
captureMode
string
idempotentReplay
boolean
Example
{ "status": "initiated", "captureMode": "auto"}Partner CLOSED — partner_not_active.
Media type*/*
object
paymentCode
string
status
string
captureMode
string
idempotentReplay
boolean
Ödeme yok ya da başka partnerin — payment_not_found.
Media type*/*
object
paymentCode
string
status
string
captureMode
string
idempotentReplay
boolean
Ödeme tahsil edilebilir durumda değil (initiated, expired, cancelled, …) — payment_not_capturable.
Media type*/*
object
paymentCode
string
status
string
captureMode
string
idempotentReplay
boolean
Ödeme auto modda — capture_mode_mismatch · capture penceresi doldu — capture_window_expired.
Media type*/*
object
paymentCode
string
status
string
captureMode
string
idempotentReplay
boolean