StableOps
API 参考

支付门户发票

在 StableOps 门户内为用户账单准备支付订单,指定可接受资产并取得付款指令,由用户自己的钱包完成实际转账。门户令牌限定用户可访问的数据,不能替代商户管理密钥,也不代表已完成付款。服务端应验证用户身份并安全签发会话,最终权益以账单和订阅状态为准。

POST/v1/merchant/portal/invoices/{id}/pay

Path Parameters

id*unknown

Merchant invoice id.

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/invoices/{id}/pay" \  -H "Content-Type: application/json" \  -d '{    "accepted_assets": [      {        "chain": "ethereum",        "asset": "USDC"      }    ]  }'
{
  "invoice_id": "string",
  "payment_order_id": "string",
  "status": "open",
  "payment_order": {
    "id": "string",
    "merchant_order_id": "string",
    "amount": "string",
    "requested_amount": "string",
    "status": "created",
    "expires_at": "2019-08-24T14:15:22Z",
    "payment_instructions": [
      {
        "chain": "ethereum",
        "asset": "USDC",
        "address": "string"
      }
    ]
  }
}

这篇文档怎么样?

最后更新