Skip to main content
POST
cURL
Capture submits a settlement against a previous pre-authorization. Identify both the originating transaction and its order in the request body.

Retry a previous capture

Use this same endpoint to create a new retry attempt. In the request body, provide retry.originating_id for the previous SmartRetry capture transaction.
The capture amount must not exceed the remaining capturable amount (the authorized amount minus any amount already captured). If you omit amount, the full remaining capturable amount is captured.
A retry request creates a new attempt. To safely replay the exact same request after an ambiguous failure, reuse its Idempotency-Key. See Idempotency.

Authorizations

x-timestamp
string
header
required

Current Unix time in seconds. Must be within 5 minutes of server time. Included in the signed string.

x-signature
string
header
required

Lowercase hex HMAC-SHA256 of {timestamp}.{METHOD}.{path_with_query}.{raw_body}, keyed with your API Secret. See the Authentication guide.

Headers

idempotency-key
string

Optional idempotency key, scoped to terminal + matched route pattern. A replayed request returns the cached response with Idempotency-Replayed: true.

Maximum string length: 255
Pattern: ^[\w-]+$

Path Parameters

terminal_friendly_id
string
required

The unique identifier of the terminal.

Required string length: 6
Pattern: ^[\dA-Za-z]{6}$

Body

application/json
transaction_reference_id
string
required

The transaction friendly ID of the original PREAUTH transaction to be captured

Required string length: 8
Pattern: ^[\dA-Za-z]{8}$
order_reference_id
string
required

The order friendly ID associated with the original PREAUTH transaction to be captured

Required string length: 8
Pattern: ^[\dA-Za-z]{8}$
amount
number

Amount to capture, in major currency units (e.g. 10.00 for $10.00 USD). Defaults to the full preauthorized amount if omitted.

Required range: 0.01 <= x <= 999999.99
merchant_transaction_id
string
description
string
Maximum string length: 500

Response

Default Response

transaction_id
string
required
Required string length: 8
Pattern: ^[\dA-Za-z]{8}$
accepted
boolean
required
order_id
string
required
Required string length: 8
Pattern: ^[\dA-Za-z]{8}$
merchant_transaction_id
string
merchant_order_id
string