Preview: the API is being built and these endpoints may change

Sold as and channel

What was sold, and what sent it, on every sale and webhook.

Every sale says what it was sold as and which channel sent it, on List transactions, Get a transaction and every transaction.* webhook.

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

ValueMeaning
planOne of SimConnectNG's plans
vendor_onlyOne of your 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.

ValueWhat sent it
simOne of your own SIMs
stockOne of SimConnectNG's own SIMs
vendorOne of your vendor accounts, named by vendor_account_id
testThe 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 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"