Skip to main content
Vindicia Knowledge Center

Capture a Transaction

Capture a Transaction

Capture an authorized Transaction. Note: you can also have a transaction captured (complete charge) during creation – see “Create a Transaction”.

Route (URL) Parameters

Parameter Default Description Required
transaction n/a The id or the vid of the Transaction to retrieve Yes

Query Parameters

None.

Accepts

None.

Returns

JSON A minified Transaction object.

  • cURL
  • Java
Example Request
curl -X POST \
-u acaff38d462f9430d5cbcbaf:a575771fc679b9de \
-d '{
"object": "Transaction",
"id": "tx1234",
"account": {
"object": "Account",
"id": "cust_1235"
},
"source_payment_method": {
"object": "PaymentMethod",
"id": "paym_1235"
},
"shipping_address": {
"object": "Address",
"name": "c/o Charlie Brown",
"line1": "123 Main Street",
"city": "San Francisco",
"district": "CA",
"postal_code": "94105",
"country": "US"
},
"items": [
{
"object": "TransactionItem",
"sku": "sku_1234",
"name": "Widgets",
"price": 37.95,
"quantity": 1
}
],
"source_ip": "63.201.132.182",
"policy": {
"min_chargeback_probability": 99,
"send_email_notification": 0
},
"to_be_captured": false
}' "https://api.prodtest.vindicia.com/transactions"
          
The above command returns JSON structured like this:
{
  "object": "Transaction",
  "id": "tx1234",
  "vid": "5f5d1ba0ac7b0d492026c909211e8f90a6867068"
}
           
import com.vindicia.client.CashBox;
CashBox.apiKey = "acaff38d462f9430d5cbcbafa575771fc679b9de";
Map<string,> params = new HashMap<string,>();
params.put("name",  "Charlie Brown");
params.put("email", "charlie.brown@peanuts.com");
params.put("id",    "pay_1234");
transaction.create(params);
          
The above command returns JSON structured like this:
{
  "object": "Transaction",
  "id": "tx1234",
  "vid": "5f5d1ba0ac7b0d492026c909211e8f90a6867068"
}
          

For Users

Learn More
For Users

Cashbox Features

Learn More
Cashbox Features
Back to Top