링크페이 목록 조회
만든 링크페이 목록을 조회합니다. 생성일 · 발송일 · 결제일, 상품 유형, 고객으로 거를 수 있습니다.
API 엔드포인트
요청 파라미터
요청 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
| keyword | String | N | 검색어 — 청구서명·청구서 ID는 중간 글자로도 찾고, 고객 이름·전화번호·이메일은 전체 값이 같아야 찾습니다 |
| user_id | String | N | 특정 고객의 링크페이만 조회 |
| product_type | Integer | N | 상품 유형 필터 (기본 0) — 1 금액만 청구 · 2 단일 상품 · 3 여러 상품·금액 항목 |
| cs_type | String | N | 검색 일 유형 (c_at 생성일 · s_at 발송일 · p_at 결제일). 생략하면 날짜로 거르지 않습니다 |
| css_at | String | N | 검색 시작일 (YYYY-MM-DD) |
| cse_at | String | N | 검색 종료일 (YYYY-MM-DD) |
| page | Integer | N | 페이지 번호 (기본값: 1) |
| limit | Integer | N | 페이지당 데이터 수 (기본값: 24) |
코드 예제
curl -X GET "https://api.bootapi.com/v1/invoices?page=1&limit=20&product_type=1" \
-H "Authorization: Basic {base64(client_key:secret_key)}"import { BootpayCommerce } from '@bootpay/backend-js';
const commerce = new BootpayCommerce({
client_key: '{client_key}',
secret_key: '{secret_key}'
});
const response = await commerce.invoice.list({
product_type: 1, // 빼면 빈 목록 — 위 알려진 문제
page: 1,
limit: 20
});
console.log(response);from bootpay_backend.commerce import BootpayCommerce
commerce = BootpayCommerce('{client_key}', '{secret_key}')
response = commerce.invoice.list({
'product_type': 1, # 빼면 빈 목록 — 위 알려진 문제
'page': 1,
'limit': 20
})
print(response)use Bootpay\ServerPhp\BootpayCommerceApi;
$commerce = new BootpayCommerceApi("{client_key}", "{secret_key}");
$response = $commerce->invoice->getList([
'product_type' => 1, // 빼면 빈 목록 — 위 알려진 문제
'page' => 1,
'limit' => 20
]);
print_r($response);import kr.co.bootpay.store.BootpayStore;
import kr.co.bootpay.store.model.request.TokenPayload;
import kr.co.bootpay.store.model.request.invoice.InvoiceListParams;
import kr.co.bootpay.store.model.response.BootpayStoreResponse;
TokenPayload tokenPayload = new TokenPayload("{client_key}", "{secret_key}");
BootpayStore commerce = new BootpayStore(tokenPayload).withToken();
InvoiceListParams params = new InvoiceListParams();
params.productType = 1; // 빼면 빈 목록 — 위 알려진 문제
params.page = 1;
params.limit = 20;
BootpayStoreResponse response = commerce.invoice.list(params);
System.out.println(response.getData());require 'bootpay'
commerce = BootpayStore::RestClient.new(client_key: '{client_key}', secret_key: '{secret_key}')
response = commerce.invoice_list(
product_type: 1, # 빼면 빈 목록 — 위 알려진 문제
page: 1,
limit: 20
)
puts response.datacommerce := bootpay.NewCommerceAPI("{client_key}", "{secret_key}", nil, "production")
productType := 1 // 빼면 빈 목록 — 위 알려진 문제
response, err := commerce.Invoice.ListWithParams(&bootpay.InvoiceListParams{
ListParams: bootpay.ListParams{Page: 1, Limit: 20},
ProductType: &productType,
})
fmt.Println(response, err)using Bootpay.Commerce;
using Bootpay.Commerce.Models;
var commerce = new BootpayCommerceApi("{client_key}", "{secret_key}");
var response = await commerce.InvoiceList(new InvoiceListParams {
ProductType = 1, // 빼면 빈 목록 — 위 알려진 문제
Page = 1,
Limit = 20
});
Console.WriteLine(await response.Content.ReadAsStringAsync());링크페이 상태 (status)
목록 응답의 status 는 아래 값(숫자)으로 옵니다. 링크페이 상세는 키(문자열)로 옵니다.
| 키 | 값 | 설명 |
|---|---|---|
invoice_available | 1 | 결제 가능 (링크 생성 후 결제 대기) |
invoice_order_completed | 2 | 주문 완료 |
invoice_order_cancelled | 3 | 주문 취소 |
invoice_deleted | -1 | 판매자가 삭제 |
invoice_expired | -2 | 유효기간이 지난 링크 |
invoice_product_unavailable | -3 | 판매 불가 상품이 포함됨 |
invoice_abandoned | -10 | 고객이 결제하지 않고 이탈 |
응답
성공 응답
JSON
{
"count": 45,
"status_counts": {
"waiting": 12,
"paid": 30,
"unpaid": 3
},
"list": [
{
"invoice_id": "687a1b2c3d4e5f6789012345",
"name": "프리미엄 서비스 결제",
"price": 50000,
"status": 1,
"invoice_url": "https://i.bootpay.co.kr/i/{client_key}/687a1b2c3d4e5f6789012345",
"expired_at": "2025-07-18 00:00:00",
"c_at": "2025-07-11T11:52:09+09:00"
}
]
}status_counts 는 상태별 건수입니다 — waiting 결제 가능, paid 주문 완료, unpaid 기간 만료+이탈. user_id 로 조회하면 user 에 그 고객 정보가 함께 옵니다.