고객 목록 조회
v1 API 상세: 회원
등록된 고객 목록을 조회합니다.
API 엔드포인트
요청 파라미터
요청 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
| keyword | String | N | 검색어 — 이름·이메일·전화번호·회원 ID. 정확히 일치해야 합니다 |
| membership_type | Integer | N | 회원 유형 (1: 회원, 2: 비회원). 숫자로 보냅니다 — 보내지 않으면 회원·비회원이 모두 나옵니다 |
| type | String | N | user_group 으로 보내면 keyword 에 그룹 ID 를 넣어 그 그룹의 구성원을 조회합니다 (기본 user) |
| page | Integer | N | 페이지 번호 (기본: 1) |
| limit | Integer | N | 페이지당 데이터 수 (기본: 24, 최대 100) |
코드 예제
curl -X GET "https://api.bootapi.com/v1/users?page=1&limit=20&keyword=홍길동" \
-H "Authorization: Basic {base64(client_key:secret_key)}"import { BootpayCommerce } from '@bootpay/backend-js'
const commerce = new BootpayCommerce({
client_key: 'your-commerce-client-key',
secret_key: 'your-commerce-secret-key',
mode: 'production'
})
const response = await commerce.user.list({
page: 1,
limit: 20,
keyword: '홍길동'
})
console.log(response)from bootpay_backend import BootpayCommerce
commerce = BootpayCommerce(
client_key='your-commerce-client-key',
secret_key='your-commerce-secret-key',
mode='production'
)
response = commerce.user.list({'page': 1, 'limit': 20, 'keyword': '홍길동'})
print(response)use Bootpay\ServerPhp\BootpayCommerceApi;
$commerce = new BootpayCommerceApi("your-commerce-client-key", "your-commerce-secret-key");
$response = $commerce->user->getList([
'page' => 1,
'limit' => 20,
'keyword' => '홍길동'
]);
print_r($response);import kr.co.bootpay.store.BootpayStore;
import kr.co.bootpay.store.model.request.TokenPayload;
import kr.co.bootpay.store.model.request.user.UserListParams;
import kr.co.bootpay.store.model.response.BootpayStoreResponse;
TokenPayload tp = new TokenPayload("your-commerce-client-key", "your-commerce-secret-key");
BootpayStore commerce = new BootpayStore(tp).withToken();
UserListParams params = new UserListParams();
params.page = 1;
params.limit = 20;
params.keyword = "홍길동";
BootpayStoreResponse response = commerce.user.list(params);
System.out.println(response);require 'bootpay'
commerce = BootpayStore::RestClient.new(client_key: 'your-commerce-client-key', secret_key: 'your-commerce-secret-key')
response = commerce.users(
page: 1,
limit: 20,
keyword: '홍길동'
)
puts response.dataimport "github.com/bootpay/backend-go/v2"
commerce := bootpay.NewCommerceAPI("your-commerce-client-key", "your-commerce-secret-key", nil, "production")
response, err := commerce.User.List(&bootpay.UserListParams{
ListParams: bootpay.ListParams{Page: 1, Limit: 20, Keyword: "홍길동"},
})
fmt.Println(response, err)using Bootpay.Commerce;
using Bootpay.Commerce.Models;
var commerce = new BootpayCommerceApi("your-commerce-client-key", "your-commerce-secret-key");
var response = await commerce.UserList(new UserListParams { Page = 1, Limit = 20, Keyword = "홍길동" });
Console.WriteLine(await response.Content.ReadAsStringAsync());응답
성공 응답
JSON
{
"count": 5,
"list": [
{
"user_id": "67e4b4425ec892162491d0ec",
"login_id": "user001",
"name": "홍길동",
"email": "user@example.com",
"phone": "01012345678",
"membership_type": 1,
"status": 1,
"created_at": "2025-03-27T11:13:23+09:00"
}
]
}응답 필드 설명
| 필드 | 타입 | 설명 |
|---|---|---|
count | Integer | 총 고객 수 |
list | Array | 고객 목록 |
└─ user_id | String | 고객 고유 ID |
└─ login_id | String | 로그인 아이디 |
└─ name | String | 고객 이름 |
└─ membership_type | Integer | 회원 유형 (1: 회원, 2: 비회원) |
└─ status | Integer | 계정 상태. 목록에는 활성(1) 고객만 나옵니다 |