충전 건 목록
GET/v1/organizations/{org_id}/credit/lots
결제된 충전 한 건이 로트 하나입니다, 만료가 빠른 순으로 돌려줍니다
콘솔 세션 전용입니다, 조직 역할 owner, admin만 부를 수 있고 API 키로 부르면 403 console_only입니다
Headers
- Cookie: string콘솔 로그인 세션 쿠키, 콘솔 전용 엔드포인트라 API 키로 부르면 403 console_only입니다
Parameters
- org_id: string조직 ID형식
^org_[A-Za-z0-9]+$ - include_empty: optional booleantrue면 다 쓴 로트도 포함기본값
false
Returns
200 application/json
CreditLotList: object
data: array of CreditLot { id, topup_order_id, credit_micro_usd, … }
항목 배열- id: stringID형식
^lot_[A-Za-z0-9]+$ - topup_order_id: string이 로트를 만든 충전 주문
- credit_micro_usd: integer충전된 크레딧최소 0
- credit_usd: string같은 금액의 USD 문자열(센트, 소수 2자리)형식
^-?[0-9]+\.[0-9]{2}$ - remaining_micro_usd: integer남은 크레딧최소 0
- remaining_usd: string남은 금액(USD)형식
^-?[0-9]+\.[0-9]{2}$ - purchased_at: string결제 시각RFC 3339 UTC 시각
- expires_at: string결제 시각 + 1년RFC 3339 UTC 시각
- expired: optional boolean만료되었는지
오류
- invalid_request: HTTP 400본문이나 쿼리가 검증에 실패했습니다, error.details.fields에 문제 필드가 있습니다
- session_required: HTTP 401콘솔 엔드포인트를 유효한 콘솔 세션 쿠키 없이 불렀습니다
- console_only: HTTP 403콘솔 세션 전용 엔드포인트입니다, API 키로는 결제, 키, 멤버 관리를 할 수 없습니다
- insufficient_permission: HTTP 403역할이나 키 권한(run/read)이 이 요청을 허용하지 않습니다
- not_found: HTTP 404자원이 없거나 이 호출자에게 보이지 않습니다
- rate_limited: HTTP 429, 다시 시도 가능이 키 또는 조직의 요청이 너무 많습니다, retry_after_s만큼 기다리세요
- internal_error: HTTP 500, 다시 시도 가능예상하지 못한 오류입니다, 다시 시도하고 반복되면 request_id와 함께 알려 주세요
오류 봉투 모양과 전체 코드 표는 오류 코드에 있습니다