Get Credit Transaction List
curl --request POST \
--url https://api.unibee.dev/merchant/credit/credit_transaction_list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountType": 123,
"count": 123,
"createTimeEnd": 123,
"createTimeStart": 123,
"currency": "<string>",
"email": "<string>",
"page": 123,
"sortField": "<string>",
"sortType": "<string>",
"transactionTypes": [
123
],
"userId": 123
}
'import requests
url = "https://api.unibee.dev/merchant/credit/credit_transaction_list"
payload = {
"accountType": 123,
"count": 123,
"createTimeEnd": 123,
"createTimeStart": 123,
"currency": "<string>",
"email": "<string>",
"page": 123,
"sortField": "<string>",
"sortType": "<string>",
"transactionTypes": [123],
"userId": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountType: 123,
count: 123,
createTimeEnd: 123,
createTimeStart: 123,
currency: '<string>',
email: '<string>',
page: 123,
sortField: '<string>',
sortType: '<string>',
transactionTypes: [123],
userId: 123
})
};
fetch('https://api.unibee.dev/merchant/credit/credit_transaction_list', 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://api.unibee.dev/merchant/credit/credit_transaction_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accountType' => 123,
'count' => 123,
'createTimeEnd' => 123,
'createTimeStart' => 123,
'currency' => '<string>',
'email' => '<string>',
'page' => 123,
'sortField' => '<string>',
'sortType' => '<string>',
'transactionTypes' => [
123
],
'userId' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.unibee.dev/merchant/credit/credit_transaction_list"
payload := strings.NewReader("{\n \"accountType\": 123,\n \"count\": 123,\n \"createTimeEnd\": 123,\n \"createTimeStart\": 123,\n \"currency\": \"<string>\",\n \"email\": \"<string>\",\n \"page\": 123,\n \"sortField\": \"<string>\",\n \"sortType\": \"<string>\",\n \"transactionTypes\": [\n 123\n ],\n \"userId\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.unibee.dev/merchant/credit/credit_transaction_list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountType\": 123,\n \"count\": 123,\n \"createTimeEnd\": 123,\n \"createTimeStart\": 123,\n \"currency\": \"<string>\",\n \"email\": \"<string>\",\n \"page\": 123,\n \"sortField\": \"<string>\",\n \"sortType\": \"<string>\",\n \"transactionTypes\": [\n 123\n ],\n \"userId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.unibee.dev/merchant/credit/credit_transaction_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountType\": 123,\n \"count\": 123,\n \"createTimeEnd\": 123,\n \"createTimeStart\": 123,\n \"currency\": \"<string>\",\n \"email\": \"<string>\",\n \"page\": 123,\n \"sortField\": \"<string>\",\n \"sortType\": \"<string>\",\n \"transactionTypes\": [\n 123\n ],\n \"userId\": 123\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"creditTransactions": [
{
"accountType": 123,
"adminMember": {
"createTime": 123,
"email": "<string>",
"firstName": "<string>",
"id": 123,
"isOwner": true,
"lastName": "<string>",
"merchantId": 123
},
"bizId": "<string>",
"by": "<string>",
"createTime": 123,
"creditAccount": {
"amount": 123,
"createTime": 123,
"currency": "<string>",
"currencyAmount": 123,
"exchangeRate": 123,
"id": 123,
"payoutEnable": 123,
"rechargeEnable": 123,
"totalDecrementAmount": 123,
"totalIncrementAmount": 123,
"type": 123,
"userId": 123
},
"creditAmountAfter": 123,
"creditAmountBefore": 123,
"currency": "<string>",
"deltaAmount": 123,
"deltaCurrencyAmount": 123,
"description": "<string>",
"exchangeRate": 123,
"id": 123,
"invoiceId": "<string>",
"merchantId": 123,
"name": "<string>",
"transactionId": "<string>",
"transactionType": 123,
"user": {
"address": "<string>",
"avatarUrl": "<string>",
"billingType": 123,
"birthday": "<string>",
"city": "<string>",
"companyName": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"createTime": 123,
"custom": "<string>",
"email": "<string>",
"externalUserId": "<string>",
"facebook": "<string>",
"firstName": "<string>",
"gatewayId": 123,
"gatewayPaymentType": "<string>",
"gender": "<string>",
"id": 123,
"isRisk": 123,
"isSpecial": 123,
"language": "<string>",
"lastLoginAt": 123,
"lastName": "<string>",
"linkedIn": "<string>",
"merchantId": 123,
"metadata": {},
"mobile": "<string>",
"otherSocialInfo": "<string>",
"paymentMethod": "<string>",
"phone": "<string>",
"recurringAmount": 123,
"registrationNumber": "<string>",
"school": "<string>",
"state": "<string>",
"status": 123,
"subscriptionId": "<string>",
"subscriptionName": "<string>",
"subscriptionStatus": 123,
"taxPercentage": 123,
"telegram": "<string>",
"tikTok": "<string>",
"timeZone": "<string>",
"type": 123,
"userName": "<string>",
"vATNumber": "<string>",
"version": 123,
"weChat": "<string>",
"whatsAPP": "<string>",
"zipCode": "<string>"
}
}
],
"total": 123
},
"merchantId": 123,
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Credit
Get Credit Transaction List
Get Credit Transaction list
POST
/
merchant
/
credit
/
credit_transaction_list
Get Credit Transaction List
curl --request POST \
--url https://api.unibee.dev/merchant/credit/credit_transaction_list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountType": 123,
"count": 123,
"createTimeEnd": 123,
"createTimeStart": 123,
"currency": "<string>",
"email": "<string>",
"page": 123,
"sortField": "<string>",
"sortType": "<string>",
"transactionTypes": [
123
],
"userId": 123
}
'import requests
url = "https://api.unibee.dev/merchant/credit/credit_transaction_list"
payload = {
"accountType": 123,
"count": 123,
"createTimeEnd": 123,
"createTimeStart": 123,
"currency": "<string>",
"email": "<string>",
"page": 123,
"sortField": "<string>",
"sortType": "<string>",
"transactionTypes": [123],
"userId": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountType: 123,
count: 123,
createTimeEnd: 123,
createTimeStart: 123,
currency: '<string>',
email: '<string>',
page: 123,
sortField: '<string>',
sortType: '<string>',
transactionTypes: [123],
userId: 123
})
};
fetch('https://api.unibee.dev/merchant/credit/credit_transaction_list', 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://api.unibee.dev/merchant/credit/credit_transaction_list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accountType' => 123,
'count' => 123,
'createTimeEnd' => 123,
'createTimeStart' => 123,
'currency' => '<string>',
'email' => '<string>',
'page' => 123,
'sortField' => '<string>',
'sortType' => '<string>',
'transactionTypes' => [
123
],
'userId' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.unibee.dev/merchant/credit/credit_transaction_list"
payload := strings.NewReader("{\n \"accountType\": 123,\n \"count\": 123,\n \"createTimeEnd\": 123,\n \"createTimeStart\": 123,\n \"currency\": \"<string>\",\n \"email\": \"<string>\",\n \"page\": 123,\n \"sortField\": \"<string>\",\n \"sortType\": \"<string>\",\n \"transactionTypes\": [\n 123\n ],\n \"userId\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.unibee.dev/merchant/credit/credit_transaction_list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountType\": 123,\n \"count\": 123,\n \"createTimeEnd\": 123,\n \"createTimeStart\": 123,\n \"currency\": \"<string>\",\n \"email\": \"<string>\",\n \"page\": 123,\n \"sortField\": \"<string>\",\n \"sortType\": \"<string>\",\n \"transactionTypes\": [\n 123\n ],\n \"userId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.unibee.dev/merchant/credit/credit_transaction_list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountType\": 123,\n \"count\": 123,\n \"createTimeEnd\": 123,\n \"createTimeStart\": 123,\n \"currency\": \"<string>\",\n \"email\": \"<string>\",\n \"page\": 123,\n \"sortField\": \"<string>\",\n \"sortType\": \"<string>\",\n \"transactionTypes\": [\n 123\n ],\n \"userId\": 123\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"creditTransactions": [
{
"accountType": 123,
"adminMember": {
"createTime": 123,
"email": "<string>",
"firstName": "<string>",
"id": 123,
"isOwner": true,
"lastName": "<string>",
"merchantId": 123
},
"bizId": "<string>",
"by": "<string>",
"createTime": 123,
"creditAccount": {
"amount": 123,
"createTime": 123,
"currency": "<string>",
"currencyAmount": 123,
"exchangeRate": 123,
"id": 123,
"payoutEnable": 123,
"rechargeEnable": 123,
"totalDecrementAmount": 123,
"totalIncrementAmount": 123,
"type": 123,
"userId": 123
},
"creditAmountAfter": 123,
"creditAmountBefore": 123,
"currency": "<string>",
"deltaAmount": 123,
"deltaCurrencyAmount": 123,
"description": "<string>",
"exchangeRate": 123,
"id": 123,
"invoiceId": "<string>",
"merchantId": 123,
"name": "<string>",
"transactionId": "<string>",
"transactionType": 123,
"user": {
"address": "<string>",
"avatarUrl": "<string>",
"billingType": 123,
"birthday": "<string>",
"city": "<string>",
"companyName": "<string>",
"countryCode": "<string>",
"countryName": "<string>",
"createTime": 123,
"custom": "<string>",
"email": "<string>",
"externalUserId": "<string>",
"facebook": "<string>",
"firstName": "<string>",
"gatewayId": 123,
"gatewayPaymentType": "<string>",
"gender": "<string>",
"id": 123,
"isRisk": 123,
"isSpecial": 123,
"language": "<string>",
"lastLoginAt": 123,
"lastName": "<string>",
"linkedIn": "<string>",
"merchantId": 123,
"metadata": {},
"mobile": "<string>",
"otherSocialInfo": "<string>",
"paymentMethod": "<string>",
"phone": "<string>",
"recurringAmount": 123,
"registrationNumber": "<string>",
"school": "<string>",
"state": "<string>",
"status": 123,
"subscriptionId": "<string>",
"subscriptionName": "<string>",
"subscriptionStatus": 123,
"taxPercentage": 123,
"telegram": "<string>",
"tikTok": "<string>",
"timeZone": "<string>",
"type": 123,
"userName": "<string>",
"vATNumber": "<string>",
"version": 123,
"weChat": "<string>",
"whatsAPP": "<string>",
"zipCode": "<string>"
}
}
],
"total": 123
},
"merchantId": 123,
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Endpoint Overview
POSThttps://api.unibee.dev/merchant/credit/credit_transaction_list
Get Credit Transaction list
Authorization
All UniBee Merchant API requests require authentication via API key.| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
Parameters
Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.Request body
| Name | Type | Required | Description |
|---|---|---|---|
accountType | integer | Yes | filter type of account, 1-main account, 2-promo credit account |
count | integer | No | Count Of Per Page |
createTimeEnd | integer | No | CreateTimeEnd,UTC timestamp,seconds |
createTimeStart | integer | No | CreateTimeStart,UTC timestamp,seconds |
currency | string | No | filter currency of account |
email | string | No | filter email of user |
page | integer | No | Page, Start 0 |
sortField | string | No | Sort Field,gmt_create|gmt_modify,Default gmt_modify |
sortType | string | No | Sort Type,asc|desc,Default desc |
transactionTypes | array | No | transaction type。1-recharge income,2-payment out,3-refund income,4-withdraw out,5-withdraw failed income, 6-admin change,7-recharge refund out |
userId | integer | No | filter id of user |
Request examples
cURL
curl -X POST "https://api.unibee.dev/merchant/credit/credit_transaction_list" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountType": 0,
"count": 0,
"createTimeEnd": 0,
"createTimeStart": 0,
"currency": "",
"email": "user@example.com",
"page": 0,
"sortField": "",
"sortType": "",
"transactionTypes": [],
"userId": 0
}'
Sandbox
curl -X POST "https://api-sandbox.unibee.top/merchant/credit/credit_transaction_list" \
-H "Authorization: Bearer YOUR_SANDBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountType": 0,
"count": 0,
"createTimeEnd": 0,
"createTimeStart": 0,
"currency": "",
"email": "user@example.com",
"page": 0,
"sortField": "",
"sortType": "",
"transactionTypes": [],
"userId": 0
}'
Response
Success responses return a JSON envelope withcode, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.creditTransactions | array | Credit Transaction List |
data.total | integer | Total |
message | string | Human-readable message |
requestId | string | Request ID for support |
Error handling
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Get Credit Transaction list
filter type of account, 1-main account, 2-promo credit account
Count Of Per Page
CreateTimeEnd,UTC timestamp,seconds
CreateTimeStart,UTC timestamp,seconds
filter currency of account
filter email of user
Page, Start 0
Sort Field,gmt_create|gmt_modify,Default gmt_modify
Sort Type,asc|desc,Default desc
transaction type。1-recharge income,2-payment out,3-refund income,4-withdraw out,5-withdraw failed income, 6-admin change,7-recharge refund out
filter id of user
⌘I

