> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Retrieve a transaction

GET https://api.outpave.com/api/v2/transactions/{transactionId}

Returns one transaction of the account holder. Money movement needs the permission `GET /transactions` names for its type; without it, the transaction is not found.

Reference: https://developers.outpave.com/v2/api-reference/transactions-api/transactions/get-transaction

## Authentication

- `Authorization` header (bearer token, required) — Access token from `POST /access-token`. Valid for at most 30 minutes.

## Request

### Path parameters

- `transactionId` (string, required) — The transaction's ID.

### Query parameters

- `extend` (list of enum, optional) — Members to add to each transaction. `user` needs the `users:read` permission.
  - Allowed values: `user`

### Headers

- `Account-Holder` (string, optional) — The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.
- `X-Request-Id` (string, optional) — Your own correlation ID for this request. It is recorded with the request. The `X-Request-Id` response header is always generated by the server.

## Response

### 200

The transaction.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `object` (enum, required) — Always `transaction`.
  - Allowed values: `transaction`
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `createdAt` (datetime, required) — When the transaction was recorded.
- `updatedAt` (datetime, required) — When the transaction last changed.
- `transactedAt` (datetime, required) — When the activity happened. Lists are ordered by it, newest first.
- `type` (enum, required) — `CARD_AUTHORIZATION` holds funds for a card purchase that has not been captured. `CARD_SPEND` is a captured card purchase. `CARD_REFUND` is money a merchant returned to the card. `DISPUTE_CREDIT` is money credited back to the card for a dispute. `DISPUTE_CREDIT_REVERSAL` takes a dispute credit back. `CASH_REIMBURSEMENT` and `MILEAGE_REIMBURSEMENT` pay a user back for an expense or a trip. `INBOUND_TRANSFER` and `OUTBOUND_TRANSFER` move money between a financial account and a bank; each is also the `/transfers` resource named by `transferId`. `INBOUND_WIRE` and `OUTBOUND_WIRE` are wires. `INBOUND_PAYMENT` is a payment received for an invoice, a payment link or a subscription, net of its fee; `OUTBOUND_PAYMENT` is a payment sent. `INBOUND_FUNDS` is money received without an invoice, such as a donation. `PAYMENT_REFUND` returns an inbound payment to its payer. `FEE` is the processor's fee on an inbound payment: positive when taken, negative when returned with a refund. `INBOUND_REWARDS` and `OUTBOUND_REWARDS` move rewards into and out of a financial account. `REWARDS_ACCRUAL` records rewards earned, `BALANCE_TRANSFER` moves rewards between balances and `REWARDS_TO_BALANCE` redeems rewards into a financial account's balance, negative as it leaves the rewards balance. `CHARGE_REPAYMENT` pays down a charge card program's balance.
  - Allowed values: `CARD_AUTHORIZATION`, `CARD_SPEND`, `CARD_REFUND`, `DISPUTE_CREDIT`, `DISPUTE_CREDIT_REVERSAL`, `CASH_REIMBURSEMENT`, `MILEAGE_REIMBURSEMENT`, `INBOUND_TRANSFER`, `OUTBOUND_TRANSFER`, `INBOUND_WIRE`, `OUTBOUND_WIRE`, `INBOUND_PAYMENT`, `OUTBOUND_PAYMENT`, `INBOUND_FUNDS`, `PAYMENT_REFUND`, `INBOUND_REWARDS`, `OUTBOUND_REWARDS`, `FEE`, `REWARDS_ACCRUAL`, `BALANCE_TRANSFER`, `REWARDS_TO_BALANCE`, `CHARGE_REPAYMENT`
- `status` (enum, required) — `PENDING` has not posted yet, including a payout still owed after an attempt failed. `POSTED` is final. `DECLINED` was refused, failed or was canceled, and moved no money. `REVERSED` was released without being captured, or was returned after it moved. `statusDetail` says more.
  - Allowed values: `PENDING`, `POSTED`, `DECLINED`, `REVERSED`
