星光号卡api接口开发文档


订单回调

<p>星光对于合作方的订单发生变动时,会将订单变动信息以POST方式发送到下游接口。</p> <p>合作方接收到我方反馈的信息后需立即返回success,如果10s内未接收到合作方反馈,星光会将此条消息放入延迟队列,10分钟后重新推送,如果10分钟后重新推送仍未获得响应,则此订单不再主动回调。</p> <p>为避免消息伪造等情况,我方下发信息中会携带键名为:ApiKey值为合作方在星光密钥MD5加密后大写形式,接收方可进行比对后选择接收。</p> <h2>合作方回调地址配置:</h2> <p>在提交订单时,将回调地址以参数名为callbackurl追加到订单信息中发送给星光即可。</p> <h3><strong>基本信息</strong></h3> <ul> <li><strong>接口状态:</strong>开发中</li> <li><strong>接口URL:</strong>POST合作方提交的回调地址callbackurl</li> <li><strong>Content-Type:</strong>application/json</li> <li><strong>认证方式:</strong>无需认证</li> </ul> <h3>环境URL</h3> <p>:</p> <h3>请求参数</h3> <h4>Body 请求参数</h4> <p>复制</p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;order_id&amp;quot;: &amp;quot;Hm2024031716490406060&amp;quot;, &amp;quot;api_xid&amp;quot;: &amp;quot;ZEYI2024031716490882268&amp;quot;, &amp;quot;order_status&amp;quot;: &amp;quot;待发货&amp;quot;, &amp;quot;order_Express&amp;quot;: &amp;quot;京东配送 11111qweqwewq&amp;quot;, &amp;quot;plan_mobile&amp;quot;: &amp;quot;1888811111&amp;quot;, &amp;quot;api_reason&amp;quot;: &amp;quot;2024-03-17开卡失败:123123122024-03-17开卡失败:1231231231312 [2024-03-17 17:11:32无法结算:] [2024-03-17 17:22:23 v备注测试]&amp;quot;, &amp;quot;is_active&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;is_recharge&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;recharge_amount&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;callbackurl&amp;quot;: &amp;quot;http://xg.tkcdk.cn/order/api/callback&amp;quot;, &amp;quot;sr_time&amp;quot;: &amp;quot;2024-03-17 20:15:27&amp;quot;, &amp;quot;ApiKey&amp;quot;: &amp;quot;9CDF41CA1672925B117D72CF0813E3BB&amp;quot; }</code></pre> <h3>响应示例</h3> <p>暂无响应示例数据</p>

页面列表

ITEM_HTML