Orbitoads
浏览文档

发送已确认的转化

从服务端或追踪器发送活动引用或邀请链接、事件类型及唯一交易 ID。可选的金额和货币字段可用于关联收入与广告支出。

Markdown

Telegram 记录展示、点击和加入频道等行为。之后发生的留资、入金或成交由您的后端或跟踪系统记录。将这些事件上报至 Orbito Ads 后,就能在面板、报告和自动化规则中查看并使用各活动的转化和收入。

启用转化跟踪

在面板上的密钥卡片上,切换到收到邮件。没有它,就发送回403 INGEST_DISABLED。对于一个追踪器,请按创建Tracker URL — — 您只能收到URL(一次下)的写出,它可以张贴转换,但不能读出任何东西。

转化如何归因到广告活动

每条广告都与您控制的标识符连接到某个地方:

  • 机器人或微型应用程序:t.me/yourbot?start=REF或?startapp=REF
  • 网站:您追踪器在链接中的点击 id 或 sub id, e.g . https://site.com/?subid=REF

当您发送一个转换时, 包括REF 和 ref 。 Orbito Ads 在内阁中找到其链接的广告活动。 如果一个内阁的几次广告活动共用同样的ref, 那么每个内阁的转换都算得上。

从服务器发送 · POST /v1/postback

示例
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" }'
示例
{ "success": true, "data": { "id": 551203, "ad_id": 90412, "account_id": 53, "event_type": "purchase", "deduped": false } }

一次多达1000起事件:{ "events": [ {…}, {…} ] }起(或一阵赤裸). 反应报告每起事件——{ "accepted": 998, "failed": 2, "results": [ … ] }起,因此一个坏事件从未下沉过批次.

从跟踪工具发送 · GET /v1/ingest/{token}

将URL跟踪器粘入您的跟踪器的后置设置, 并带有其宏 :

示例
# 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}

在您自己的文档中检查宏名称。 答案是纯文本: OK, OK (deduped), 或带有HTTP状态的错误信息( 4xx — 不重试, 5xxx — 重试 ) 。

字段

田野亦被接受为需要意义
refsubid, sub_id, clickid, click_id, cnv_id, cid是1广告链接中的标识符。最多512个字符。
invite_linkinvitelink, link是1为频道广告:所创建的独有邀请链接Orbito Ads.
eventevent_type, type, goal, cnv_status是的成为lead,conversion或purchase(字相通有signup,ftd,deposit,sale等). 未知的字被拒绝.
txidtid, transaction_id, order_id, rdtk_event_id首席 X-Idempotency-Key是的您的此事件的代号 。 发送相同的 txid 重新更新事件, 而不是重复计算 。 最多 128 个字符 。
amountpayout, sum, revenue, value无数字; 充值为负.
currencycur, cnv_currency无ISO 4217 代码,没有一个,一个金额记录为USD .
status—无您的网络状态单词( 已核准, 待定. ) , 已保存 。
event_timetimestamp, date无ISO或unix时间;保存在后90天以内.
account_idaccountId有时需要时,你的几个柜子里有同样的ref个(另409个)。
meta—无你自己的JSON天体,最高可达4个KB .

1,ref或invite_link (中文(简体) ).

限额与重试

每把钥匙每秒有20个事件,连发可达1000个——与读写预算分开. 429等Retry-After;再试总是安全的,因为txid个去重试.

GET /v1/conversions

每项运动的总数,每活动计算一次:

示例
curl -s "https://orbitoads.pro/api/v1/conversions?days=30" -H "X-API-Key: $ORBITO_API_KEY"
示例
{
  "success": true,
  "data": [
    { "account_id": 53, "ad_id": 90412, "leads": 12, "conversions": 3, "purchases": 1, "revenue": { "USD": 49.9 } }
  ]
}
参数意义
adId一场广告活动.
days过去1至365天只收到事件。
  • revenue是按货币计算——金额从不兑换.
  • ad_id是null,与多个运动共享的ref对应的事件.
  • 您发送的金额是您自己的报告。 这些金额没有计费, 也不改变您支付Orbito Ads美元的任何费用 。

API 参考

完整广告接口需要为此工作区单独配置供应商凭据。客户端请求使用自己的 Orbito API 密钥。账户订购、开通和外部账单分别处理。

POST /api/v1/postback

提交单个转化或最多 1,000 个事件。

参数位置格式必填
X-API-Keyheaderstring是
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
  }
}
请求体结构
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}

通过仅写入的网址回传追踪转化。

参数位置格式必填
tokenpathstring是
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

按原始币种列出转化量与收入。

参数位置格式必填
adIdqueryinteger—
daysqueryinteger—
X-API-Keyheaderstring是
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
      }
    }
  ]
}

实施说明

关联转化与广告

先在供应商密钥上启用接收回传。传 ref 或 invite_link、event 和稳定的 txid。标准事件为 lead、conversion、purchase。多个账户匹配时指定 account_id。

请求结果与响应字段
API含义
account_id / accountIdaccount_id 也可以写成 accountId。同一 ref 出现在多个账户时需指定账户,匹配不明确会返回 HTTP 409。

去重与币种

相同 txid 更新既有事件,批次可部分成功。收入采用 ISO 币种,缺省 USD;负值可表示退款。追踪链接只可写入,以纯文本返回 OK 或 OK (deduped)。

操作与字段

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

请求示例

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

结构字段与限制

本表依据公开的 v1 契约。参数与字段名称区分大小写。各操作的 HTTP 状态码分别表示成功、输入校验和访问检查。链接规范给出了完整的请求与响应结构。

协议参考

方法路径参数请求内容响应码
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

来源 · 数据来源

结构字段与限制 · 发送已确认的转化

字段文档取值
ref | invite_linkstring
eventlead | conversion | purchase
txidstring
amountnumber
currencyISO 4217
GET conversions · days1 … 365

来源 · 数据来源

ConversionEvent

字段字段类型
refstring
invite_linkstring
eventstring
txidstring
amountnumber
currencystring
statusstring
event_timestring | integer
account_idinteger
metaobject

来源 · 数据来源

ConversionsRow

字段字段类型
account_idinteger
ad_idinteger | null
leadsinteger
conversionsinteger
purchasesinteger
revenueobject

来源 · 数据来源

参考资料更新日期

Pro Panel
Pro Panel