---
title: Sold as and channel
description: What was sold, and what sent it, on every sale and webhook.
group: concepts
order: 8
---

Every sale says what it was sold as and which channel sent it, on [List transactions](/docs/api/list-transactions), [Get a transaction](/docs/api/get-transaction) and every `transaction.*` [webhook](/docs/concepts/webhooks).

```json
{
  "reference": "txn_0192f4c7e2f34b8c9d4e6f7a8b9c0d1e",
  "product_code": "vendor:mtn-sme-1gb",
  "sold_as": "vendor_only",
  "vendor_only_plan": { "id": "0192d8e2-3c41-7d58-9a06-2f4b7e1c8d93", "code": "vendor:mtn-sme-1gb", "name": "MTN SME 1GB" },
  "channel": "vendor",
  "vendor_account_id": "0192d8e1-77b2-7e0c-8f3a-5d9c2b6e4a10"
}
```

## `sold_as`

| Value | Meaning |
| --- | --- |
| `plan` | One of SimConnectNG's plans |
| `vendor_only` | One of your [vendor-only plans](/docs/api/list-vendor-only-plans) |

`vendor_only_plan` is `{ id, code, name }` as it was when sold, and null for a `plan` sale. The code and name stay after you rename or delete the plan.

## `channel`

The channel of the sale's latest attempt. It is null before the first attempt, and on sales made before this field existed.

| Value | What sent it |
| --- | --- |
| `sim` | One of your own SIMs |
| `stock` | One of SimConnectNG's own SIMs |
| `vendor` | One of your vendor accounts, named by `vendor_account_id` |
| `test` | The test provider, in test mode only |

A sale sent from SimConnectNG's own SIMs shows what they added as `stock_price`, `0.00` otherwise.

## Filtering

[List transactions](/docs/api/list-transactions) takes both as filters. A wrong value is a `400` on that field.

```bash
curl "https://api.simconnectng.com/api/v1/transactions?sold_as=vendor_only&channel=vendor" \
  -H "Authorization: Bearer $SIMCONNECT_KEY"
```
