---
updatedAt: 2025-11-17T16:50:11.000Z
agentTools:
  projectIndex: https://docs.bamboopayment.com/llms.txt
---

# Capture and Cancel

Capture and cancel operations for pre-authorized purchases. Learn how to confirm or void an authorization using Bamboo’s API.

Capture and cancel operations allow merchants to manage the lifecycle of pre-authorized credit and debit card purchases. **A capture finalizes an existing authorization, while a cancel voids it before settlement.**

<br />

## Capture a Purchase

A capture finalizes a **pre-authorized** purchase.\
The operation may confirm the full authorized amount or a lower amount when partial capture is supported by the acquiring network.

<br />

<Callout icon="📘" theme="info">
  Authorization support varies by payment method and country.
</Callout>

<br />

### Request URL

**Production**\
`https://api.bamboopayment.com/v3/api/purchase/{{TransactionId}}/capture`

**Staging**\
`https://api.stage.bamboopayment.com/v3/api/purchase/{{TransactionId}}/capture`

<br />

### Request Parameters

The request body is optional.\
If no body is sent, the purchase is captured for the **full authorized amount**.\
If an amount is provided, it must be **equal to or lower** than the originally authorized amount.

| Field    | Type    | Mandatory? | Description                                         |
| -------- | ------- | ---------- | --------------------------------------------------- |
| `Amount` | numeric | No         | Amount to capture. Must be ≤ the authorized amount. |

<br />

#### Request Example – Partial Capture

```json
{
  "Amount": 50
}
```

<br />

### Response

The operation returns the standard **Purchase Response object**.\
Refer to the [Create a Purchase](create-purchase#/response) guide for detailed response fields.

<br />

***

<br />

## Cancel a Purchase

A cancel (*void*) invalidates a **pre-authorized** purchase before it is captured or settled.\
This operation is only available when the purchase is in **PreAuthorized** status.\
To reverse a captured purchase, use the [refund operation](refunds#/).

<br />

### Request URL

**Production**\
`https://api.bamboopayment.com/v3/api/purchase/{{TransactionId}}/cancel`

**Staging**\
`https://api.stage.bamboopayment.com/v3/api/purchase/{{TransactionId}}/cancel`

<br />

### Request Parameters

This operation does not accept request parameters.\
The purchase is always canceled for the **full authorized amount**, and partial cancellation is not supported.

<br />

### Response

The operation returns the standard **Purchase Response object**.\
Refer to the [Create a Purchase](create-purchase#/response) guide for detailed response fields.

<br />

***

<br />

## Test the API

Use the API Reference to test the capture and cancel operations:

<Cards columns={2}>
  <Card title="Test Capture" href="/reference/api-capture#/" icon="fa-solid fa-plug-circle-check">
    Send a capture request and review the full response.
  </Card>

  <Card title="Test Cancel" href="/reference/api-cancel#/" icon="fa-solid fa-plug-circle-xmark">
    Test the cancel operation for pre-authorized purchases.
  </Card>
</Cards>