> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# 新加坡支付接入

> 新加坡支付接入文档，涵盖限额、代收API、代收申请、代收查询及接口对接规范。

> [!WARNING]
>
> **阅读该接口文档前，务必先查看 [**接口说明**](https://doc.haipay.net/zh/history/V20260701/get-started/api-conventions.md)**

## **限额**

| 交易类型 | 限额 |
| :- | - |
| 代收 | 美元: 1-3000, 新加坡元: 1-3000 |

> **金额小数位：** SGD — 2位小数 | USD — 2位小数

## **代收API**

### **代收申请**

**简要描述：**

* 创建代收订单

**URL：**

新加坡元: `/sgd/collect/apply`
说明：appId需使用新加坡元对应的，用户支付成功后增加新加坡元余额

美元: `/usd/collect/apply`
说明：appId需使用美元对应的，用户支付成功后增加美元余额

港元: `/hkd/collect/apply`
说明：appId需使用港元对应的，用户支付成功后增加港元余额

**参数：**

| 参数名 | 必选 | 类型 | 说明 |
| :- | :- | :- | :- |
| appId | 是 | Long | 业务ID（后台获取，需要根据URL中的币种传递对应的业务ID） |
| orderId | 是 | String | 商户订单号(必须保证唯一性，长度不超过48) |
| name | 是 | String | 用户姓名，推荐使用真实姓名，格式：包含firstName和lastName，以空格分割的，示例：John Doe |
| phone | 是 | String | 真实手机号（格式参考 [电话号码格式](https://doc.haipay.net/zh/history/V20260701/resources/faq.md#zh_faq_phone-number-format) ） |
| email | 是 | String | 真实电子邮件 |
| amount | 是 | String | 交易金额，最多两位小数 |
| payType | 是 | String | 交易类型 |
| inBankCode | 是 | String | [支付方式](#inBankCode) |
| callBackUrl | 是 | String | 用户支付成功后跳转地址 |
| callBackFailUrl | 是 | String | 用户支付失败后跳转地址 |
| cancelUrl | 否 | String | 如果传递，支付页面会展示返回按钮，用户点击跳转至该链接 |
| notifyUrl | 否 | String | 回调地址 |
| subject | 否 | String | 支付备注 |
| body | 否 | String | 备注详情 |
| partnerUserId | 是 | String | 用户唯一标识（如用户ID userId），用于风控系统，必须真实有效，否则会影响交易。 格式要求：数字、大小写字母或常用符号-\~!@#\$%&\*()\_。 |
| sign | 是 | String | 签名 |

返回data参数说明

| 参数名 | 类型 | 说明 |
| :- | :- | :- |
| orderId | String | 商户订单号(必须保证唯一性) |
| orderNo | String | 平台订单号 |
| payUrl | String | 支付链接 |
| sign | String | 签名 |

### **代收查询**

**简要描述：**

* 查询代收订单

**URL：**

新加坡元: `/sgd/collect/query`

美元: `/usd/collect/query`

港币: `/hkd/collect/query`

**参数：**

| 参数名 | 必选 | 类型 | 说明 |
| :- | :- | :- | :- |
| appId | 是 | Long | 业务ID（后台获取，需要根据URL中的币种传递对应的业务ID） |
| orderId | 是 | String | 商户订单号 |
| orderNo | 否 | String | 平台订单号（响应快） |
| sign | 是 | String | 签名 |

返回data参数说明

| 参数名 | 类型 | 说明 |
| :- | :- | :- |
| orderId | String | 商户订单号(必须保证唯一性) |
| orderNo | String | 平台订单号 |
| amount | String | 交易金额 |
| actualAmount | String | 收到金额 |
| fee | String | 手续费 |
| status | Integer | 状态(0未开始，1支付中，2成功（终态），3失败（终态）, -1异常待确认) |
| payTime | String | 支付成功时间（当status=2时有值）(币种时间), 格式: yyyy-MM-dd HH:mm:ss |
| errorMsg | String | 支付失败原因（当status=3时有值） |
| sign | String | 签名 |

### **支付方式**

| 币种 | 支付类型(payType) | 支付编码(inBankCode) | 限额 | 状态 | 说明 |
| :- | :- | :- | :- | :- | :- |
| SGD | QR | PAYNOW\_SGD | 1-3000 | 可用 | PayNow扫码支付 |
| USD | QR | PAYNOW\_USD | 1-3000 | 可用 | PayNow扫码支付 |

## 相关主题

* [公共接口](https://doc.haipay.net/zh/history/V20260701/api/version2/CommonApi.md)
* [HaiPay 接口说明与公共规则](https://doc.haipay.net/zh/history/V20260701/get-started/api-conventions.md)
* [泰国支付接口](https://doc.haipay.net/zh/history/V20260701/payments/local/thailand.md)
* [新加坡 — 代收申请 (POST /sgd/collect/apply)](https://doc.haipay.net/zh/history/V20260701/api-reference/sgd/collect-apply.md)
* [新加坡 — 代收查询 (POST /sgd/collect/query)](https://doc.haipay.net/zh/history/V20260701/api-reference/sgd/api/collectQuery.md)
* [处理异步通知并验证签名](https://doc.haipay.net/zh/operations/callback.md)
* [端到端测试：修改订单状态与发送通知](https://doc.haipay.net/zh/history/V20260701/testing/end-to-end.md)
* [查询代收支付类型与编码 (payType)](https://doc.haipay.net/zh/history/V20260701/resources/cashin-code-list.md)
* [查询代付账户类型与银行编码](https://doc.haipay.net/zh/history/V20260701/resources/cashout-code-list.md)
* [HaiPay 本地支付产品页](https://www.haipay.net/products/local-payment)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.