Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.kerne.io/v1/billing/subscriptions \ --header 'x-app-id: <api-key>'
import requests url = "https://api.kerne.io/v1/billing/subscriptions" headers = {"x-app-id": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {'x-app-id': '<api-key>'}}; fetch('https://api.kerne.io/v1/billing/subscriptions', 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.kerne.io/v1/billing/subscriptions", 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-app-id: <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://api.kerne.io/v1/billing/subscriptions" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("x-app-id", "<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://api.kerne.io/v1/billing/subscriptions") .header("x-app-id", "<api-key>") .asString();
require 'uri' require 'net/http' url = URI("https://api.kerne.io/v1/billing/subscriptions") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["x-app-id"] = '<api-key>' response = http.request(request) puts response.read_body
[ { "id": "<string>", "tenant_id": "<string>", "customer": { "id": "<string>", "external_id": "<string>", "email": "<string>", "name": "<string>" }, "plan_price_id": "<string>", "pack_id": "<string>", "pending_plan_price_id": "<string>", "pending_pack_id": "<string>", "provider": "STRIPE", "provider_subscription_id": "<string>", "provider_customer_id": "<string>", "status": "ACTIVE", "current_period_start": "2023-11-07T05:31:56Z", "current_period_end": "2023-11-07T05:31:56Z", "trial_start": "2023-11-07T05:31:56Z", "trial_end": "2023-11-07T05:31:56Z", "canceled_at": "2023-11-07T05:31:56Z", "ended_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "plan": { "id": "<string>", "slug": "<string>", "name": "<string>" }, "plan_price": { "id": "<string>", "amount": 123, "currency": "<string>", "interval": "<string>", "price_label_name": "<string>", "price_label_slug": "<string>" }, "product": { "id": "<string>", "slug": "<string>", "name": "<string>" }, "pack": { "id": "<string>", "version": 123, "status": "DRAFT" }, "entitlements": [ { "feature_id": "<string>", "feature_key": "<string>", "feature_name": "<string>", "feature_type": "<string>", "feature_unit_label": "<string>", "limit": 123, "value": "<string>", "overage": "BLOCK", "limit_binding": "CUSTOMER", "cap_binding": "CUSTOMER", "max_dimensions": 123, "overage_ceiling": "<string>", "overage_cap_amount": 123, "billed_amount": 123, "currency": "<string>", "cap_reached": true } ] } ]
App identifier (App.id, sent as the x-app-id header)
ACTIVE
TRIALING
PAST_DUE
CANCELED
UNPAID
PAUSED
Show child attributes
STRIPE
POLAR