- `statusDetail` (enum, required) — The status in full. `COMPLETE` posted. `REFUNDED` is a card refund that posted. `PERSONAL_PENDING`, `PERSONAL_PROCESSING`, `PERSONAL_COMPLETE` and `PERSONAL_FAILED` follow a user's repayment of a purchase marked personal; `PERSONAL_REFUNDED` is one the merchant refunded. `PENDING_BANK_ACCOUNT` waits for the payee's bank account, `PENDING_PAYMENT` for its payout, `PROCESSING_PAYMENT` and `PROCESSING` are in flight, `INSUFFICIENT_FUNDS` waits for funds and `PAYMENT_FAIL` failed and will be paid again. `CLOSED` is an authorization closed without a capture. `FAILED`, `CANCELED` and `RETURNED` ended a movement of money. `REFUND_PENDING`, `REFUND_FAIL` and `REFUND_CANCELED` follow a payment refund; `REFUND_SUCCESS` and `PARTIALLY_REFUNDED` are inbound payments refunded in full and in part.
  - Allowed values: `PENDING`, `COMPLETE`, `REVERSED`, `CLOSED`, `DECLINED`, `REFUNDED`, `PERSONAL_PENDING`, `PERSONAL_PROCESSING`, `PERSONAL_COMPLETE`, `PERSONAL_FAILED`, `PERSONAL_REFUNDED`, `PENDING_PAYMENT`, `PROCESSING_PAYMENT`, `PENDING_BANK_ACCOUNT`, `PROCESSING`, `INSUFFICIENT_FUNDS`, `PAYMENT_FAIL`, `FAILED`, `CANCELED`, `RETURNED`, `REFUND_PENDING`, `REFUND_SUCCESS`, `REFUND_FAIL`, `REFUND_CANCELED`, `PARTIALLY_REFUNDED`
- `personal` (boolean, required) — `true` when a user marked the purchase as a personal expense to repay.
- `amount` (Money, required) — Negative when money leaves the account holder, such as spend or a reimbursement, positive when it arrives, such as a refund or an inbound payment. `FEE` and `REWARDS_TO_BALANCE` are signed as their types describe.
- `disputeId` (string, optional) — The dispute this transaction belongs to, as `GET /disputes/{disputeId}` accepts it. Set on a disputed purchase and on its dispute credit and reversal transactions.
- `parentTransactionId` (string, optional) — The transaction this one belongs to: the purchase of a card refund or a dispute credit, the inbound payment of a payment refund or a fee, or the purchase a repayment pays for.
- `providerReference` (string, optional) — The issuer's ID for the transaction.
- `transferId` (string, optional) — The transfer this transaction is, as `GET /transfers/{transferId}` returns it.
- `cardId` (string, optional) — The card the transaction was made with.
- `cardType` (enum, optional) — `VIRTUAL` and `PHYSICAL` are cards issued to the account holder. `EXTERNAL` is a card from another issuer that the account holder linked.
  - Allowed values: `VIRTUAL`, `PHYSICAL`, `EXTERNAL`
- `userId` (string, optional) — The user who holds the card, or who is reimbursed or paid.
- `user` (TransactionUser, optional) — The user a transaction belongs to, added with `extend=user`.
- `authorizationId` (string, optional) — The card issuer's reference for the authorization behind this transaction. An opaque reference that is not a transaction ID.
- `merchant` (TransactionMerchant, optional) — The merchant: as the card network reported it for card activity, as entered for a reimbursement, and the other party's name for a payment or a transfer.
- `memo` (string, optional) — The note a user wrote on the transaction.
- `settledAt` (datetime, optional) — When the transaction settled.

## Errors

### 400 Bad Request Error

The request does not match the contract.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 401 Unauthorized Error

The credential is missing or invalid.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 403 Forbidden Error

The credential is valid but cannot perform this operation.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 404 Not Found Error

The resource does not exist, or it is outside the account holder this request acts on.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 429 Too Many Requests Error

The request budget is exhausted.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 500 Internal Server Error

An unexpected error occurred.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 503 Service Unavailable Error

A service this request depends on is unavailable.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

## Types

### Money

An amount in the currency's minor unit, for example cents for USD.

- `value` (integer, required) — Whole minor units. Signed for balances and transaction amounts.
- `currency` (string, required) — ISO 4217 alphabetic currency code, for example `USD`.

### TransactionUser

The user a transaction belongs to, added with `extend=user`.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `email` (string, optional) — The user's email address.
- `firstName` (string, optional) — The user's first name.
- `lastName` (string, optional) — The user's last name.

### TransactionMerchant

The merchant: as the card network reported it for card activity, as entered for a reimbursement, and the other party's name for a payment or a transfer.

