거래 목록 조회
구독 거래(order_subscription_transaction)는 회차(Bill) 목록 응답 안에 담겨 옵니다. 거래 내역은 회차 목록 API로 조회합니다.
API 엔드포인트
요청 파라미터
요청 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
| order_subscription_id | String | N | 구독 계약 ID 필터 |
| status | String | Integer | Array | N | 회차 상태 필터 (숫자 또는 bill_ready 같은 키). 여러 값은 status[]=bill_ready&status[]=bill_failed 또는 status=2,-1로 보냅니다 |
| page | Number | N | 페이지 번호 |
| limit | Number | N | 페이지당 개수 (기본 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"import { BootpayCommerce } from '@bootpay/backend-js'
const commerce = new BootpayCommerce({
client_key: '{client_key}',
secret_key: '{secret_key}'
})
const response = await commerce.orderSubscriptionBill.list({
order_subscription_id: '687a1b2c3d4e5f6789012345',
page: 1,
limit: 10
})
console.log(response)from bootpay_backend.commerce import BootpayCommerce
commerce = BootpayCommerce('{client_key}', '{secret_key}')
response = commerce.order_subscription_bill.list({
'order_subscription_id': '687a1b2c3d4e5f6789012345',
'page': 1,
'limit': 10
})
print(response)use Bootpay\ServerPhp\BootpayCommerceApi;
$commerce = new BootpayCommerceApi('{client_key}', '{secret_key}');
$response = $commerce->orderSubscriptionBill->getList([
'order_subscription_id' => '687a1b2c3d4e5f6789012345',
'page' => 1,
'limit' => 10
]);
print_r($response);import kr.co.bootpay.store.BootpayStore;
import kr.co.bootpay.store.model.request.TokenPayload;
import kr.co.bootpay.store.model.response.BootpayStoreResponse;
import kr.co.bootpay.store.model.request.orderSubscriptionBill.OrderSubscriptionBillListParams;
TokenPayload tokenPayload = new TokenPayload("{client_key}", "{secret_key}");
BootpayStore commerce = new BootpayStore(tokenPayload).withToken();
OrderSubscriptionBillListParams params = new OrderSubscriptionBillListParams();
params.orderSubscriptionId = "687a1b2c3d4e5f6789012345";
params.page = 1;
params.limit = 10;
BootpayStoreResponse response = commerce.orderSubscriptionBill.list(params);
System.out.println(response);require 'bootpay'
commerce = BootpayStore::RestClient.new(client_key: '{client_key}', secret_key: '{secret_key}')
response = commerce.order_subscription_bill_list(
order_subscription_id: '687a1b2c3d4e5f6789012345',
page: 1,
limit: 10
)
puts response.datacommerce := bootpay.NewCommerceAPI("{client_key}", "{secret_key}", nil, "production")
response, err := commerce.OrderSubscriptionBill.List(&bootpay.OrderSubscriptionBillListParams{
ListParams: bootpay.ListParams{Page: 1, Limit: 10},
OrderSubscriptionId: "687a1b2c3d4e5f6789012345",
})
fmt.Println(response, err)var commerce = new BootpayCommerceApi("{client_key}", "{secret_key}");
var response = await commerce.OrderSubscriptionBillList(new OrderSubscriptionBillListParams {
OrderSubscriptionId = "687a1b2c3d4e5f6789012345",
Page = 1,
Limit = 10
});
Console.WriteLine(await response.Content.ReadAsStringAsync());응답
JSON
{
"list": [
{
"order_subscription_bill_id": "6965f45c4cb8149d0771250d",
"order_subscription_transaction": {
"order_subscription_transaction_id": "6965f45c4cb8149d0771250e",
"order_number": "26011385253324293160",
"price": 1000,
"purchase_price": 1000,
"purchase_tax_free_price": 0,
"status": "bill_completed",
"purchased_at": "2026-01-13T07:29:33Z"
}
}
],
"count": 24
}회차 상태 (list[].order_subscription_transaction.status)
| 값 | 키 | 설명 |
|---|---|---|
2 | bill_ready | 결제 대기중 |
1 | bill_completed | 결제 완료 |
5 | bill_pending | 결제 지연 |
6 | bill_failure_delayed | 결제 실패 후 재시도 대기 |
10 | bill_cancelled | 관리자 취소 |
20 | bill_terminated | 해지로 인한 취소 |
-1 | bill_failed | 결제 실패 |
전체 값은 구독 청구(Bill) 상태에 있습니다.
응답 파라미터
| 파라미터 | 타입 | 설명 |
|---|---|---|
| count | Number | 전체 회차 수 |
| list | Array | 회차 목록 |
| └─ order_subscription_transaction | Object | 회차에 연결된 거래 정보 |
| └─ order_subscription_transaction_id | String | 거래 고유 ID |
| └─ order_number | String | 주문번호 |
| └─ price | Number | 거래 금액 |
| └─ purchase_price | Number | 실제 결제 금액 |
| └─ purchase_tax_free_price | Number | 실제 결제 면세 금액 |
| └─ status | String | 거래 상태 |
| └─ purchased_at | String | 결제 시각 |