Skip to content

GET /api/v1/payment/methods

GET/api/v1/payment/methods

可用支付方式状态

publicoperationId: paymentMethods

请求示例

cURL
curl -X GET 'http://localhost:8080/api/v1/payment/methods' \
  -H 'Accept: application/json'
JavaScript
const res = await fetch('http://localhost:8080/api/v1/payment/methods', {
  method: 'GET',
  headers: {
    'Accept': 'application/json'
  },
});
const data = await res.json();
Python
import requests

res = requests.get(
    'http://localhost:8080/api/v1/payment/methods',
    headers={'Accept': 'application/json'}
)
print(res.json())

响应

200成功

application/json

{
  "type": "object",
  "description": "通用响应包装",
  "properties": {
    "code": {
      "type": "string",
      "example": "ok"
    },
    "message": {
      "type": "string",
      "example": "ok"
    },
    "data": {}
  }
}

在线调试

在线调试
凭证仅保存在当前页面内存中
自定义请求 Header