Orbitoads
Browse documentation

Conversions (postbacks in)

Send a conversion from your server or tracker with a campaign reference or invite link, event type and unique transaction ID. Optional revenue and currency let the reporting layer associate outcomes with spend.

Markdown

Telegram counts views, clicks and joins. Your backend or tracker knows what happened next — a lead, a deposit, a sale. Send those events to Orbito Ads and each campaign shows its conversions and revenue in the panel, in reports and in automation rules.

Turn it on

On the key’s card in the panel, switch on Receive postbacks. Without it, sending returns 403 INGEST_DISABLED. For a tracker, also press Generate tracker URL — you get a write-only URL (shown once) that can post conversions but can’t read anything.

How a conversion finds its campaign

Each ad links somewhere with an identifier you control:

  • a bot or mini-app: t.me/yourbot?start=REF or ?startapp=REF
  • a website: your tracker’s click id or sub id in the link, e.g. https://site.com/?subid=REF

When you send a conversion, include that REF as ref. Orbito Ads finds the campaign whose link carries it, in the cabinets the key reaches. If several campaigns of one cabinet share the same ref, the conversion counts for each of them.

From your backend: POST /v1/postback

Example
curl -s -X POST https://orbitoads.pro/api/v1/postback \
  -H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
  -d '{ "ref": "promo_oct", "event": "purchase", "amount": 49.90, "currency": "USD", "txid": "order-10087" }'
Example
{ "success": true, "data": { "id": 551203, "ad_id": 90412, "account_id": 53, "event_type": "purchase", "deduped": false } }

Up to 1,000 events at once: { "events": [ {…}, {…} ] } (or a bare array). The response reports each one — { "accepted": 998, "failed": 2, "results": [ … ] } — so one bad event never sinks the batch.

From a tracker: GET /v1/ingest/{token}

Paste the tracker URL into your tracker’s postback settings, with its macros:

Example
# Keitaro
https://orbitoads.pro/api/v1/ingest/<token>?ref={subid}&event={status}&amount={payout}&currency={currency}&txid={subid}_{status}
# RedTrack
https://orbitoads.pro/api/v1/ingest/<token>?ref={clickid}&event={type}&status={status}&amount={sum}&txid={rdtk_event_id}
# Binom
https://orbitoads.pro/api/v1/ingest/<token>?ref={clickid}&event={status}&amount={payout}&txid={clickid}
# Voluum
https://orbitoads.pro/api/v1/ingest/<token>?ref={clickid}&event={et}&amount={payout}&currency={currency}&txid={txid}

Check the macro names against your tracker’s own documentation. The answer is plain text: OK, OK (deduped), or an error message with its HTTP status (4xx — don’t retry, 5xx — retry).

Fields

FieldAlso accepted asRequiredMeaning
refsubid, sub_id, clickid, click_id, cnv_id, cidyes¹The identifier from the ad’s link. Up to 512 characters.
invite_linkinvitelink, linkyes¹For channel ads: the unique invite link Orbito Ads created.
eventevent_type, type, goal, cnv_statusyesBecomes lead, conversion or purchase (words like signup, ftd, deposit, sale are understood). Unknown words are refused.
txidtid, transaction_id, order_id, rdtk_event_id, header X-Idempotency-KeyyesYour id for this event. Sending the same txid again updates the event instead of counting it twice. Up to 128 characters.
amountpayout, sum, revenue, valuenoNumber; negative for chargebacks.
currencycur, cnv_currencynoISO 4217 code. Without one, an amount is recorded as USD.
status—noYour network’s own status word (approved, pending…), stored as is.
event_timetimestamp, datenoISO or unix time; kept within the last 90 days.
account_idaccountIdsometimesNeeded when the same ref exists in several of your cabinets (409 otherwise).
meta—noYour own JSON object, up to 4 KB.

¹ ref or invite_link.

Limits and retries

20 events per second per key, with bursts up to 1,000 — separate from the read and write budgets. On 429 wait Retry-After; retrying is always safe because txid deduplicates.

GET /v1/conversions

Totals per campaign, counted once per event:

Example
curl -s "https://orbitoads.pro/api/v1/conversions?days=30" -H "X-API-Key: $ORBITO_API_KEY"
Example
{
  "success": true,
  "data": [
    { "account_id": 53, "ad_id": 90412, "leads": 12, "conversions": 3, "purchases": 1, "revenue": { "USD": 49.9 } }
  ]
}
ParameterMeaning
adIdOne campaign.
daysOnly events received in the last 1–365 days.
  • revenue is per currency — amounts are never converted.
  • ad_id is null for events matched by a ref that several campaigns share.
  • Amounts you send are your own reporting. They are not billed and don’t change anything you pay Orbito Ads.

API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

POST /api/v1/postback

Submit one conversion or a batch of up to 1,000 events.

