cURL
curl "https://api.easy-orders.net/api/partners-apps/v1/billing" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/billing', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { billing } = jsonpackage main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.easy-orders.net/api/partners-apps/v1/billing", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var answer map[string]any
if err := json.NewDecoder(res.Body).Decode(&answer); err != nil {
panic(err)
}
if res.StatusCode >= 300 {
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(answer["billing"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/billing');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
],
]);
$answer = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status >= 300) {
throw new RuntimeException($answer['error']['code'] . ': ' . $answer['error']['message']);
}
$billing = $answer['billing'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/billing",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
billing = answer["billing"]{
"billing": {
"subscription": {
"plan_id": "plan_pro",
"plan_name": "Pro",
"price": "19.00",
"status": "active",
"trial_ends_at": null,
"current_period_start": "2026-11-20T10:00:00Z",
"current_period_end": "2026-12-20T10:00:00Z",
"pending_plan_id": null,
"pending_plan_price": null,
"price_change": null
},
"wallet": {
"enabled": true,
"balance": "19.95"
}
}
}{
"error": {
"code": "unauthenticated",
"message": "Missing or invalid access token"
}
}{
"error": {
"code": "validation_failed",
"message": "Validation failed",
"details": {
"fields": [
{
"field": "items[0].quantity",
"rule": "between",
"param": "1,10000"
}
]
}
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Billing
Get billing
Scope: none. Every app can call it.
Your app’s subscription on the store (null when your app has no
plans) and its usage wallet. Takes no query parameters.
Works while the subscription is suspended, when the rest of the API
answers 402, so your app can see why.
GET
/
billing
cURL
curl "https://api.easy-orders.net/api/partners-apps/v1/billing" \
-H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"const response = await fetch('https://api.easy-orders.net/api/partners-apps/v1/billing', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
},
})
const json = await response.json()
if (!response.ok) {
throw new Error(`${json.error.code}: ${json.error.message}`)
}
const { billing } = jsonpackage main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.easy-orders.net/api/partners-apps/v1/billing", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("EASYORDERS_ACCESS_TOKEN"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var answer map[string]any
if err := json.NewDecoder(res.Body).Decode(&answer); err != nil {
panic(err)
}
if res.StatusCode >= 300 {
panic(fmt.Sprint(res.Status, answer["error"]))
}
fmt.Println(answer["billing"])
}<?php
$ch = curl_init('https://api.easy-orders.net/api/partners-apps/v1/billing');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
],
]);
$answer = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status >= 300) {
throw new RuntimeException($answer['error']['code'] . ': ' . $answer['error']['message']);
}
$billing = $answer['billing'];import os
import requests
response = requests.get(
"https://api.easy-orders.net/api/partners-apps/v1/billing",
headers={
"Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
},
timeout=30,
)
answer = response.json()
if not response.ok:
raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
billing = answer["billing"]{
"billing": {
"subscription": {
"plan_id": "plan_pro",
"plan_name": "Pro",
"price": "19.00",
"status": "active",
"trial_ends_at": null,
"current_period_start": "2026-11-20T10:00:00Z",
"current_period_end": "2026-12-20T10:00:00Z",
"pending_plan_id": null,
"pending_plan_price": null,
"price_change": null
},
"wallet": {
"enabled": true,
"balance": "19.95"
}
}
}{
"error": {
"code": "unauthenticated",
"message": "Missing or invalid access token"
}
}{
"error": {
"code": "validation_failed",
"message": "Validation failed",
"details": {
"fields": [
{
"field": "items[0].quantity",
"rule": "between",
"param": "1,10000"
}
]
}
}
}{
"error": {
"code": "too_many_requests",
"message": "Rate limit exceeded"
}
}Authorizations
An access token from the OAuth flow (eo_at_...). It lasts one hour;
refresh it with the refresh token. See Authentication.