服务端 API
这些接口使用 Authorization: Bearer sk_...。私钥绝不能放进 App 或网页;这些接口也不发送 CORS 头。
GET /v1/customers/:app_user_id
Section titled “GET /v1/customers/:app_user_id”与客户端调用相同,但信息更详细。订阅额外带有 latest_transaction_id、auto_renew_product_id、grace_period_expires_at、billing_retry、expiration_intent、price_increase_status 和 revoked_at;客户还带一个 transactions 数组,包含每一笔交易及商店的原始字段(raw)。
事件乱序到达时,或需要随时检查权限时,以它为准。
GET /v1/events
Section titled “GET /v1/events”按创建顺序返回 App 的事件。见投递与重试。
| 参数 | 说明 |
|---|---|
after |
上一次返回的 next_cursor;从 0 开始 |
limit |
1 到 500,默认 100 |
响应:{events: [...], next_cursor, has_more}。游标无效返回 400 invalid_cursor。
GET /v1/customers/:app_user_id/ad-rewards
Section titled “GET /v1/customers/:app_user_id/ad-rewards”也接受私钥。见客户端 API。