> 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/gong-zuo-liu-cheng-shuo-ming.md).

# 工作流程说明

**同步用户数据**

当用户在 Codashop 输入用户 ID 或登录发起购买时，Coda 会通过 [<mark style="color:blue;">UserSync API</mark>](/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/usersync-api-qing-qiu.md) 请求同步用户信息。此操作允许我们的合作伙伴根据用户数据进行个性化推荐与优化用户体验，从而提高转化率。更多详情，请参阅《个性化销售指南》。

**验证购买**\
当用户在 Codashop 上选择特定 SKU 并输入支付详情时，平台会通过[<mark style="color:blue;">Validation API 请求</mark>](/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/validation-api-qing-qiu.md)向合作伙伴发送包含用户详情、SKU ID、支付渠道细节等的完整数据包。合作伙伴确认请求后，Codashop 授权用户继续完成支付。

**充值处理**

支付成功完成后，Coda 会向合作伙伴的接口发送 [Top-Up API 请求](/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/topup-api-qing-qiu.md)。此关键步骤用于确保所购商品能迅速添加至用户账户中。

如需了解 Codashop 上此购买流程的视觉呈现，请参考下方的序列图，它详细描绘了流程的每一步。

<figure><img src="/files/nsrWdtefwZ5EwZTfKzdk" alt=""><figcaption></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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/gong-zuo-liu-cheng-shuo-ming.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
