Create
需求描述
新增付款資料
以 product_id 產生 transaction_id 並存入資料庫
以下是資料型別限制:
tx_id 使用正則表達式 '^0x[0-9a-fA-F]{64}$' 驗證
Method
POST
Endpoint
/api/transaction/payment/{product_id}/
Request Header
{
"Authorization": "Bearer {token}"
}
Request Body
{
"tx_id": "string",
}
Response
新增成功
- HTTP Status Code: 200
{
"_id": "shortuuid",
"product_id": "string",
"create_time": "timestamp",
}