> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Transactions

> Explains primary and secondary transaction types and their statuses within a Yuno payment.

## What is a transaction?

Each payment has one or more associated transactions. A payment on Yuno can go through multiple processors via fallbacks, retries, or split routing. Each of these paths can add multiple transactions to the payment. You can check all transactions related to a payment in the [payment timeline](https://docs.y.uno/docs/using-yuno/dashboard-overview/payments.md) on your Yuno dashboard.

On Yuno, transactions are divided into **primary** and **secondary** transactions. In addition, each transaction can have a different status depending on its processing stage.

## Transaction types and statuses

### Primary transactions

Primary transactions initiate a payment and can be one of three types:

* **Purchase**: A standard sale transaction.
* **Authorize**: A transaction used to authorize a payment amount to be captured at a later time.
* **Verify**: A transaction to verify if the customer is using a valid payment method.

### Secondary transactions

Secondary transactions refer to additional transactions that affect the final outcome of the payment and primary transaction. The secondary transactions can be:

* **Refund**: A refund made to the initial transaction, which can be full or partial.
* **Cancel**: A cancellation of an initial authorization.
* **Capture**: A capture of funds from an initial authorization transaction, which can be full or partial.
* **Chargeback**: A dispute initiated by the customer regarding the initial transaction.
* **3DS**: A 3D Secure (3DS) verification of an initial transaction.
* **Fraud screening**: A fraud screening verification of an initial transaction. These are represented as `FRAUD_SCREENING` in your payments response.
* **Marketplace transfers**: Standalone transfers within a Marketplace, represented as `SPLIT_TRANSFER` for forward transfers and `SPLIT_TRANSFER_REVERSE` for standalone reversals. Transfers linked to a payment transaction can also be reversed and are represented as `SPLIT_TRANSFER_REVERSAL`.

All possible statuses for each transaction type are presented below.

![Diagram of all possible statuses for each transaction type](https://mintcdn.com/yuno-3979e326/OXm4Cjavq6YgX3ks/images/reference/transactions/image1.png?fit=max\&auto=format\&n=OXm4Cjavq6YgX3ks\&q=85\&s=d6871f086461dfd5c420dc58a25d7894)

Refer to the [Transactions API reference](https://docs.y.uno/reference/payments/status-and-response-codes/transaction.md) for more detailed information on transaction status codes and messages.

The [Payments](https://docs.y.uno/docs/using-yuno/dashboard-overview/payments.md) section of your Yuno dashboard lets you view your payments and transactions. From there, you can also export this information.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.