BizKitHub
DokumentáciaPrieskumník APISubscription/api/v1/subscription/subscribable-product-list
getSubscriptionVerejné API v1

/api/v1/subscription/subscribable-product-list

Returns every active product in the organisation that has a recurring subscription plan. Useful for building a "choose plan" picker when starting a subscription. Read-only.

subscriptiongetApiV1SubscriptionSubscribable-product-list

Parametre

1 v query

Parametre v query

· 1
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
itemsobject[]Povinné
Každá položka poľa:
productCodestringPovinné
Príkladkurz-mesicni
productNamestringPovinné
PríkladMonthly Course
intervalstringPovinné
Príklad1m
pricenumberPovinné
Príklad490
currencyCodestringPovinné
PríkladCZK

Ukážka odpovede

application/json
{
  "items": [
    {
      "productCode": "kurz-mesicni",
      "productName": "Monthly Course",
      "interval": "1m",
      "price": 490,
      "currencyCode": "CZK"
    }
  ]
}

Ukážka požiadavky

GET /api/v1/subscription/subscribable-product-list

get
curl -X GET "https://api.bizkithub.com/api/v1/subscription/subscribable-product-list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč