Skip to main content
POST
/
api
/
v1
/
api
/
user
/
getUserDailyStatistics
获取商户每日统计
curl --request POST \
  --url https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics \
  --header 'Content-Type: <content-type>' \
  --header 'X-API-KEY: <x-api-key>' \
  --data 'data=QqXI+lzQny4+QfWD+JAFcl1aq65Nj1kbfbQXmtjRO...'
import requests

url = "https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics"

payload = { "data": "QqXI+lzQny4+QfWD+JAFcl1aq65Nj1kbfbQXmtjRO..." }
headers = {
"Content-Type": "<content-type>",
"X-API-KEY": "<x-api-key>"
}

response = requests.post(url, data=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', 'X-API-KEY': '<x-api-key>'},
body: new URLSearchParams({data: 'QqXI+lzQny4+QfWD+JAFcl1aq65Nj1kbfbQXmtjRO...'})
};

fetch('https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "data=QqXI%2BlzQny4%2BQfWD%2BJAFcl1aq65Nj1kbfbQXmtjRO...",
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"X-API-KEY: <x-api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics"

payload := strings.NewReader("data=QqXI%2BlzQny4%2BQfWD%2BJAFcl1aq65Nj1kbfbQXmtjRO...")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-API-KEY", "<x-api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics")
.header("Content-Type", "<content-type>")
.header("X-API-KEY", "<x-api-key>")
.body("data=QqXI%2BlzQny4%2BQfWD%2BJAFcl1aq65Nj1kbfbQXmtjRO...")
.asString();
require 'uri'
require 'net/http'

url = URI("https://waas2-out-api.powersafe-rel.cc/api/v1/api/user/getUserDailyStatistics")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-API-KEY"] = '<x-api-key>'
request.body = "data=QqXI%2BlzQny4%2BQfWD%2BJAFcl1aq65Nj1kbfbQXmtjRO..."

response = http.request(request)
puts response.read_body
{
  "code": 0,
  "message": "",
  "data": "crstZOC2AC3L/WViSSe8MJNEdwt9DiL1iq2nZX3My7XzfAWaOZhFf0Uy1e3tMkhWnNxOUgItczCOQwo2UTJ...."
}

API Description

This endpoint provides merchants with merchant statistics for a specified date, covering key metrics such as deposits, withdrawals, and wallet balances.

Headers

Content-Type
string
required

必须设置为 application/x-www-form-urlencoded

X-API-KEY
string
required

平台分配的商户身份凭证

Example:

"53af2797-3eca-4412-b0cc-15273afe2d3e"

Body

application/x-www-form-urlencoded
data
string
required

Base64编码的RSA加密数据,由以下原始参数加密生成:

jobDate (Date): 统计日期。

userId (int): 商户在 WaaS 系统中的ID。

Pattern: ^[A-Za-z0-9+/]+={0,2}$
Example:

"QqXI+lzQny4+QfWD+JAFcl1aq65Nj1kbfbQXmtjRO..."

Response

成功响应

code
integer
required

业务状态码(0 = 成功),其他值均表示失败。

Example:

0

message
string
required

正常情况下返回为空,当请求失败时则会返回错误信息。

Example:

""

data
string
required

Base64编码的RSA加密数据,由以下原始参数加密生成:

jobDay (string): 数据统计的日期(例如:2023-10-01)。

totalDepositAmount (number): 当日用户充值总金额。

totalDepositCount (integer): 当日充值总笔数(例如:100笔)

totalDepositUserCount (integer): 当日进行充值的用户数(例如:50个用户)。

totalWithdrawAmount (number): 当日用户提现总金额。

totalWithdrawCount (integer): 当日提现总笔数(例如:80笔)。

totalWithdrawUserCount (integer): 当日进行提现的用户数(例如:40个用户)。

pendingCollectionAmount (number): 系统中待归集的总金额。

collectionCount (integer): 当日完成的归集操作笔数(例如:10笔)。

pendingCollectionAddressCount (integer): 当前待归集的地址数量(例如:5个地址)。

coldWalletBalance (number): 冷钱包的余额。

hotWalletBalance (number): 热钱包的余额。

additionalTransferHotWallet (number): 当日热钱包额外转入的金额。

Example:

"G+RlQN2lJ4qQtiXJC7Y6rgHm5UI7TqM1fhPQ8CEf2C4e3jHu4yoK6pUkGIv+6FNyY/yyN30N7EaBA==...."