# Conversions (postbacks in)

[Orbito Ads · English · HTML](https://orbitoads.pro/docs/api/conversions/)

Sources checked · 2026-11-27

### Browse documentation



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[Orbito Ads](/en/) [Documentation](/docs/) [API](/docs/api/)



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](/docs/api/conversions.md)



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


| Field | Also accepted as | Required | Meaning |
| --- | --- | --- | --- |
| `ref` | `subid`, `sub_id`, `clickid`, `click_id`, `cnv_id`, `cid` | yes¹ | The identifier from the ad’s link. Up to 512 characters. |
| `invite_link` | `invitelink`, `link` | yes¹ | For channel ads: the unique invite link Orbito Ads created. |
| `event` | `event_type`, `type`, `goal`, `cnv_status` | yes | Becomes `lead`, `conversion` or `purchase` (words like `signup`, `ftd`, `deposit`, `sale` are understood). Unknown words are refused. |
| `txid` | `tid`, `transaction_id`, `order_id`, `rdtk_event_id`, header `X-Idempotency-Key` | yes | Your id for this event. Sending the same `txid` again updates the event instead of counting it twice. Up to 128 characters. |
| `amount` | `payout`, `sum`, `revenue`, `value` | no | Number; negative for chargebacks. |
| `currency` | `cur`, `cnv_currency` | no | ISO 4217 code. Without one, an amount is recorded as USD. |
| `status` | — | no | Your network’s own status word (approved, pending…), stored as is. |
| `event_time` | `timestamp`, `date` | no | ISO or unix time; kept within the last 90 days. |
| `account_id` | `accountId` | sometimes | Needed when the same `ref` exists in several of your cabinets (`409` otherwise). |
| `meta` | — | no | Your 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 } }
  ]
}
```

| Parameter | Meaning |
| --- | --- |
| `adId` | One campaign. |
| `days` | Only 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.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `X-API-Key` | header | `string` | Yes |

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.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `token` | path | `string` | Yes |
| `ref` | query | `string` | — |
| `event` | query | `string` | — |
| `txid` | query | `string` | — |
| `amount` | query | `string` | — |
| `currency` | query | `string` | — |

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.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `adId` | query | `integer` | — |
| `days` | query | `integer` | — |
| `X-API-Key` | header | `string` | Yes |

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

| API | Meaning |
| --- | --- |
| account_id / accountId | accountId 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

| Method | Route | Parameters | Request content | Response codes |
| --- | --- | --- | --- | --- |
| POST | /api/v1/postback | — | application/json · ConversionEvent \| object \| array · [ConversionEvent] · 0 … 1000 | 202, 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/conversions | adId, days | — | 200, 401 |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Schema fields and limits · Sending confirmed conversions

| Field | Documented value |
| --- | --- |
| ref \| invite_link | string |
| event | lead \| conversion \| purchase |
| txid | string |
| amount | number |
| currency | ISO 4217 |
| GET conversions · days | 1 … 365 |


Source · [Data source](https://adsly.pro/docs/api/conversions/)

## ConversionEvent

| Field | Field type |
| --- | --- |
| ref | string |
| invite_link | string |
| event | string |
| txid | string |
| amount | number |
| currency | string |
| status | string |
| event_time | string \| integer |
| account_id | integer |
| meta | object |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## ConversionsRow

| Field | Field type |
| --- | --- |
| account_id | integer |
| ad_id | integer \| null |
| leads | integer |
| conversions | integer |
| purchases | integer |
| revenue | object |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)



## Related reading

[Receiving campaign events](/docs/api/webhooks/)[API versions and changes](/docs/api/changelog/)



Reference revision 2026-10-08



[Previous topic**Receiving campaign events**](/docs/api/webhooks/)[Next topic**API versions and changes**](/docs/api/changelog/)

## Sources and data

- [openapi.yaml](https://orbitoads.pro/docs/api/openapi.yaml)
- [openapi.json](https://orbitoads.pro/docs/api/openapi.json)
