> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get transaction

> Retrieve a specific transaction by key, including its associated rewards

## Endpoint

```
GET https://api.partnero.com/v1/transactions/{key}
```

## Path parameters

| Parameter | Type   | Required | Description              |
| --------- | ------ | -------- | ------------------------ |
| `key`     | string | Yes      | Transaction's unique key |

## Request

```bash cURL theme={null}
curl --location 'https://api.partnero.com/v1/transactions/transaction_123' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "key": "transaction_123",
      "action": "sale",
      "amount": 99.99,
      "partner": "partner_123",
      "customer": "customer_123",
      "credit": false,
      "is_currency": true,
      "amount_units": "USD",
      "created_at": "2025-05-07T05:32:48.000000Z",
      "deleted_at": null,
      "rewards": [
        {
          "key": "transaction_123",
          "action": "sale",
          "status": "ok",
          "customer": "customer_123",
          "partner": "partner_123",
          "amount": 29.997,
          "amount_units": "USD",
          "is_currency": true,
          "credit": false,
          "created_at": "2025-05-07T05:32:48.000000Z",
          "deleted_at": null,
          "product_type_data": {
            "product_id": "prod_123",
            "product_type": "monthly"
          }
        }
      ]
    },
    "status": 1
  }
  ```
</ResponseExample>

### Response fields

<Accordion title="Transaction — data">
  | Field          | Type         | Description                             |
  | -------------- | ------------ | --------------------------------------- |
  | `key`          | string       | Unique transaction identifier           |
  | `action`       | string       | Transaction type                        |
  | `amount`       | number       | Transaction amount                      |
  | `amount_units` | string       | Currency code                           |
  | `partner`      | string       | Partner key                             |
  | `customer`     | string       | Customer key                            |
  | `credit`       | boolean      | Whether this is a credit transaction    |
  | `is_currency`  | boolean      | Whether the amount is monetary          |
  | `created_at`   | string       | ISO 8601 timestamp                      |
  | `deleted_at`   | string\|null | Deletion timestamp if archived/refunded |
</Accordion>

<Accordion title="Rewards — data.rewards[]">
  | Field               | Type         | Description                                       |
  | ------------------- | ------------ | ------------------------------------------------- |
  | `key`               | string       | Reward identifier (matches transaction key)       |
  | `action`            | string       | Reward origin                                     |
  | `status`            | string       | Reward status (`ok`, `review_period`, `rejected`) |
  | `customer`          | string       | Customer key                                      |
  | `partner`           | string       | Partner key                                       |
  | `amount`            | number       | Commission amount                                 |
  | `amount_units`      | string       | Currency code                                     |
  | `is_currency`       | boolean      | Whether the amount is monetary                    |
  | `credit`            | boolean      | Whether this is a credit reward                   |
  | `created_at`        | string       | ISO 8601 timestamp                                |
  | `deleted_at`        | string\|null | Deletion timestamp                                |
  | `product_type_data` | object       | Product ID and type (if provided)                 |
</Accordion>
