Skip to main content
POST
Settle a pre-chargeback alert
When an Ethoca or Verifi alert matches one of your payments, Yuno adds a transaction of type PRE_CHARGEBACK in status PENDING_REVIEW and sends you a webhook with the alert’s deadline. Call this endpoint before that deadline to report your outcome. See Pre-chargeback alerts for the full flow. The transaction must be of type PRE_CHARGEBACK and in status PENDING_REVIEW. Otherwise the API answers 400 INVALID_TRANSACTION_TYPE or INVALID_STATUS.
OutcomesAny other value is refused with 400 INVALID_RESOLUTION. You can also send the outcome in the optional resolution field, which takes the same values and wins over reason when both are present. Send status as SETTLED.
You may not need to call this endpoint
  • A refund made through the refund endpoint that covers the alerted amount closes the alert as REFUNDED and answers the network for you.
  • If the payment was already fully refunded when the alert arrived, Yuno closes the alert as soon as it arrives.
  • If nobody answers, Yuno answers the network shortly before the deadline. With a confirmed refund covering the alert it answers REFUNDED and the transaction moves to SUCCEEDED. Otherwise, including a failed or partial refund, it answers MISSED and the transaction moves to EXPIRED.
  • A refund still pending at the deadline leaves the alert open in PENDING_REVIEW, and Yuno sends nothing.
Pre-chargeback alerts exist only in production. There is no sandbox trigger for them today.
Note that this request requires an X-Idempotency-Key. Check the Authentication page for more information.

Authorizations

public-api-key
string
header
default:<Your public-api-key>
required
private-secret-key
string
header
default:<Your private-secret-key>
required
X-Idempotency-Key
string
header
default:<Your X-Idempotency-Key>
required

Headers

X-Idempotency-Key
string
required

Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

Path Parameters

payment_id
string
required

The unique identifier of the payment (UUID, 36 chars).

transaction_id
string
required

The id of the PRE_CHARGEBACK transaction that the alert created (UUID, 36 chars). The API calls this path parameter transaction_code.

Body

application/json
reason
enum<string>
required

Your outcome for the alert. REFUNDED: full refund (Yuno issues the missing refund). RESOLVED: handled without a refund. CANCELLED: authorization or order cancelled. ORDER_STOPPED and SERVICE_SUSPENDED: intended for fraud alerts, and they pause the subscription behind the payment. DISMISS: you decline the alert.

Available options:
REFUNDED,
RESOLVED,
CANCELLED,
ORDER_STOPPED,
SERVICE_SUSPENDED,
DISMISS
status
enum<string>
required

Whether you settled the alert.

Available options:
SETTLED,
NOT_SETTLED
description
string
required

Free text describing what you did.

merchant_reference
string
required

Your own reference for this answer, for example your case id.

resolution
enum<string>

Optional. Same values as reason. When you send it, Yuno uses it as the outcome instead of reason.

Available options:
REFUNDED,
RESOLVED,
CANCELLED,
ORDER_STOPPED,
SERVICE_SUSPENDED,
DISMISS

Response

The outcome was recorded and sent to the alert network. The response describes the PRE_CHARGEBACK transaction and its payment.

The PRE_CHARGEBACK transaction after your answer. Nullable fields are always present and come back as null.

code
string

The PRE_CHARGEBACK transaction id.

type
string

Always PRE_CHARGEBACK.

status
string

Transaction status. With REFUNDED, PENDING_REVIEW until the refund is confirmed, when the settle issues the refund or one is still in flight. Otherwise, the status you sent (SETTLED).

reason
string | null

The reason you sent.

merchant_reference
string

The merchant_reference you sent.

response_code
string | null

Response code.

response_message
string | null

Response message.

resolution
string | null

The outcome recorded on the alert. null when a REFUNDED settle issues the refund or waits for one in flight; the outcome is then in reason.

category
string

Payment method category, for example CARD.

amount
object

Alerted amount.

provider_data
object

The alert network data.

payment
object

The payment the alert matched.

created_at
string<date-time>

Creation time.

updated_at
string<date-time>

Last update time.