curl --request GET \
--url https://app.base44.com/api/billing/ils-refund-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/billing/ils-refund-preview"
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/billing/ils-refund-preview', 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/billing/ils-refund-preview",
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/billing/ils-refund-preview"
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/billing/ils-refund-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/billing/ils-refund-preview")
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{
"eligible": true,
"tier": "builder_ils",
"interval": "monthly",
"currency": "ils",
"refund_agorot": 4275,
"amount_paid_agorot": 9000,
"days_used": 0,
"remaining_days": 15,
"total_days": 30,
"is_immediate_cancel": true
}Preview ILS refund
Shows whether cancelling your workspace’s subscription now refunds part of the current period under Israeli consumer-protection rules, and how much. Nothing changes.
The refund applies to plans billed in shekels, and to customers in Israel on the same plans in another currency. To take it, send ils_refund_consent: true to Cancel subscription. That cancels the subscription right away instead of at the end of the period.
When eligible is false, the response has no other fields. Only the workspace owner can call this.
The base rate limit is 20 requests per hour per user. See Rate limits for the multiplier your plan gets.
curl --request GET \
--url https://app.base44.com/api/billing/ils-refund-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/billing/ils-refund-preview"
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/billing/ils-refund-preview', 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/billing/ils-refund-preview",
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/billing/ils-refund-preview"
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/billing/ils-refund-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/billing/ils-refund-preview")
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{
"eligible": true,
"tier": "builder_ils",
"interval": "monthly",
"currency": "ils",
"refund_agorot": 4275,
"amount_paid_agorot": 9000,
"days_used": 0,
"remaining_days": 15,
"total_days": 30,
"is_immediate_cancel": true
}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.
Response
Whether cancelling now refunds part of the period, and how much.
The refund an immediate cancellation pays under Israeli consumer-protection rules.
true when cancelling now refunds part of this period. When false, no other field is returned.
true
Plan the refund is calculated for, as a plan key that can carry a currency suffix.
"builder_ils"
Billing period of the plan: monthly or yearly.
"monthly"
Lowercase three-letter currency code of the amounts.
"ils"
Refund you get if you cancel now, in the smallest unit of currency (agorot for ILS, cents for USD). Can be 0 when nothing is left to refund.
4275
What was paid for the current period, in the smallest unit of currency. 0 when the workspace is billed through Wix, which reports only the refund.
9000
Yearly plans: days of the period already used. 0 for monthly plans and for workspaces billed through Wix.
0
Monthly plans: days left in the period. 0 for yearly plans and for workspaces billed through Wix.
15
Length of the period in days: the month's length for monthly plans, or 365 for yearly plans. 0 for workspaces billed through Wix.
30
Always true when eligible: taking the refund cancels the subscription right away.
true
Was this page helpful?