Debits funds held by a two-step payment (auto_clearing = false). The X-Action header must be gateway.payment.clearing. Clearing is possible once, only for a payment in status approved. Without amount the full payment amount is debited; with a smaller amount the rest is reversed automatically. The clearing is processed asynchronously: the response returns the payment with status process_clearing; get the final status via gateway.payment.status or gateway.request.status. For a one-step payment (auto_clearing = true) clearing is not needed: the payment is debited at creation; to return the money use gateway.payment.refund.Two-step payment flowRequests to the payment system are processed asynchronously: the API responds immediately, the result is available via gateway.payment.status. If a response is lost or returned with X-Request-Status = process, get the result via gateway.request.status with the X-Request-Id of that request. A clearing with an amount less than the payment amount reverses the rest automatically (reverse_payments).