> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/topup-api-qing-qiu.md). Agents can also search and read this documentation through its [MCP server](https://docs.coda.co/~gitbook/mcp).

# Top-Up API 请求

该消息用于通知合作伙伴，Codashop 的一笔购买已成功完成。合作伙伴应据此将指定的物品成功充值至用户的游戏账户。

Codashop 期望在 5 秒内收到响应。该过程应具备幂等性，即对两次相同调用的响应应保持一致，避免触发多次充值。

需要注意的是，充值请求中使用的 ID、txnId 和 orderId 可能与对应购买验证请求中的不同。充值应仅基于 SKU 来完成。

<figure><img src="https://content.gitbook.com/content/rtIMNO1E8C0Uq9wMQU8c/blobs/sIGzWbxdneXZeapQMLqZ/order%20complete.png" alt=""><figcaption><p>购买成功后的订单页面</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/topup-api-qing-qiu.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
