curl --request GET \
--url https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt', 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://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt",
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://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt"
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://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt")
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{
"state": "payable",
"recoverable": true,
"can_pay_now": true,
"requires_payment_method": false,
"stripe_unavailable": false,
"account_id": "68b1c0d4e7b91d003c45a1f8",
"app_id": "6820f3a4e7b91d003c45a1f2",
"account_status": "BLOCKED",
"block_reason": "PAYMENT_FAILED",
"charge_trigger_mode": "cadence",
"payment_method": {
"brand": "visa",
"last4": "4242"
},
"invoice": {
"id": "68b1c0d4e7b91d003c45a1fa",
"status": "FAILED",
"billing_type": "weekly",
"period_start": "2026-08-18",
"period_end": "2026-08-24",
"amount_micros": 43500000,
"currency_code": "USD",
"failed_at": "2026-08-25T04:12:00Z"
},
"debt": {
"id": "68b1c0d4e7b91d003c45a1fa",
"amount_micros": 43500000,
"currency_code": "USD",
"period_start": "2026-08-18",
"period_end": "2026-08-24",
"pay_now": {
"kind": "hosted_page",
"value": "https://pay.example.com/i/test_abc"
}
}
}Get Google Ads workspace debt
Returns what the workspace owes for Google Ads spend, and whether it can be settled.
The balance is workspace-wide rather than per app. Base44 holds Google Ads at the workspace level, so this resolves the held account across every app in the workspace and reports it from whichever app you ask through. That is why app_id in the response can name a different app from the one in the path. Read state first, since no_workspace_debt is the normal answer and leaves every other field at a neutral default rather than omitting it.
Nothing here charges anything. To settle a payable balance, call Pay Google Ads workspace debt.
curl --request GET \
--url https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt', 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://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt",
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://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt"
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://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/google-ads/billing/workspace-debt")
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{
"state": "payable",
"recoverable": true,
"can_pay_now": true,
"requires_payment_method": false,
"stripe_unavailable": false,
"account_id": "68b1c0d4e7b91d003c45a1f8",
"app_id": "6820f3a4e7b91d003c45a1f2",
"account_status": "BLOCKED",
"block_reason": "PAYMENT_FAILED",
"charge_trigger_mode": "cadence",
"payment_method": {
"brand": "visa",
"last4": "4242"
},
"invoice": {
"id": "68b1c0d4e7b91d003c45a1fa",
"status": "FAILED",
"billing_type": "weekly",
"period_start": "2026-08-18",
"period_end": "2026-08-24",
"amount_micros": 43500000,
"currency_code": "USD",
"failed_at": "2026-08-25T04:12:00Z"
},
"debt": {
"id": "68b1c0d4e7b91d003c45a1fa",
"amount_micros": 43500000,
"currency_code": "USD",
"period_start": "2026-08-18",
"period_end": "2026-08-24",
"pay_now": {
"kind": "hosted_page",
"value": "https://pay.example.com/i/test_abc"
}
}
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Scopes
Response
What the workspace owes, and whether it can be settled.
Whether the workspace owes anything for Google Ads spend.
What can be done about the balance. no_workspace_debt means nothing is held. payable means there is an invoice and a usable card. requires_payment_method and requires_payment_refresh both mean a card is needed. pending_payment means a charge is already in flight. paid_recovery_incomplete means the invoice is paid but the account is still held. unavailable means the balance cannot be settled right now, including when stripe_unavailable is true. no_debt and not_recoverable mean the account has no settleable balance. Whatever the state, a non-null debt.pay_now is a hosted way to settle the balance without the card on file.
"payable"
Whether Base44 could not reach the payment provider (true) or reached it fine (false). When it is true the card check failed closed, so payment_method reads null and can_pay_now reads false because the check failed, not because the card is missing. Retry rather than telling someone to add a card.
false
Was this page helpful?