Skip to main content
Vindicia Knowledge Center

Fetch a specific transaction

Fetch a specific transaction

Retrieves the specified 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 full Transaction object.

  • cURL
  • Java
Example Request
curl -X GET \
-u acaff38d462f9430d5cbcbaf:a575771fc679b9de \
"https://api.prodtest.vindicia.com/transactions/tx1234"
          
The above command returns JSON structured like this:
{
  "object": "Transaction",
  "id": "tx1234",
  "vid": "5f5d1ba0ac7b0d492026c909211e8f90a6867068",
  "created": "2016-06-02T09:50:57-07:00",
  "amount": 37.95,
  "currency": "USD",
  "account": {`...`},
  "source_payment_method": {`...`},
  "status_log": {
    "object": "List",
    "data": [
      {
        "object": "TransactionStatus",
        "status": "Captured",
        "created": "2016-06-02T12:53:42-07:00",
        "payment_method_type": "CreditCard",
        "credit_card_status": {
          "object": "TransactionStatusCreditCard",
          "auth_code": "T00"
        }
      },
      {`...status_log...`}
    ],
    "total_count": 2
  },
  "payment_processor": "Test",
  "payment_processor_transaction_id": "tx1234",
  "shipping_address": {`...`},
  "items": {
    "object": "List",
    "data": [
      {
        "object": "TransactionItem",
        "sku": "sku_1234",
        "index_number": 1,
        "item_type": "Purchase",
        "name": "Widgets",
        "price": 37.95,
        "quantity": 1,
        "tax_classification": null,
        "tax_type": "Exclusive Sales",
        "subtotal": 37.95,
        "total": 37.95
      },
      {
        "object": "TransactionItem",
        "sku": "Total Tax",
        "index_number": 2,
        "item_type": "Purchase",
        "name": "Total Tax",
        "price": 0,
        "quantity": 1,
        "tax_classification": "TaxExempt",
        "tax_type": "Exclusive Sales",
        "discount": 0,
        "subtotal": 0,
        "total": 0
      }
    ],
    "total_count": 2
  },
  "source_ip": "63.201.132.182",
  "sales_tax_address": {`...`},
  "to_be_captured": true
}
import com.vindicia.client.CashBox;
CashBox.apiKey = "acaff38d462f9430d5cbcbaf:a575771fc679b9de";
transaction.fetch("tx1234");
          
The above command returns JSON structured like this:
{
  "object": "Transaction",
  "id": "tx1234",
  "vid": "5f5d1ba0ac7b0d492026c909211e8f90a6867068",
  "created": "2016-06-02T09:50:57-07:00",
  "amount": 37.95,
  "currency": "USD",
  "account": {`...`},
  "source_payment_method": {`...`},
  "status_log": {
    "object": "List",
    "data": [
      {
        "object": "TransactionStatus",
        "status": "Captured",
        "created": "2016-06-02T12:53:42-07:00",
        "payment_method_type": "CreditCard",
        "credit_card_status": {
          "object": "TransactionStatusCreditCard",
          "auth_code": "T00"
        }
      },
      {`...status_log...`}
    ],
    "total_count": 2
  },
  "payment_processor": "Test",
  "payment_processor_transaction_id": "tx1234",
  "shipping_address": {`...`},
  "items": {
    "object": "List",
    "data": [
      {
        "object": "TransactionItem",
        "sku": "sku_1234",
        "index_number": 1,
        "item_type": "Purchase",
        "name": "Widgets",
        "price": 37.95,
        "quantity": 1,
        "tax_classification": null,
        "tax_type": "Exclusive Sales",
        "subtotal": 37.95,
        "total": 37.95
      },
      {
        "object": "TransactionItem",
        "sku": "Total Tax",
        "index_number": 2,
        "item_type": "Purchase",
        "name": "Total Tax",
        "price": 0,
        "quantity": 1,
        "tax_classification": "TaxExempt",
        "tax_type": "Exclusive Sales",
        "discount": 0,
        "subtotal": 0,
        "total": 0
      }
    ],
    "total_count": 2
  },
  "source_ip": "63.201.132.182",
  "sales_tax_address": {`...`},
  "to_be_captured": true
}
          

For Users

Learn More
For Users

Cashbox Features

Learn More
Cashbox Features
Back to Top