메인 콘텐츠로 건너뛰기
GET
/
credits
Get credit balance
curl --request GET \
  --url https://api.youka.io/api/v1/credits \
  --header 'Authorization: Bearer <token>'
{
  "renewalDates": [
    "<string>"
  ],
  "topups": [
    {
      "id": "<string>",
      "originalAmount": 4503599627370495,
      "remaining": 4503599627370495,
      "expiresAt": "<string>"
    }
  ],
  "availableBalance": 4503599627370495,
  "subscription": {
    "renewsAt": "<string>"
  }
}

인증

Authorization
string
header
필수

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

응답

200 - application/json

Credit balance and renewal data

renewalDates
string[]
필수
topups
object[]
필수
availableBalance
integer
필수
필수 범위: 0 <= x <= 9007199254740991
subscription
object