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

# $viva->transactions->capture()

`POST /Transactions/capture`

Capture une transaction pré-autorisée.

```php
// Capture totale
$result = $viva->transactions->capture('preauth-uuid', amount: 1500);

// Capture partielle
$result = $viva->transactions->capture('preauth-uuid', amount: 1000);
```

## Query parameters

- `transactionId` string, uuid, required
- `amount` integer, required

## Response `200`

Transaction capturée

- object

## Other responses

- `400` — `ApiException` — Capture échouée

---

[API](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) · [All operations](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qrcommunication/viva-wallet-merchant-sdk-re-fe-rence-php/versions/bcafd06ce584/schema)
