cURL
curl -X GET "https://api.metrifox.com/api/v1/credit_systems/v2/wallets/transactions?customer_key=cust-mljp3ra6ffjm&feature_key=image_generation&per_page=20" \
-H "x-api-key: your_api_key"import requests
url = "https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions', 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://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Credit transactions fetched successfully",
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 3,
"limit_value": 10,
"next_page": null,
"prev_page": null,
"first_page": true,
"last_page": true,
"out_of_range": false
},
"data": [
{
"id": "9af2e7b1-8c3d-4d52-9b1a-23c7e4f60d21",
"amount": 25,
"quantity": 5,
"event_name": "image_generated",
"usage_event_id": "ue_01HXYZ456DEF",
"created_at": "2026-03-18T14:08:47.802Z"
},
{
"id": "2e8c1a4f-9b73-4f1a-bd64-58a9d7c83ef0",
"amount": 10,
"quantity": 2,
"event_name": "image_generated",
"usage_event_id": "ue_01HXYZ123ABC",
"created_at": "2026-03-15T09:22:03.114Z"
},
{
"id": "5c0b9d72-1a44-4e83-9f2c-6e3a8b1d04f7",
"amount": 8,
"quantity": null,
"event_name": "overage payoff",
"usage_event_id": null,
"created_at": "2026-03-12T17:02:11.500Z"
}
],
"errors": {}
}Wallets
List a customer's wallet transactions
List the credit transactions across all of a customerโs wallets, filtered by feature, subscription, or date range, with pagination.
GET
/
api
/
v1
/
credit_systems
/
v2
/
wallets
/
transactions
cURL
curl -X GET "https://api.metrifox.com/api/v1/credit_systems/v2/wallets/transactions?customer_key=cust-mljp3ra6ffjm&feature_key=image_generation&per_page=20" \
-H "x-api-key: your_api_key"import requests
url = "https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions', 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://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/api/v1/credit_systems/v2/wallets/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Credit transactions fetched successfully",
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 3,
"limit_value": 10,
"next_page": null,
"prev_page": null,
"first_page": true,
"last_page": true,
"out_of_range": false
},
"data": [
{
"id": "9af2e7b1-8c3d-4d52-9b1a-23c7e4f60d21",
"amount": 25,
"quantity": 5,
"event_name": "image_generated",
"usage_event_id": "ue_01HXYZ456DEF",
"created_at": "2026-03-18T14:08:47.802Z"
},
{
"id": "2e8c1a4f-9b73-4f1a-bd64-58a9d7c83ef0",
"amount": 10,
"quantity": 2,
"event_name": "image_generated",
"usage_event_id": "ue_01HXYZ123ABC",
"created_at": "2026-03-15T09:22:03.114Z"
},
{
"id": "5c0b9d72-1a44-4e83-9f2c-6e3a8b1d04f7",
"amount": 8,
"quantity": null,
"event_name": "overage payoff",
"usage_event_id": null,
"created_at": "2026-03-12T17:02:11.500Z"
}
],
"errors": {}
}
