Naar hoofdinhoud gaan
GET
/
user
/
credits
/
info
Krijg kredietinformatie
curl --request GET \
  --url https://api.olostep.com/user/credits/info \
  --header 'Authorization: Bearer <token>'
{
  "credits": 12500,
  "breakdown": [
    {
      "purchase_kind": "Subscription",
      "allocated_units": 10000,
      "remaining_units": 8500,
      "expiry_date": 1735689600
    },
    {
      "purchase_kind": "Top-up",
      "allocated_units": 5000,
      "remaining_units": 4000,
      "expiry_date": 1743465600
    }
  ],
  "active_subscription": {
    "id": "SUB_PRO",
    "display_name": "Pro",
    "credits": 10000,
    "created_at": 1704067200
  },
  "allow_usage": true
}
Voor een begeleid overzicht, zie Saldo & facturering.

Autorisaties

Authorization
string
header
vereist

Bearer authenticatie header in de vorm Bearer , waar jouw auth token is.

Respons

Kredietsaldo en factureringscontext voor het geauthenticeerde team.

credits
integer

Totaal resterende kredieten over alle niet-verlopen partijen.

breakdown
object[]

Kredietdetail per partij.

active_subscription
object
allow_usage
boolean

Of het team nog steeds kredieten kan gebruiken.