List Payment Requests
curl --request GET \
--url https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests', 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.voiceaiwrapper.app/api/v2/external-billing/payment-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "10",
"client_id": "42",
"client_name": "Acme Corp",
"subscription_id": "1",
"status": "PENDING",
"type": "SUBSCRIPTION",
"amount": "99.00",
"currency": "USD",
"due_date": "2025-01-15T00:00:00",
"grace_period_ends_at": "2025-01-22T00:00:00",
"paid_at": null,
"external_payment_id": null,
"notes": null,
"line_items": [],
"period_start": "2025-01-01T00:00:00",
"period_end": "2025-02-01T00:00:00",
"created_at": "2025-01-01T00:00:00",
"updated_at": "2025-01-01T00:00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"page_size": 20
}
}{
"message": "Invalid status 'unknown'.",
"valid_values": [
"PENDING",
"PAID",
"FAILED",
"CANCELED",
"OVERDUE"
]
}{
"message": "Authorization header not found"
}{
"message": "External Billing API access requires a PRO plan. Error Code: external_billing_api"
}{
"message": "Client not found"
}{
"message": "Internal server error"
}Payment Requests
List Payment Requests
Retrieve a paginated list of payment requests for your tenant, with optional filters for client, status, and type.
GET
/
api
/
v2
/
external-billing
/
payment-requests
List Payment Requests
curl --request GET \
--url https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests', 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.voiceaiwrapper.app/api/v2/external-billing/payment-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.voiceaiwrapper.app/api/v2/external-billing/payment-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "10",
"client_id": "42",
"client_name": "Acme Corp",
"subscription_id": "1",
"status": "PENDING",
"type": "SUBSCRIPTION",
"amount": "99.00",
"currency": "USD",
"due_date": "2025-01-15T00:00:00",
"grace_period_ends_at": "2025-01-22T00:00:00",
"paid_at": null,
"external_payment_id": null,
"notes": null,
"line_items": [],
"period_start": "2025-01-01T00:00:00",
"period_end": "2025-02-01T00:00:00",
"created_at": "2025-01-01T00:00:00",
"updated_at": "2025-01-01T00:00:00"
}
],
"meta": {
"total": 1,
"page": 1,
"page_size": 20
}
}{
"message": "Invalid status 'unknown'.",
"valid_values": [
"PENDING",
"PAID",
"FAILED",
"CANCELED",
"OVERDUE"
]
}{
"message": "Authorization header not found"
}{
"message": "External Billing API access requires a PRO plan. Error Code: external_billing_api"
}{
"message": "Client not found"
}{
"message": "Internal server error"
}This endpoint requires a PRO plan or above. If your plan does not include the External Billing API, the request returns
403 with error code external_billing_api.Combining filters
All query parameters are optional and can be used together or individually:GET /api/v2/external-billing/payment-requests?client_id=<ID>&status=PENDING&type=SUBSCRIPTION
GET /api/v2/external-billing/payment-requests?status=OVERDUE
GET /api/v2/external-billing/payment-requests?client_id=<ID>&type=ADDON
GET /api/v2/external-billing/payment-requests?client_id=<ID>
| Parameter | Optional | Notes |
|---|---|---|
client_id | Yes | Scope to a single client. Omit to return all clients. |
status | Yes | Filter by payment status (PENDING, PAID, FAILED, CANCELED, OVERDUE). |
type | Yes | Filter by request type (SUBSCRIPTION, ADDON, OVERAGE, ONE_TIME). |
page | Yes | Defaults to 1. |
page_size | Yes | Defaults to 20, max 100. |
Payment request statuses
| Status | Meaning |
|---|---|
PENDING | Created, awaiting payment. |
PAID | Marked as paid. |
OVERDUE | Due date passed without payment. Triggers past_due on the linked subscription (cycle requests only). |
FAILED | Payment could not be completed. |
CANCELED | Canceled - no longer requires payment. |
Payment request types
| Type | Meaning |
|---|---|
SUBSCRIPTION | Recurring flat-fee charge for a billing period. |
ADDON | Charge for an add-on pack applied to a client. |
OVERAGE | Per-minute overage charge generated at the end of a billing period. |
ONE_TIME | One-off charge outside the normal billing cycle. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Filter payment requests for a specific client. Accepts a plain integer ID or a base64 GraphQL global ID. Omit to return all clients under the tenant.
Example:
"Q2xpZW50OjEyMw=="
Filter by payment request status.
Available options:
PENDING, PAID, FAILED, CANCELED, OVERDUE Example:
"PENDING"
Filter by payment request type.
Available options:
SUBSCRIPTION, ADDON, OVERAGE, ONE_TIME Example:
"SUBSCRIPTION"
Page number. Default: 1.
Example:
1
Results per page. Default: 20. Maximum: 100.
Required range:
x <= 100Example:
20
Was this page helpful?

