DuevanceAPI documentation

Statuses

Payment statuses and the HTTP status each charge answers.

A payment moves through these statuses. The table is generated from the code that moves payments, so it is always the one the API follows.

StatusMeaningCharge answersFinal
createdRecorded, not yet sent to an acquirer.202no
processingSent; the outcome is not known yet. It may still succeed: wait for the webhook or poll.202no
requires_actionThe buyer must complete 3-D Secure at next_action.url.201no
authorizedApproved and held; capture or void it.201no
succeededCaptured: money moved.201no
partially_refundedCaptured, with part of it refunded.201no
refundedCaptured and fully refunded.201no
disputedThe cardholder disputed the charge.201no
declinedThe acquirer or a routing rule declined it. See decline_code.402yes
failedProvably never charged: no acquirer received it.402yes
canceledThe authorization was voided.402yes
expiredAbandoned before any acquirer answered.402yes

"Charge answers" is the HTTP status POST /v1/payments and POST /v1/payment-instruments/{id}/charges return for a payment in that status. A final status never changes again.

How statuses move

created → processing → succeeded → partially_refunded → refunded
                     ↘ authorized → succeeded | canceled
                     ↘ requires_action → authorized | succeeded | declined
                     ↘ declined | failed

A cardholder dispute moves an authorized or captured payment to disputed.

Unknown outcomes

processing means the charge was sent and its answer isn't known yet: the acquirer timed out or answered something we couldn't read. It may still succeed. Don't charge the buyer again. Duevance asks the acquirer again with backoff, applies its callbacks, and the payment settles into succeeded, authorized, declined or failed, with a webhook. If the acquirer never answers, the payment stays processing and our operators check it with the acquirer.

failed is different: the charge provably never reached an acquirer, so nothing was charged and you may retry with a new Idempotency-Key.

Failover

When an acquirer gives a soft decline, or provably received nothing, Duevance tries the next eligible channel with the same payment. It never fails over after an unknown outcome, because the first acquirer may have charged. The payment shows the outcome of the last attempt.