발송내역 목록
발송 상태와 실패 사유를 목록으로 조회합니다. 유료 알림톡만 조회되고 무료 커머스 알림톡은 포함되지 않습니다.
요청 파라미터
요청 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
| template_code | String | N | 템플릿 코드로 필터링 |
| status | String | N | requested·success·failed·canceled. 그 밖의 값은 오류 없이 무시되어 전체가 조회됩니다 |
| ref_id | String | N | 발송할 때 넘긴 멱등 키 |
| to | String | N | 수신번호 (하이픈 무관, 정확 매칭) |
| s_at | String | N | 조회 시작 시각 (ISO8601). 접수 시각(created_at) 기준입니다 — 예약 시각·발송 시각이 아닙니다 |
| e_at | String | N | 조회 종료 시각 (ISO8601) |
| page | Integer | N | 페이지 번호 (기본 1) |
| limit | Integer | N | 페이지 크기 (기본 20, 최대 100) |
코드 예제
curl -X GET "https://message.bootapi.com/alimtalk/messages?status=failed&limit=20" \
-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.alimtalkMessage.list({ status: 'failed', limit: 20 })
console.log(response.count)from bootpay_backend import BootpayCommerce
commerce = BootpayCommerce(
client_key='your-commerce-client-key',
secret_key='your-commerce-secret-key',
mode='production'
)
response = commerce.alimtalk_message.list({
'status': 'failed',
'limit': 20
})
print(response['count'])use Bootpay\ServerPhp\BootpayCommerceApi;
$commerce = new BootpayCommerceApi("your-commerce-client-key", "your-commerce-secret-key");
$response = $commerce->alimtalkMessage->getList([
'status' => 'failed',
'limit' => 20
]);
echo $response->count;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.alimtalk.AlimtalkMessageListParams;
TokenPayload tp = new TokenPayload("your-commerce-client-key", "your-commerce-secret-key");
BootpayStore commerce = new BootpayStore(tp).withToken();
AlimtalkMessageListParams params = new AlimtalkMessageListParams();
params.status = "failed";
params.limit = 20;
BootpayStoreResponse response = commerce.alimtalkMessage.list(params);
System.out.println(response.getData().get("count"));require 'bootpay'
commerce = BootpayStore::RestClient.new(client_key: 'your-commerce-client-key', secret_key: 'your-commerce-secret-key')
response = commerce.alimtalk_message_list(status: 'failed', limit: 20)
puts response.data[:count]import "github.com/bootpay/backend-go/v2"
commerce := bootpay.NewCommerceAPI("your-commerce-client-key", "your-commerce-secret-key", nil, "production")
response, err := commerce.AlimtalkMessage.List(&bootpay.AlimtalkMessageListParams{
Status: "failed",
Limit: 20,
})
fmt.Println(response, err)using Bootpay.Commerce;
using Bootpay.Commerce.Models;
using Newtonsoft.Json.Linq;
var commerce = new BootpayCommerceApi("your-commerce-client-key", "your-commerce-secret-key");
var response = await commerce.AlimtalkMessageList(new AlimtalkMessageListParams {
Status = "failed",
Limit = 20
});
var body = JObject.Parse(await response.Content.ReadAsStringAsync());
Console.WriteLine(body["count"]);응답
JSON
{
"list": [
{
"receipt_id": "68b0f2a1c3d4e5f6a7b8c9d0",
"ref_id": "order-20260827-0001",
"to": "01012345678",
"template_code": "G_RESTOCK_NOTICE_user",
"status": "success",
"error_code": null,
"error_message": null,
"reserved_at": null,
"executed_at": "2026-08-27 10:00:03 +0900",
"delivered_at": "2026-08-27 10:00:05 +0900",
"created_at": "2026-08-27 10:00:00 +0900"
}
],
"count": 1,
"page": 1,
"per": 20,
"period": {
"from": "2026-07-28 10:00:00 +0900",
"to": "2026-08-27 10:00:00 +0900"
}
}| 필드 | 설명 |
|---|---|
| status | requested·success·failed·canceled |
| error_code · error_message | 실패 사유 (벤더 코드) |
| executed_at | 전송을 시도한 시각 |
| delivered_at | 전달이 확인된 시각 |
| period | 실제로 적용된 조회 구간 |
시각 필드 형식은 응답의 시각 형식을 참고합니다.
상태가 requested 에서 안 바뀐다면
상태는 벤더 결과 동기화로 확정됩니다. 접수 직후에는 requested 로 보이고 잠시 뒤 success 나 failed 로 바뀝니다. 폴링 대신 발송결과 웹훅을 등록하면 확정 시점에 바로 받을 수 있습니다.