ParameterLocationFormatRequired
X-API-KeyheaderstringYes
cURL
curl -X POST https://orbitoads.pro/api/v1/postback \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -H 'Content-Type: application/json' \
  --data '{
  "ref": "club-november",
  "event": "purchase",
  "txid": "example-order-2048",
  "amount": 18,
  "currency": "EUR",
  "account_id": 7401
}'
HTTP 202
{
  "success": true,
  "data": {
    "id": 61176,
    "ad_id": 38017,
    "account_id": 7401,
    "event_type": "purchase",
    "deduped": false
  }
}
Request body schema
JSON Schema
{
  "oneOf": [
    {
      "properties": {
        "account_id": {
          "type": "integer"
        },
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "event": {
          "type": "string"
        },
        "event_time": {
          "type": [
            "string",
            "integer"
          ]
        },
        "invite_link": {
          "type": "string"
        },
        "meta": {
          "type": "object"
        },
        "ref": {
          "maxLength": 512,
          "type": "string"
        },
        "status": {
          "maxLength": 64,
          "type": "string"
        },
        "txid": {
          "maxLength": 128,
          "type": "string"
        }
      },
      "required": [
        "event",
        "txid"
      ],
      "type": "object"
    },
    {
      "properties": {
        "events": {
          "items": {
            "properties": {
              "account_id": {
                "type": "integer"
              },
              "amount": {
                "type": "number"
              },
              "currency": {
                "type": "string"
              },
              "event": {
                "type": "string"
              },
              "event_time": {
                "type": [
                  "string",
                  "integer"
                ]
              },
              "invite_link": {
                "type": "string"
              },
              "meta": {
                "type": "object"
              },
              "ref": {
                "maxLength": 512,
                "type": "string"
              },
              "status": {
                "maxLength": 64,
                "type": "string"
              },
              "txid": {
                "maxLength": 128,
                "type": "string"
              }
            },
            "required": [
              "event",
              "txid"
            ],
            "type": "object"
          },
          "maxItems": 1000,
          "type": "array"
        }
      },
      "required": [
        "events"
      ],
      "type": "object"
    },
    {
      "items": {
        "properties": {
          "account_id": {
            "type": "integer"
          },
          "amount": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "event_time": {
            "type": [
              "string",
              "integer"
            ]
          },
          "invite_link": {
            "type": "string"
          },
          "meta": {
            "type": "object"
          },
          "ref": {
            "maxLength": 512,
            "type": "string"
          },
          "status": {
            "maxLength": 64,
            "type": "string"
          },
          "txid": {
            "maxLength": 128,
            "type": "string"
          }
        },
        "required": [
          "event",
          "txid"
        ],
        "type": "object"
      },
      "maxItems": 1000,
      "type": "array"
    }
  ]
}

GET /api/v1/ingest/{token}

Send a tracker conversion through a write-only URL.

ParameterLocationFormatRequired
tokenpathstringYes
refquerystring—
eventquerystring—
txidquerystring—
amountquerystring—
currencyquerystring—
cURL
curl -X GET 'https://orbitoads.pro/api/v1/ingest/YOUR_ORBITO_TRACKER_TOKEN?ref=club-november&event=purchase&txid=example-order-2048&amount=18&currency=EUR'
HTTP 200
"OK"

GET /api/v1/conversions

List conversion counts and revenue grouped by the original currency.

ParameterLocationFormatRequired
adIdqueryinteger—
daysqueryinteger—
X-API-KeyheaderstringYes
cURL
curl -X GET 'https://orbitoads.pro/api/v1/conversions?adId=38017&days=7' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
HTTP 200
{
  "success": true,
  "data": [
    {
      "account_id": 7401,
      "ad_id": 38017,
      "leads": 2,
      "conversions": 1,
      "purchases": 1,
      "revenue": {
        "EUR": 18
      }
    }
  ]
}

Implementation notes

Link an event to an ad

Enable Receive postbacks on the provider key. Send ref or invite_link, an event and a stable txid. The canonical events are lead, conversion and purchase. When a ref resolves across accounts, include account_id.

Request outcomes and response fields
APIMeaning
account_id / accountIdaccountId is accepted as an alias for account_id. Supply the account when the same ref occurs in multiple accounts. An ambiguous match returns HTTP 409.

Deduplication and currency

Repeating txid updates its event. A batch can contain successes and failures. Include ISO currency for revenue, otherwise USD is assumed. Negative amounts represent chargebacks. The tracker URL is write-only and returns plain text OK or OK (deduped).

Operations and fields

POST /api/v1/postback GET /api/v1/ingest/{token} GET /api/v1/conversions ref invite_link event txid amount currency

  • POST /api/v1/postback
  • GET /api/v1/ingest/{token}
  • GET /api/v1/conversions
  • ref
  • invite_link
  • event
  • txid
  • amount
  • currency

Request example

GET /api/v1/conversions?days=7 HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}

Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.

Protocol reference

MethodRouteParametersRequest contentResponse codes
POST/api/v1/postback—application/json · ConversionEvent | object | array · [ConversionEvent] · 0 … 1000202, 400, 401, 403, 404, 409, 429
GET/api/v1/ingest/{token}token, ref, event, txid, amount, currency—200, 400, 401, 403, 404, 429
GET/api/v1/conversionsadId, days—200, 401

Source · Data source

Schema fields and limits · Sending confirmed conversions

FieldDocumented value
ref | invite_linkstring
eventlead | conversion | purchase
txidstring
amountnumber
currencyISO 4217
GET conversions · days1 … 365

Source · Data source

ConversionEvent

FieldField type
refstring
invite_linkstring
eventstring
txidstring
amountnumber
currencystring
statusstring
event_timestring | integer
account_idinteger
metaobject

Source · Data source

ConversionsRow

FieldField type
account_idinteger
ad_idinteger | null
leadsinteger
conversionsinteger
purchasesinteger
revenueobject

Source · Data source

Reference revision

Pro Panel
Pro Panel