Skip to main content
POST
Fails a pending deposit or payout you own.
Sandbox only. Call https://smtp.yativo.com/api/v1. Production returns 404 with Not found.
A pending deposit is marked failed (no credit). A pending payout is marked failed and the debit is refunded. A deposit that has already been credited, or a payout that has already completed, cannot be moved backwards (409).
See every sandbox simulation endpoint in Sandbox.

Authorizations

X-Api-Key
string
header
required

Your API key (yativo_pk_...) from Developers → API Keys. Send together with X-Api-Secret.

X-Api-Secret
string
header
required

Your API secret (yativo_sk_...), shown once when the key is created.

Path Parameters

id
string
required

Deposit id, payout id, or transaction_id.

Body

application/json
reason
string

Optional failure reason stored on the record.

Example:

"insufficient_funds"

Response

Record failed

status
string
Example:

"failed"

status_code
integer
message
string
Example:

"Request failed."

data
object | null
error_details
object

Included on every failed response, with the same shape for every endpoint.