- 接口路径:
POST /v1/transactions - 鉴权方式:
Bearer <api_key> - 幂等机制:通过
Idempotency-Key请求头支持
{
"user_id": 101,
"amount": 99.95,
"currency": "USD",
"status": "pending"
}{
"transaction_id": "txn_8f7b2c",
"user_id": 101,
"amount": 99.95,
"currency": "USD",
"status": "pending",
"created_at": "2026-09-02T12:00:00Z"
}{
"error": {
"code": "INVALID_PARAM",
"message": "amount must be greater than 0",
"field": "amount"
}
}