> ## 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.

# 美国

> [!WARNING]
>
> **阅读该接口文档前，务必先查看 [**接口说明**](https://doc.haipay.net/docs/zh/V20260623/guide/api_description_guide.md)**

## **限额**

| 交易类型 | 限额(单位:USD) |
| :- | - |
| 代付 | 1-800 |

## **代付API**

### **代付申请**

**URL：**

美元: `/usd/pay/apply`

**参数：**

| 参数名 | 必选 | 类型 | 说明 |
| :- | :- | :- | :- |
| appId | 是 | Long | 业务ID（后台获取，需要根据URL中的币种传递对应的业务ID） |
| orderId | 是 | String | 商户订单号(必须保证唯一性，长度不超过48) |
| name | 是 | String | 收款人姓名，推荐使用真实姓名，必须英文，不带特殊字符，以空格分割的，至少包含firstName和lastName，示例：John Doe |
| phone | 是 | String | 真实手机号（格式参考 [电话号码格式](https://doc.haipay.net/docs/zh/V20260623/guide/frequently_asked_question.md#zh_faq_phone-number-format) ） |
| email | 是 | String | 真实电子邮件 |
| notifyUrl | 否 | String | 回调地址 |
| amount | 是 | String | 交易金额(单位：美元，精确到小数点后两位；禁止添加标点符号，例如：”,”） |
| accountType | 是 | String | 账户类型 |
| bankCode | 是 | String | [支付方式](#inBankCode) |
| subject | 是 | String | 支付备注 |
| accountNo | 是 | String | 账号，PayPal的邮箱就是账号 |
| body | 否 | String | 备注详情，ECASHAPP方式必填 |
| partnerUserId | 是 | String | 用户唯一标识（如用户ID userId），用于风控系统，必须真实有效，否则会影响交易。 格式要求：数字、大小写字母或常用符号-\~!@#\$%&\*()\_。 |
| sign | 是 | String | 签名 |

#####

request

```json theme={null}
{
    "appId": 1054,
    "orderId": "M233323000059",
    "amount": "200.00",
    "phone": "02012345678",
    "email": "james.anderson@gmail.com",
    "name": "James Anderson",
    "accountType": "EWALLET",
    "bankCode": "PayPal",
    "accountNo": "123465",
    "partnerUserId": "149597870",
    "sign": "af0gAHkUOyYH***"
}
```

response

```json theme={null}
{
    "status": "1",
    "error": "00000000",
    "msg": "",
    "data": {
        "orderId": "M233323000059",
        "orderNo": "6023071013539074",
        "payUrl": "",
        "sign": "YEoA8Y2JzQFG***"
    }
}
```

返回data参数说明

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

### **代付查询**

**简要描述：**

* 创建代付订单
* 同步返回orderNo可以直接查询
* 其他支付方式异步通知后，通过orderNo查询二次确认状态

**URL：**

美元: `/usd/pay/query`

**参数：**

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

request

```json theme={null}
{
    "appId": 1054,
    "orderId": "M22222000028",
    "sign": "EmyJGm3ELzG4FsOd0Krs9ncbSjo4oTGuXWML+7djYla3+VAwd9wS17z38p/7U2ZAjroO04XrE7YXcB1o76Dtyipj3h3bJzs7FYma1QNkMUdt9hh7m8U6hMsMQX7vIWHtXNwz4pbTSC75+kQWXaCew7KoE6LXECdJU8AISgNgeki2TK9R0pCfshr0Z2SZBPeuT6OvIH5LdmqgdZhuqnffGU2qnXk4KMkO848e6/WALLBR+LE1wyKHfPnYVcuKSMVYxkvKyyIL5JIPEgW0o5bh4RCbaUn3NZtyYwrU1uQ3ZDFRThm9j6XAQP+LBlmq3nOePqBtp/VDVarRaV+7FbQg3A=="
}
```

response

```json theme={null}
{
    "status": "1",
    "error": "00000000",
    "msg": "",
    "data": {
        "orderId": "M22222000028",
        "orderNo": "6023042811314347",
        "amount": "200.00",
        "actualAmount": "0.00",
        "fee": "0.00",
        "status": 1,
        "sign": "fP433ygWVDLVGxYkVnIJj7riGq0U3vyVX+MbBAImxfGLZkZcEAHVEoVYuULZSmXAAXKRSyd67WlDNm+24pougM54ofAoH4HMtCL2tfCoBReFyz3z02AGKkrKE2xWhSpWoqfQoBvzwuN5iGMMu0s9Q1YvqiwJ8WDVIENnmiIyD8qDJN7caHTW2US14/faG+69AvnuIgJ/nu7/jogOlgEYdZdVYU7gcRDE+d47KjlFGswQkJ/h/uzV7cWtUqrtOO7ZnZ3/z33Xx8awokX36QoYcPSWAU0h+Ij9O9402HNhm1eTbYcLU0uI/z8xCAtyAI/tTyiFijpiNlxUKQj+zKsILw=="
    }
}
```

返回data参数说明

| 参数名 | 类型 | 说明 |
| :- | :- | :- |
| orderId | String | 商户订单号(必须保证唯一性) |
| orderNo | String | 平台订单号 |
| amount | 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 | 签名 |

### **支付方式**&#x20;

| 币种 | 支付类型(accountType) | 支付编码(bankCode) | 限额 | 状态 | 说明 |
| :- | :- | :- | :- | :- | :- |
| USD | EWALLET | PayPal | 1-800 | 可用 | PayPal钱包 |
| USD | EWALLET | VENMO | 1-800 | 可用 | Venmo钱包 |
| USD | EWALLET | ECASHAPP | 1-800 | 维护 | CashApp钱包 |

### **说明**

1. **失败原因`<银行退单>` 是什么意思？**

   用户账号被PayPal标记为风险用户，无法收款，需更换账户

2. **已在出款中的订单是否可以追回？**

   不可以。

3. **已打款，但用户未收到款，如何操作？**

   需要用户在PayPal邮箱看下有没有收到邮件，领取下，若一直显示在转账中的话，等三十天后无人领取，会自动退还

   **下面是PayPal邮箱领取指引图**

   ![PayPal 邮箱收款通知与领取指引示意图](https://mintcdn.com/haipay-3385f6e8/qslC2gsg_E8Updwu/images/common/guide/paypal-email-claim.jpg?fit=max\&auto=format\&n=qslC2gsg_E8Updwu\&q=85\&s=f79ea8a97926467a44670be0071614b0)

## 相关主题

* [公共接口](https://doc.haipay.net/docs/zh/V20260623/api/version2/CommonApi.md)
* [HaiPay 接口说明与公共规则](https://doc.haipay.net/docs/zh/V20260623/guide/api_description_guide.md)
* [巴西支付接口](https://doc.haipay.net/docs/zh/V20260701/api/version2/Brazil.md)


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