---
title: "$viva->transactions->getV2()"
method: GET
path: "/Transactions/getV2"
tags: ["Transactions"]
---

# $viva->transactions->getV2()

`GET /Transactions/getV2`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/docs/Transactions/getV2/get.ts> (a function with typed inputs; its response is checked against the schema)

Récupère les détails d'une transaction via la New API (Bearer, réponse camelCase).

Réponse plus légère, recommandée pour vérifier les paiements Smart Checkout.

```php
$txn = $viva->transactions->getV2('transaction-uuid');

echo $txn['email'];             // 'client@example.com'
echo $txn['amount'];            // 15.00 (attention : en EUR, pas en centimes)
echo $txn['statusId'];          // 'F'
echo $txn['orderCode'];         // 1234567890
echo $txn['cardNumber'];        // '411111...1111'
echo $txn['recurringSupport'];  // true/false
```

## Query parameters

- `transactionId` string, uuid, required

## Response `200`

Données de la transaction (camelCase)

- object: array<string, mixed>

## Changes

- **2026-03-18** `b25ecb15a272`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/changes/Transactions/getV2/get.md)

---

[API](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) - [All operations](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) - [OpenAPI document](https://skmtc.dev/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/revisions/bcafd06ce584?raw)
