Skip to content
شعار البي شعار البي El-BDevelopers

Credits

List credit transactions

Your credit ledger, newest first: monthly grants, purchases, credits set aside, charged and returned by payments.

GET https://el-b.com/api/v1/credits/transactions

Authorization

  • Authorizationheaderrequired

    Bearer elb_sk_…: your API key, from API in your El-B account.

Query parameters

  • per_page integer

    1 to 100. Default 25.

  • cursor string

    The meta.next_cursor of the previous page.

Response fields

  • typestring

    monthly_grant, purchase, reservation (set aside by a payment), release (returned), consumption, refund, referral_bonus or adjustment.

  • sourcestring

    free or paid credits.

  • amountinteger

    Negative when credits leave the balance.

  • payment_codestring|null

    The payment the entry belongs to, if any.

Responses

StatusMeaning
200Success. The body is shown alongside.
401Missing, unknown or paused API key.
403The account is suspended, or no longer verified by an official document.
429More than 60 requests in a minute. See Rate limits.