> 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/codapay/zhi-fu-ye-mian-api-ji-cheng/cha-xun-ding-dan-zhuang-tai-jie-kou.md).

# 查询订单状态接口

{% hint style="danger" %} <mark style="color:red;">**我们强烈建议商家使用此接口做双重确认 (回调通知 + 订单状态结果成功), 以确保订单成功后才**</mark>
{% endhint %}

{% hint style="warning" %}
具体查询订单状态接口参数，请以[英文版](https://coda-payments.gitbook.io/coda-private-technical-documentation/codapay/hosted-payment-page-integration/check-a-transaction-status)为准
{% endhint %}

## 响应代码

**resultCode = 0** 表示交易成功\
**resultCode = 431** 或 **216** 表示订单正在支付中，请稍后查询或等待回调

使用新的参数 "needStatusFinal"： "true " 来检查交易的最终状态

{% hint style="danger" %} <mark style="color:red;">**不支持显示美元价格**</mark>

InquiryPaymentResult总价格参数仅限当地货币
{% endhint %}


---

# 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/codapay/zhi-fu-ye-mian-api-ji-cheng/cha-xun-ding-dan-zhuang-tai-jie-kou.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.
