---
title: "创建 Airwallex 支付意图"
method: POST
path: "/api/airwallex"
tags: ["Airwallex"]
---

# 创建 Airwallex 支付意图

`POST /api/airwallex`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/airwallex`
- Auth: HTTP bearer

创建支付意图并返回 client_secret，用于前端发起支付

## Request body

- object
  - `amount` number, required: 支付金额（单位：元/主币种）
  - `currency` string, required: 币种（如 USD, CNY）
  - `merchant_order_id` string, required: 商户订单号

## Response `200`

创建成功

- object
  - `id` string
  - `client_secret` string
  - `status` string

## Other responses

- `400`: 参数错误
- `500`: 服务端错误

---

[API](https://skmtc.dev/kolect/apis/kolect-api.md) · [All operations](https://skmtc.dev/kolect/apis/kolect-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolect/apis/kolect-api/revisions/fe54528e8f54?raw)
