bootpaycommerce
관리자

회차 조회

v1 API 상세 명세

구독 계약에 따라 생성된 회차(Bill) 목록을 조회합니다. 회차마다 결제 상태, 금액, 거래 정보가 함께 옵니다.

API 엔드포인트

GET/v1/order_subscription_bills
Base URLhttps://api.bootapi.com

요청 파라미터

요청 파라미터

파라미터타입필수설명
order_subscription_idStringN구독 계약 고유 번호 (없으면 전체 조회)
statusString | Integer | ArrayN회차 상태 필터 (숫자 또는 bill_ready 같은 키). 여러 값은 status[]=bill_ready&status[]=bill_failed 또는 status=2,-1로 보냅니다
pageNumberN페이지 번호
limitNumberN페이지당 데이터 수 (기본 20, 100 을 넘기면 20 으로 돌아갑니다)

코드 예제

curl -X GET "https://api.bootapi.com/v1/order_subscription_bills?order_subscription_id={id}&page=1&limit=10" \
  -H "Authorization: Basic {base64(client_key:secret_key)}" \
  -H "Content-Type: application/json"

응답

JSON
{
  "list": [
    {
      "order_subscription_bill_id": "6965f45c4cb8149d0771250d",
      "duration": 1,
      "price": 1000,
      "tax_free_price": 0,
      "status": "bill_completed",
      "reserve_payment_at": "2026-01-12T15:00:00Z",
      "purchased_at": "2026-01-13T07:29:33Z",
      "order_subscription_transaction": {
        "order_subscription_transaction_id": "6965f45c4cb8149d0771250e",
        "purchase_price": 1000,
        "purchase_tax_free_price": 0,
        "status": "bill_completed"
      }
    }
  ],
  "count": 24
}

응답 파라미터

파라미터타입설명
countNumber전체 회차 수
listArray회차 목록
  └─ order_subscription_bill_idString회차 고유 ID
  └─ durationInteger회차 번호
  └─ priceNumber회차 금액
  └─ tax_free_priceNumber면세 금액
  └─ statusString회차 상태
  └─ reserve_payment_atString결제 예정 시각
  └─ purchased_atString실제 결제 시각
  └─ order_subscription_transactionObject연결된 거래 정보

회차 상태 코드 (list[].status)

값키설명
2bill_ready결제 대기중
1bill_completed결제 완료
5bill_pending결제 지연
6bill_failure_delayed결제 실패 후 재시도 대기
10bill_cancelled관리자 취소
11bill_paused청구 일시정지
20bill_terminated해지로 인한 취소
-1bill_failed결제 실패
-2bill_recreate_cancelled회차 재생성으로 취소됨
-11bill_schedule_cancelled_by_payment_failure결제 실패로 스케줄 취소
-100bill_error청구 오류
성공실패지연취소재시도 예약결제 대기bill_ready결제 완료bill_completed결제 실패bill_failed결제 지연bill_pending재시도 대기bill_failure_delayed · 결제 대기로 돌아감취소(-2, 10, 20)