StableOps
API 参考

创建商户门户会话

为商户用户创建 StableOps 门户会话,将限定该用户范围的令牌用于查询其订阅与账单,并引导用户发起钱包付款。门户令牌限定用户可访问的数据,不能替代商户管理密钥,也不代表已完成付款。服务端应验证用户身份并安全签发会话,最终权益以账单和订阅状态为准。

POST/v1/merchant/portal-sessions

Authorization

bearerAuth
AuthorizationBearer <token>

Paste your API key from the dashboard.

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/v1/merchant/portal-sessions" \  -H "Content-Type: application/json" \  -d '{    "merchant_user_id": "string"  }'
{
  "id": "string",
  "portal_token": "string",
  "expires_at": "2019-08-24T14:15:22Z"
}

这篇文档怎么样?

最后更新