Query wallet transactions
curl --request POST \
--url https://us.api.flexprice.io/v1/wallets/transactions/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"created_by": "<string>",
"credits_available_gt": 123,
"end_time": "2023-11-07T05:31:56Z",
"expand": "<string>",
"expiry_date_after": "<string>",
"expiry_date_before": "<string>",
"filters": [
{
"field": "<string>",
"value": {
"array": [
"<string>"
],
"boolean": true,
"date": "<string>",
"number": 123,
"string": "<string>"
}
}
],
"id": "<string>",
"limit": 500,
"offset": 1,
"priority": 123,
"reference_id": "<string>",
"reference_type": "<string>",
"sort": [
{
"field": "<string>"
}
],
"start_time": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://us.api.flexprice.io/v1/wallets/transactions/search"
payload = {
"created_by": "<string>",
"credits_available_gt": 123,
"end_time": "2023-11-07T05:31:56Z",
"expand": "<string>",
"expiry_date_after": "<string>",
"expiry_date_before": "<string>",
"filters": [
{
"field": "<string>",
"value": {
"array": ["<string>"],
"boolean": True,
"date": "<string>",
"number": 123,
"string": "<string>"
}
}
],
"id": "<string>",
"limit": 500,
"offset": 1,
"priority": 123,
"reference_id": "<string>",
"reference_type": "<string>",
"sort": [{ "field": "<string>" }],
"start_time": "2023-11-07T05:31:56Z"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
created_by: '<string>',
credits_available_gt: 123,
end_time: '2023-11-07T05:31:56Z',
expand: '<string>',
expiry_date_after: '<string>',
expiry_date_before: '<string>',
filters: [
{
field: '<string>',
value: {
array: ['<string>'],
boolean: true,
date: '<string>',
number: 123,
string: '<string>'
}
}
],
id: '<string>',
limit: 500,
offset: 1,
priority: 123,
reference_id: '<string>',
reference_type: '<string>',
sort: [{field: '<string>'}],
start_time: '2023-11-07T05:31:56Z'
})
};
fetch('https://us.api.flexprice.io/v1/wallets/transactions/search', 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://us.api.flexprice.io/v1/wallets/transactions/search",
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([
'created_by' => '<string>',
'credits_available_gt' => 123,
'end_time' => '2023-11-07T05:31:56Z',
'expand' => '<string>',
'expiry_date_after' => '<string>',
'expiry_date_before' => '<string>',
'filters' => [
[
'field' => '<string>',
'value' => [
'array' => [
'<string>'
],
'boolean' => true,
'date' => '<string>',
'number' => 123,
'string' => '<string>'
]
]
],
'id' => '<string>',
'limit' => 500,
'offset' => 1,
'priority' => 123,
'reference_id' => '<string>',
'reference_type' => '<string>',
'sort' => [
[
'field' => '<string>'
]
],
'start_time' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://us.api.flexprice.io/v1/wallets/transactions/search"
payload := strings.NewReader("{\n \"created_by\": \"<string>\",\n \"credits_available_gt\": 123,\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"expand\": \"<string>\",\n \"expiry_date_after\": \"<string>\",\n \"expiry_date_before\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": {\n \"array\": [\n \"<string>\"\n ],\n \"boolean\": true,\n \"date\": \"<string>\",\n \"number\": 123,\n \"string\": \"<string>\"\n }\n }\n ],\n \"id\": \"<string>\",\n \"limit\": 500,\n \"offset\": 1,\n \"priority\": 123,\n \"reference_id\": \"<string>\",\n \"reference_type\": \"<string>\",\n \"sort\": [\n {\n \"field\": \"<string>\"\n }\n ],\n \"start_time\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://us.api.flexprice.io/v1/wallets/transactions/search")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"created_by\": \"<string>\",\n \"credits_available_gt\": 123,\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"expand\": \"<string>\",\n \"expiry_date_after\": \"<string>\",\n \"expiry_date_before\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": {\n \"array\": [\n \"<string>\"\n ],\n \"boolean\": true,\n \"date\": \"<string>\",\n \"number\": 123,\n \"string\": \"<string>\"\n }\n }\n ],\n \"id\": \"<string>\",\n \"limit\": 500,\n \"offset\": 1,\n \"priority\": 123,\n \"reference_id\": \"<string>\",\n \"reference_type\": \"<string>\",\n \"sort\": [\n {\n \"field\": \"<string>\"\n }\n ],\n \"start_time\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://us.api.flexprice.io/v1/wallets/transactions/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"created_by\": \"<string>\",\n \"credits_available_gt\": 123,\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"expand\": \"<string>\",\n \"expiry_date_after\": \"<string>\",\n \"expiry_date_before\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": {\n \"array\": [\n \"<string>\"\n ],\n \"boolean\": true,\n \"date\": \"<string>\",\n \"number\": 123,\n \"string\": \"<string>\"\n }\n }\n ],\n \"id\": \"<string>\",\n \"limit\": 500,\n \"offset\": 1,\n \"priority\": 123,\n \"reference_id\": \"<string>\",\n \"reference_type\": \"<string>\",\n \"sort\": [\n {\n \"field\": \"<string>\"\n }\n ],\n \"start_time\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"amount": "<string>",
"conversion_rate": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"created_by_user": {
"email": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"roles": [
"<string>"
],
"tenant": {
"billing_details": {
"address": {
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>"
},
"email": "<string>",
"help_email": "<string>",
"phone": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
},
"credit_amount": "<string>",
"credit_balance_after": "<string>",
"credit_balance_before": "<string>",
"credits_available": "<string>",
"currency": "<string>",
"customer": {
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>",
"contact": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"email": "<string>",
"environment_id": "<string>",
"external_id": "<string>",
"id": "<string>",
"integrations": [
{
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"entity_id": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"provider_entity_id": "<string>",
"provider_type": "<string>",
"tenant_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
}
],
"metadata": {},
"name": "<string>",
"tenant_id": "<string>",
"timezone": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
},
"customer_id": "<string>",
"description": "<string>",
"environment_id": "<string>",
"expiry_date": "2023-11-07T05:31:56Z",
"id": "<string>",
"idempotency_key": "<string>",
"metadata": {},
"parent_transaction_id": "<string>",
"priority": 123,
"reference_id": "<string>",
"tenant_id": "<string>",
"topup_conversion_rate": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"wallet": {
"alert_settings": {
"alert_enabled": true,
"critical": {
"threshold": "<string>"
},
"info": {
"threshold": "<string>"
},
"warning": {
"threshold": "<string>"
}
},
"auto_topup": {
"amount": 123,
"enabled": true,
"invoicing": true,
"threshold": 123
},
"balance": "<string>",
"config": {
"allowed_price_types": []
},
"conversion_rate": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"credit_balance": "<string>",
"credits_available_breakdown": {
"free": "<string>",
"purchased": "<string>"
},
"currency": "<string>",
"customer_id": "<string>",
"description": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"real_time_balance": "<string>",
"real_time_credit_balance": "<string>",
"tenant_id": "<string>",
"topup_conversion_rate": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
},
"wallet_id": "<string>"
}
],
"pagination": {
"limit": 123,
"offset": 123,
"total": 123
}
}{
"http_status_code": 123,
"message": "<string>"
}{
"http_status_code": 123,
"message": "<string>"
}Wallets
Query wallet transactions
Use when searching or reporting on wallet transactions (e.g. cross-wallet history or reconciliation). Returns a paginated list; supports filtering by wallet, customer, type, date range.
POST
/
wallets
/
transactions
/
search
Query wallet transactions
curl --request POST \
--url https://us.api.flexprice.io/v1/wallets/transactions/search \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"created_by": "<string>",
"credits_available_gt": 123,
"end_time": "2023-11-07T05:31:56Z",
"expand": "<string>",
"expiry_date_after": "<string>",
"expiry_date_before": "<string>",
"filters": [
{
"field": "<string>",
"value": {
"array": [
"<string>"
],
"boolean": true,
"date": "<string>",
"number": 123,
"string": "<string>"
}
}
],
"id": "<string>",
"limit": 500,
"offset": 1,
"priority": 123,
"reference_id": "<string>",
"reference_type": "<string>",
"sort": [
{
"field": "<string>"
}
],
"start_time": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://us.api.flexprice.io/v1/wallets/transactions/search"
payload = {
"created_by": "<string>",
"credits_available_gt": 123,
"end_time": "2023-11-07T05:31:56Z",
"expand": "<string>",
"expiry_date_after": "<string>",
"expiry_date_before": "<string>",
"filters": [
{
"field": "<string>",
"value": {
"array": ["<string>"],
"boolean": True,
"date": "<string>",
"number": 123,
"string": "<string>"
}
}
],
"id": "<string>",
"limit": 500,
"offset": 1,
"priority": 123,
"reference_id": "<string>",
"reference_type": "<string>",
"sort": [{ "field": "<string>" }],
"start_time": "2023-11-07T05:31:56Z"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
created_by: '<string>',
credits_available_gt: 123,
end_time: '2023-11-07T05:31:56Z',
expand: '<string>',
expiry_date_after: '<string>',
expiry_date_before: '<string>',
filters: [
{
field: '<string>',
value: {
array: ['<string>'],
boolean: true,
date: '<string>',
number: 123,
string: '<string>'
}
}
],
id: '<string>',
limit: 500,
offset: 1,
priority: 123,
reference_id: '<string>',
reference_type: '<string>',
sort: [{field: '<string>'}],
start_time: '2023-11-07T05:31:56Z'
})
};
fetch('https://us.api.flexprice.io/v1/wallets/transactions/search', 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://us.api.flexprice.io/v1/wallets/transactions/search",
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([
'created_by' => '<string>',
'credits_available_gt' => 123,
'end_time' => '2023-11-07T05:31:56Z',
'expand' => '<string>',
'expiry_date_after' => '<string>',
'expiry_date_before' => '<string>',
'filters' => [
[
'field' => '<string>',
'value' => [
'array' => [
'<string>'
],
'boolean' => true,
'date' => '<string>',
'number' => 123,
'string' => '<string>'
]
]
],
'id' => '<string>',
'limit' => 500,
'offset' => 1,
'priority' => 123,
'reference_id' => '<string>',
'reference_type' => '<string>',
'sort' => [
[
'field' => '<string>'
]
],
'start_time' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://us.api.flexprice.io/v1/wallets/transactions/search"
payload := strings.NewReader("{\n \"created_by\": \"<string>\",\n \"credits_available_gt\": 123,\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"expand\": \"<string>\",\n \"expiry_date_after\": \"<string>\",\n \"expiry_date_before\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": {\n \"array\": [\n \"<string>\"\n ],\n \"boolean\": true,\n \"date\": \"<string>\",\n \"number\": 123,\n \"string\": \"<string>\"\n }\n }\n ],\n \"id\": \"<string>\",\n \"limit\": 500,\n \"offset\": 1,\n \"priority\": 123,\n \"reference_id\": \"<string>\",\n \"reference_type\": \"<string>\",\n \"sort\": [\n {\n \"field\": \"<string>\"\n }\n ],\n \"start_time\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://us.api.flexprice.io/v1/wallets/transactions/search")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"created_by\": \"<string>\",\n \"credits_available_gt\": 123,\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"expand\": \"<string>\",\n \"expiry_date_after\": \"<string>\",\n \"expiry_date_before\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": {\n \"array\": [\n \"<string>\"\n ],\n \"boolean\": true,\n \"date\": \"<string>\",\n \"number\": 123,\n \"string\": \"<string>\"\n }\n }\n ],\n \"id\": \"<string>\",\n \"limit\": 500,\n \"offset\": 1,\n \"priority\": 123,\n \"reference_id\": \"<string>\",\n \"reference_type\": \"<string>\",\n \"sort\": [\n {\n \"field\": \"<string>\"\n }\n ],\n \"start_time\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://us.api.flexprice.io/v1/wallets/transactions/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"created_by\": \"<string>\",\n \"credits_available_gt\": 123,\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"expand\": \"<string>\",\n \"expiry_date_after\": \"<string>\",\n \"expiry_date_before\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"value\": {\n \"array\": [\n \"<string>\"\n ],\n \"boolean\": true,\n \"date\": \"<string>\",\n \"number\": 123,\n \"string\": \"<string>\"\n }\n }\n ],\n \"id\": \"<string>\",\n \"limit\": 500,\n \"offset\": 1,\n \"priority\": 123,\n \"reference_id\": \"<string>\",\n \"reference_type\": \"<string>\",\n \"sort\": [\n {\n \"field\": \"<string>\"\n }\n ],\n \"start_time\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"amount": "<string>",
"conversion_rate": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"created_by_user": {
"email": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"roles": [
"<string>"
],
"tenant": {
"billing_details": {
"address": {
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>"
},
"email": "<string>",
"help_email": "<string>",
"phone": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
},
"credit_amount": "<string>",
"credit_balance_after": "<string>",
"credit_balance_before": "<string>",
"credits_available": "<string>",
"currency": "<string>",
"customer": {
"address_city": "<string>",
"address_country": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"address_postal_code": "<string>",
"address_state": "<string>",
"contact": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"email": "<string>",
"environment_id": "<string>",
"external_id": "<string>",
"id": "<string>",
"integrations": [
{
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"entity_id": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"provider_entity_id": "<string>",
"provider_type": "<string>",
"tenant_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
}
],
"metadata": {},
"name": "<string>",
"tenant_id": "<string>",
"timezone": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
},
"customer_id": "<string>",
"description": "<string>",
"environment_id": "<string>",
"expiry_date": "2023-11-07T05:31:56Z",
"id": "<string>",
"idempotency_key": "<string>",
"metadata": {},
"parent_transaction_id": "<string>",
"priority": 123,
"reference_id": "<string>",
"tenant_id": "<string>",
"topup_conversion_rate": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"wallet": {
"alert_settings": {
"alert_enabled": true,
"critical": {
"threshold": "<string>"
},
"info": {
"threshold": "<string>"
},
"warning": {
"threshold": "<string>"
}
},
"auto_topup": {
"amount": 123,
"enabled": true,
"invoicing": true,
"threshold": 123
},
"balance": "<string>",
"config": {
"allowed_price_types": []
},
"conversion_rate": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"credit_balance": "<string>",
"credits_available_breakdown": {
"free": "<string>",
"purchased": "<string>"
},
"currency": "<string>",
"customer_id": "<string>",
"description": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"real_time_balance": "<string>",
"real_time_credit_balance": "<string>",
"tenant_id": "<string>",
"topup_conversion_rate": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>"
},
"wallet_id": "<string>"
}
],
"pagination": {
"limit": 123,
"offset": 123,
"total": 123
}
}{
"http_status_code": 123,
"message": "<string>"
}{
"http_status_code": 123,
"message": "<string>"
}Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
Filter
filters allows complex filtering based on multiple fields
Show child attributes
Show child attributes
Required range:
1 <= x <= 1000Required range:
x >= 0Available options:
asc, desc Show child attributes
Show child attributes
Available options:
published, deleted, archived Available options:
INVOICE_PAYMENT, FREE_CREDIT_GRANT, SUBSCRIPTION_CREDIT_GRANT, PURCHASED_CREDIT_INVOICED, PURCHASED_CREDIT_DIRECT, CREDIT_NOTE, CREDIT_EXPIRED, WALLET_TERMINATION, MANUAL_BALANCE_DEBIT, CREDIT_ADJUSTMENT, INVOICE_VOID_REFUND, PURCHASED_CREDIT_BONUS Available options:
pending, completed, failed Available options:
credit, debit ⌘I