- `name` (string, optional) — Merchant name.
- `mcc` (string, optional) — Merchant category code.
- `city` (string, optional) — Merchant city.
- `country` (string, optional) — ISO 3166-1 alpha-2 country code.

### ProblemError

One problem with the request. At most one of `pointer`, `parameter` and `header` is present.

- `detail` (string, required) — What is wrong.
- `pointer` (string, optional) — JSON Pointer (RFC 6901) into the request body, written as a URI fragment, for example `#/policy/dailyLimit`.
- `parameter` (string, optional) — Name of the query or path parameter.
- `header` (string, optional) — Name of the request header, in lower case.
- `code` (string, optional) — Machine-readable reason for this item, when one exists.

## Examples

### A pending authorization

**Response**

```json
{
  "id": "0b6f2c5e-8d1a-4b7e-9c3f-2a5d7e1f4c80",
  "object": "transaction",
  "livemode": false,
  "createdAt": "2026-10-01T15:04:05.123Z",
  "updatedAt": "2026-10-01T15:04:05.123Z",
  "transactedAt": "2026-10-01T15:04:05.000Z",
  "type": "CARD_AUTHORIZATION",
  "status": "PENDING",
  "statusDetail": "PENDING",
  "personal": false,
  "amount": {
    "value": -4250,
    "currency": "USD"
  },
  "cardId": "7c1e9a3b-5f2d-4e8a-b6c4-1d3f5a7e9b20",
  "cardType": "VIRTUAL",
  "userId": "3e5a7c9b-1d2f-4a6e-8b0c-5f7d9e1a3c40",
  "authorizationId": "auth_8f3c2a1d9e7b",
  "merchant": {
    "name": "Corner Coffee",
    "mcc": "5814"
  }
}
```

**SDK Code**

```python A pending authorization
import requests

url = "https://api.outpave.com/api/v2/transactions/transactionId"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript A pending authorization
const url = 'https://api.outpave.com/api/v2/transactions/transactionId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A pending authorization
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/transactions/transactionId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A pending authorization
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/transactions/transactionId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A pending authorization
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.outpave.com/api/v2/transactions/transactionId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A pending authorization
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.outpave.com/api/v2/transactions/transactionId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp A pending authorization
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/transactions/transactionId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A pending authorization
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/transactions/transactionId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### A personal purchase with extend=user

**Response**

```json
{
  "id": "4c8e2a6f-0b3d-4f5a-9e1c-7d2b4f6a8c03",
  "object": "transaction",
  "livemode": false,
  "createdAt": "2026-10-03T19:30:00.000Z",
  "updatedAt": "2026-10-04T08:00:00.000Z",
  "transactedAt": "2026-10-03T19:30:00.000Z",
  "type": "CARD_SPEND",
  "status": "POSTED",
  "statusDetail": "PERSONAL_PENDING",
  "personal": true,
  "amount": {
    "value": -1800,
    "currency": "USD"
  },
  "cardId": "7c1e9a3b-5f2d-4e8a-b6c4-1d3f5a7e9b20",
  "cardType": "VIRTUAL",
  "userId": "3e5a7c9b-1d2f-4a6e-8b0c-5f7d9e1a3c40",
  "user": {
    "id": "3e5a7c9b-1d2f-4a6e-8b0c-5f7d9e1a3c40",
    "email": "pat.lee@example.com",
    "firstName": "Pat",
    "lastName": "Lee"
  },
  "authorizationId": "auth_2d4f6a8c0e1b",
  "merchant": {
    "name": "Blue Bottle Coffee",
    "mcc": "5814"
  },
  "settledAt": "2026-10-04T08:00:00.000Z"
}
```

**SDK Code**

```python A personal purchase with extend=user
import requests

url = "https://api.outpave.com/api/v2/transactions/transactionId"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript A personal purchase with extend=user
const url = 'https://api.outpave.com/api/v2/transactions/transactionId';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go A personal purchase with extend=user
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/transactions/transactionId"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby A personal purchase with extend=user
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/transactions/transactionId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java A personal purchase with extend=user
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.outpave.com/api/v2/transactions/transactionId")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php A personal purchase with extend=user
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.outpave.com/api/v2/transactions/transactionId', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp A personal purchase with extend=user
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/transactions/transactionId");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift A personal purchase with extend=user
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/transactions/transactionId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```