curl --request GET \
--url https://api.pomerado.ai/v1/billing \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/billing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/billing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "free",
"status": "free",
"interval": "monthly",
"current_period_end": "<string>",
"live": true,
"portal": true,
"checkout": {
"monthly": true,
"yearly": true
},
"yearly_switch": {
"available": true,
"scheduled": {
"schedule_id": "<string>",
"starts_at": "<string>"
},
"needs_support": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Get your Premium subscription
Your Personal account’s plan and Premium subscription: its status, interval and current period end, whether the billing portal can open, which intervals checkout offers, and any scheduled switch to yearly billing.
curl --request GET \
--url https://api.pomerado.ai/v1/billing \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pomerado.ai/v1/billing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pomerado.ai/v1/billing"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plan": "free",
"status": "free",
"interval": "monthly",
"current_period_end": "<string>",
"live": true,
"portal": true,
"checkout": {
"monthly": true,
"yearly": true
},
"yearly_switch": {
"available": true,
"scheduled": {
"schedule_id": "<string>",
"starts_at": "<string>"
},
"needs_support": true
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"details": {}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Your subscription
free, premium free; active; trialing; canceling (Premium until current_period_end, then Free); past_due (Premium while Stripe retries a failed payment); payment_failed (the first payment failed, so still Free)
free, active, trialing, canceling, past_due, payment_failed monthly, yearly When the current period ends: the next renewal, the end of a trial, or when Premium ends
False when Stripe could not be read, so this is the subscription Pomerado last stored
The billing portal can open
Which Premium intervals checkout offers
Show child attributes
Show child attributes
Show child attributes
Show child attributes