Get plan-subscription
curl --request GET \
--url https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}import requests
url = "https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}', 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://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"type": "plan-subscriptions",
"attributes": {
"name": "<string>",
"description": "<string>",
"price": 123,
"effective_price": 123,
"display_price": "<string>",
"currency": "<string>",
"region": "<string>",
"is_net_price": true,
"next_action": "<string>",
"next_action_at": "<string>",
"trial_starts_at": "<string>",
"trial_ends_at": "<string>",
"starts_at": "<string>",
"ends_at": "<string>",
"suspended_at": "<string>",
"suspended_until": "<string>",
"next_billed_at": "<string>",
"is_billed_offline": true,
"credited_amount": 123,
"cancels_at": "<string>",
"canceled_at": "<string>",
"min_cancels_at": "<string>",
"auto_renewal": true,
"billing_email": "<string>",
"signup_fee": 123,
"relative_discount": 123,
"absolute_discount": 123,
"notice_period": "<string>",
"approved_at": "<string>",
"rejected_at": "<string>",
"custom_entry_map": {},
"created_at": "<string>",
"charged_at": "<string>"
},
"links": {
"self": "<string>"
},
"relationships": {
"plan": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"subscriber": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"payment_setup": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"invoices": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"usage": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"owner": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"customer": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"document_acceptances": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"files": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
}
},
"meta": {
"usage_summary": {}
}
}
}Passes, Plans & Queue
Get plan-subscription
GET
/
api
/
v1
/
plan-subscriptions
/
{plan_subscription_id}
Get plan-subscription
curl --request GET \
--url https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}import requests
url = "https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}', 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://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/plan-subscriptions/{plan_subscription_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"type": "plan-subscriptions",
"attributes": {
"name": "<string>",
"description": "<string>",
"price": 123,
"effective_price": 123,
"display_price": "<string>",
"currency": "<string>",
"region": "<string>",
"is_net_price": true,
"next_action": "<string>",
"next_action_at": "<string>",
"trial_starts_at": "<string>",
"trial_ends_at": "<string>",
"starts_at": "<string>",
"ends_at": "<string>",
"suspended_at": "<string>",
"suspended_until": "<string>",
"next_billed_at": "<string>",
"is_billed_offline": true,
"credited_amount": 123,
"cancels_at": "<string>",
"canceled_at": "<string>",
"min_cancels_at": "<string>",
"auto_renewal": true,
"billing_email": "<string>",
"signup_fee": 123,
"relative_discount": 123,
"absolute_discount": 123,
"notice_period": "<string>",
"approved_at": "<string>",
"rejected_at": "<string>",
"custom_entry_map": {},
"created_at": "<string>",
"charged_at": "<string>"
},
"links": {
"self": "<string>"
},
"relationships": {
"plan": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"subscriber": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"payment_setup": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"invoices": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"usage": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"owner": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"customer": {
"data": {
"type": "<string>",
"id": "<string>"
},
"links": {
"self": "<string>"
}
},
"document_acceptances": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
},
"files": {
"data": [
{
"type": "<string>",
"id": "<string>"
}
],
"links": {
"self": "<string>"
}
}
},
"meta": {
"usage_summary": {}
}
}
}Pfadparameter
The plan subscription identifier.
Abfrageparameter
Comma-separated. Allowed: plan, plan.features, payment_setup, payment_setup.method, invoices.items, document_acceptances.document, files
Antwort
OK
A subscription to a plan, providing recurring access to services and quotas.
Show child attributes
Show child attributes
⌘I