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

# $viva->transactions->capture()

`POST /Transactions/capture`

## 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/capture/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## 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/capture/post.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)
