LinkexLinkex Docs
API ReferenceGeneratedAlipay plus

Create Alipay+ payment

POST
/api/user/swiftpass/pay

Creates a pending top-up order and returns {payment_url, order_id}. Redirect the user to payment_url (hosted Alipay+ checkout). Orders expire after 10 minutes. Currency is USD.

AuthorizationBearer <token>

Linkex API key (sk-...), including agent keys. Session cookie auth is also accepted on /api/user/* routes.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/user/swiftpass/pay" \  -H "Content-Type: application/json" \  -d '{    "amount": 0  }'
{  "success": true,  "message": "string",  "data": null}