v1

latestOpenAPI 3.0.02026-07-262561105.1 KB
Transactions API

Capture Transaction

Include the transaction_id returned in the authorize transaction response to capture a transaction.

post/transactions/{transaction_id}/capture

Path parameters

transaction_idstring required
Example:ABCD-1234

A unique ID representing the transaction’s loan or charge ID.

Headers

Idempotency-Keystring

Unique identifier pre-generated by the client and used by the server to recognize successive calls to the same endpoint. This is required for Split Capture and encouraged for single transaction functionality. Note: If a request fails or times out, use the same idempotency key to retry the operation without risk of double-processing. For details, see the Idempotency section in About Split Capture.

Request body

order_idstring

Identifies the order within the merchant's order management system that this transaction corresponds to. It is only returned in the response if included in the request.

reference_idstring

An optional, unique identifier that may be associated with each transaction event and reconciled with the system of record used by the merchant.

shipping_carrierstring

The shipping carrier used to ship the items.

shipping_confirmationstring

The tracking number of the shipment.

amountinteger

The amount to capture, used only for merchants that are enabled with split capture. The value is positive and is represented in the smallest currency unit, such as cents instead of dollars.

Example request

{
  "order_id": "order_125",
  "reference_id": "W1X2Y3Z4",
  "shipping_carrier": "USPS",
  "shipping_confirmation": "C12345678901234",
  "amount": 10000
}

Response

HTTP 200 OK