AQR API Reference
다양한 페이. SNS 링크. 간편 송금.
'하나의 QR과 URL에'
AQR 개발자를 위한 API 사용법과 예제코드를 제공합니다.
개발자 Token 발급 받기
API 사용을 위해 AQR 개발자 Token을 발급 받으세요.
AQR API는 AQR 개발자 Token을 파라미터로 입력해야 사용할 수 있습니다.
AQR 서비스의 "Advanced" 등급 또는 제휴사에 한해서 개발자 Token을 제공합니다.
개발자 Token은 아래의 AQR Square(페이지 관리 사이트)에 가입 및 로그인 후 화면의 우측 상단 "개인정보수정" 메뉴에서 확인 할 수 있습니다.
공통 사항
모든 API 는 같은 주소로 POST 요청을 보내고, 본문의 action 값으로 기능을 고릅니다.
API 를 호출하는 서버의 IP 가 AQR 에 등록되어 있어야 합니다. 등록되지 않은 IP 에서 호출하면 403 으로 거절합니다.
개발자 Token 이 드러나지 않도록 브라우저가 아닌 서버에서 호출하세요.
| 항목 | 설명 | 타입 |
|---|---|---|
| POST https://aplx.link/api/ | 모든 API 의 주소입니다. | - |
| AQR-DEVELOPER-TOKEN | 헤더 — 부여받은 개발자 Token | String |
| action | 본문 — 기능 이름 (create / delete / list / detail / update / update_qr_style / create_bulk / delete_bulk / slot_count / stats) | String |
| email_address | 본문 — 가입시 입력한 이메일 주소. Token 과 함께 회원을 확인합니다. | String |
본문은 application/x-www-form-urlencoded 로 보냅니다. 파일을 함께 보낼 때(QR 스타일 업데이트)만 multipart/form-data 를 씁니다.
응답은 JSON 이며, 처리 결과에 맞는 HTTP 상태 코드(Errors)를 함께 보냅니다.
| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패) | Integer |
| data | 기능별 결과 데이터 (없는 기능도 있습니다) | Object |
페이지를 생성하면 받게되는 고유한 값입니다. 목록 · 상세 응답에도 들어 있습니다. 내 페이지가 아니거나 없는 uniq_keyword 를 보내면 404 로 답합니다.
목록 · 상세 · 수정 응답에 쓰이는 페이지 정보입니다. 목록에는 기본 항목만, 상세와 수정 응답에는 상세 항목까지 들어 있습니다.
| 항목명 | 설명 | 타입 |
|---|---|---|
| uniq_keyword | 페이지 ID — 조회 · 수정 · 삭제 시 사용합니다. | String |
| short_url | 페이지 고유 URL | String |
| qr_image | QR 이미지 다운로드 경로 | String |
| account_number | 계좌번호 | String |
| bank_id | 은행 ID (은행 ID 테이블). 목록에 없는 은행이면 -1 | Integer |
| bank_name | 은행명 | String |
| account_owner | 예금주 명 | String |
| account_name | 페이지 이름 | String |
| bank_branch_name | 은행 지점명 | String |
| mask_owner | 예금주명 일부 감추기 (Y / N) | String |
| account_visible | 계좌 정보 표시 (Y / N) | String |
| template_name | 템플릿 이름 (default / wedding / condolence / others / etc / custom.*) | String |
| timeout_stamp | 페이지 표시 기한 (Unix time, 밀리초). 0 이면 기한 없음 | Integer |
| manage_duedate | 슬롯 만료일 (Unix time, 밀리초). 0 이면 만료 없는 무료 슬롯 | Integer |
| price | 입금 요청 금액. 빈 값이면 없음 | String |
| tag | 검색용 태그 | String |
| regdate | 등록 시각 (Unix time, 밀리초) | Integer |
| last_update | 마지막 수정 시각 (Unix time, 밀리초) | Integer |
| 항목명 | 설명 | 타입 |
|---|---|---|
| phone_number | 예금주 전화번호 | String |
| advanced_url_name | 고급 고유 URL 이름 (없으면 빈 값) | String |
| lib_url | 링크 버튼 설정 (JSON 문자열, 형식) | String |
| pay_list | 페이앱 설정 (JSON 문자열, 형식) | String |
| receipt_email | 현금영수증 요청 설정 (JSON 문자열, 형식) | String |
| template_params | 템플릿 상세 설정 (JSON 문자열) | String |
| qr_style | {"fgcolor","bgcolor","shape"} 형식의 QR 스타일 (JSON 문자열) | String |
| icon_image_url | 페이지 아이콘 이미지 주소 (없으면 빈 값) | String |
| qr_icon_image_url | QR 가운데 이미지 주소 (없으면 빈 값) | String |
아래 항목은 JSON 을 문자열로 만들어 보냅니다. 상세 조회로 받은 값을 고쳐 보내면 가장 안전합니다.
| 항목명 | 설명 | 타입 |
|---|---|---|
| lib_url | {"data":[{"kind":"etc","title":"버튼 이름","url":"https://..."}]} kind : etc(일반 링크) · phone(전화, url 에 번호) · email(url 에 이메일) · text(글자만, url 없음) · like(좋아요, 1개만) · youtube_embed(YouTube 주소) 등. title 은 100자, url 은 255자 이내입니다. |
JSON |
| pay_list | {"kakao_pay":"https://qr.kakaopay.com/...", "paypal_pay":"https://paypal.me/... 또는 이메일"} — 쓰는 페이앱만 넣습니다. | JSON |
| receipt_email | {"url":"받을 이메일 또는 https://주소", "items":["email","citizen"]} — items 는 요청 화면에서 받을 항목입니다. | JSON |
페이지 생성/삭제
페이지 생성하기
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "create"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| account_number | 계좌 번호를 입력합니다. | Y | String | 30 |
| bank_id | 은행 ID를 입력합니다. (아래 은행 ID 테이블 참조) | Y | Integer | - |
| account_owner | 예금주 명을 입력합니다. | Y | String | 50 |
| phone_number | 예금주의 전화번호를 입력합니다. | Y | String | 20 |
| account_name | 생성할 페이지의 이름을 입력합니다. | Y | String | 100 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-H "Content-type: application/x-www-form-urlencoded" \
-X POST \
-d 'email_address=<EMAILID>&account_number=1234567894321&bank_id=1&account_owner=<OWNER NAME>&phone_number=01012341234&account_name=<ACCOUNT NAME>&action=create' \
https://aplx.link/api/$body['email_address'] = '<EMAILID>';
$body['account_number'] = '1234567894321';
$body['bank_id'] = '1';
$body['account_owner'] = '<OWNER NAME>';
$body['phone_number'] = '01012341234';
$body['account_name'] = '<ACCOUNT NAME>';
$body['action'] = 'create';
$headers = array(
'Content-Type: application/x-www-form-urlencoded',
'AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = curl_exec($ch);
curl_close($ch);
echo $response;var formdata = new FormData();
formdata.append("email_address", "<EMAILID>");
formdata.append("account_number", "123456789432");
formdata.append("bank_id", "1");
formdata.append("account_owner", "<OWNER NAME>");
formdata.append("phone_number", "01012341234");
formdata.append("account_name", "<ACCOUNT NAME>");
formdata.append("action", "create");
$.ajax({
url: "https://aplx.link/api/",
dataType: "json",
contentType: "application/x-www-form-urlencoded",
crossDomain: true,
cache: false,
data: formdata,
type: "POST",
async: false,
beforeSend: function(request) {
request.setRequestHeader("AQR-DEVELOPER-TOKEN", "<DEVELOPER TOKEN>");
},
success: function(r) {
console.log(JSON.stringify(r));
if (r.result == "success") {
// r.data
}
},
error: function(request, status, error) {
alert("code:" + request.status + "\nmessage:" + request.responseText + "\nerror:" + error);
}
});import requests
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'
}
data = (
"email_address=<EMAILID>"
"&account_number=1234567894321"
"&bank_id=1"
"&account_owner=<OWNER NAME>"
"&phone_number=01012341234"
"&account_name=<ACCOUNT NAME>"
"&action=create"
)
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
response.raise_for_status()
print(response.json())var content = "email_address=" + Uri.EscapeDataString("<EMAILID>");
content += "&account_number=" + Uri.EscapeDataString("1234567894321");
content += "&bank_id=" + Uri.EscapeDataString("1");
content += "&account_owner=" + Uri.EscapeDataString("<OWNER NAME>");
content += "&phone_number=" + Uri.EscapeDataString("01012341234");
content += "&account_name=" + Uri.EscapeDataString("<ACCOUNT NAME>");
content += "&action=" + Uri.EscapeDataString("create");
var url = "https://aplx.link/api/";
byte[] data = Encoding.UTF8.GetBytes(content);
WebRequest request = WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.Headers.Add("AQR-DEVELOPER-TOKEN", "<DEVELOPER TOKEN>");
request.ContentLength = data.Length;
using (Stream stream = request.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
try
{
WebResponse response = await request.GetResponseAsync();
}
catch (WebException webException)
{
}| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| data.qr_image | QR 이미지 다운로드 경로 | String |
| data.short_url | 페이지 고유 URL | String |
| data.uniq_keyword | 페이지 ID — 삭제/수정 시 사용 | String |
{
"result": "success",
"data": {
"qr_image": "https://aplx.link/res?keyword=abcde", // QR 이미지 다운로드 경로
"short_url": "https://aq.gy/abcde", // 페이지 고유 URL
"uniq_keyword": "abcde" // 페이지 ID (삭제/수정시 사용)
}
}
| ID | 은행명 |
|---|---|
| 0 | 카카오뱅크 |
| 1 | 토스뱅크 |
| 2 | 케이뱅크 |
| 3 | 국민은행 |
| 4 | 기업은행 |
| 5 | 농협은행 |
| 6 | 신한은행 |
| 7 | 부산은행 |
| 8 | 우체국 |
| 9 | 새마을금고 |
| 10 | 산업은행 |
| 11 | 우리은행 |
| 12 | 하나은행 |
| 13 | 한국시티은행 |
| 14 | SC제일은행 |
| 15 | 경남은행 |
| 16 | 광주은행 |
| 17 | 대구은행 |
| 18 | 도이치은행 |
| 19 | 뱅크오브아메리카 |
| 20 | 산림조합중앙회 |
| 21 | 저축은행 |
| 22 | 수협은행 |
| 23 | 신협중앙회 |
| 24 | 전북은행 |
| 25 | 제주은행 |
| 26 | 중국건설은행 |
| 27 | 중국공상은행 |
| 28 | 중국은행 |
| 29 | BNP파리바은행 |
| ID | 기관명 |
|---|---|
| 30 | HSBC은행 |
| 31 | JP모간체이스은행 |
| 32 | DB금융투자 |
| 33 | 메리츠증권 |
| 34 | 부국증권 |
| 35 | 교보증권 |
| 36 | 대신증권 |
| 37 | 현대차증권 |
| 38 | 미레에셋증권 |
| 39 | 삼성증권 |
| 40 | 신영증권 |
| 41 | 신한투자증권 |
| 42 | 에스케이증권 |
| 43 | 유안타증권 |
| 44 | 유진투자증권 |
| 45 | 이베스트투자증권 |
| 46 | 케이프투자증권 |
| 47 | 키움증권 |
| 48 | 한국포스증권 |
| 49 | 하나증권 |
| 50 | 하이투자증권 |
| 51 | 한국투자증권 |
| 52 | 한화투자증권 |
| 53 | KB증권 |
| 54 | 다올투자증권 |
| 55 | BNK투자증권 |
| 56 | NH투자증권 |
| 57 | 토스증권 |
| 58 | 카카오페이증권 |
| 59 | IBK투자증권 |
페이지 삭제하기
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "delete"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| uniq_keyword | 페이지 생성시 응답으로 받은 'uniq_keyword' 값을 입력합니다. | Y | String | 20 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-H "Content-type: application/x-www-form-urlencoded" \
-X POST \
-d 'email_address=<EMAILID>&uniq_keyword=abcde&action=delete' \
https://aplx.link/api/$body['email_address'] = '<EMAILID>';
$body['uniq_keyword'] = 'abcde';
$body['action'] = 'delete';
$headers = array(
'Content-Type: application/x-www-form-urlencoded',
'AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = curl_exec($ch);
curl_close($ch);
echo $response;var formdata = new FormData();
formdata.append("email_address", "<EMAILID>");
formdata.append("uniq_keyword", "abcde");
formdata.append("action", "delete");
$.ajax({
url: "https://aplx.link/api/",
dataType: "json",
contentType: "application/x-www-form-urlencoded",
crossDomain: true,
cache: false,
data: formdata,
type: "POST",
async: false,
beforeSend: function(request) {
request.setRequestHeader("AQR-DEVELOPER-TOKEN", "<DEVELOPER TOKEN>");
},
success: function(r) {
console.log(JSON.stringify(r));
if (r.result == "success") {
// success
}
},
error: function(request, status, error) {
alert("code:" + request.status + "\nmessage:" + request.responseText + "\nerror:" + error);
}
});import requests
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'
}
data = "email_address=<EMAILID>&uniq_keyword=abcde&action=delete"
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
response.raise_for_status()
print(response.json())var content = "email_address=" + Uri.EscapeDataString("<EMAILID>");
content += "&uniq_keyword=" + Uri.EscapeDataString("abcde");
content += "&action=" + Uri.EscapeDataString("delete");
var url = "https://aplx.link/api/";
byte[] data = Encoding.UTF8.GetBytes(content);
WebRequest request = WebRequest.Create(url);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.Headers.Add("AQR-DEVELOPER-TOKEN", "<DEVELOPER TOKEN>");
request.ContentLength = data.Length;
using (Stream stream = request.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
try
{
WebResponse response = await request.GetResponseAsync();
}
catch (WebException webException)
{
}| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
{
"result": "success"
}
페이지 조회/수정
페이지 목록 가져오기
내 페이지 목록을 최근 등록 순으로 가져옵니다. 검색어를 주면 은행명 · 예금주 · 페이지 이름 · 태그 · 계좌번호로 찾습니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "list"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| page | 가져올 페이지 번호 (1부터, 기본 1) | N | Integer | - |
| items_per_page | 한 번에 가져올 개수 (기본 10, 최대 100) | N | Integer | - |
| search_key | 검색어. 계좌번호는 전체 번호가 일치해야 찾습니다. | N | String | 100 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=list' \
--data-urlencode 'email_address=<EMAILID>' \
--data-urlencode 'page=1' \
--data-urlencode 'items_per_page=20' \
https://aplx.link/api/$body['action'] = 'list';
$body['email_address'] = '<EMAILID>';
$body['page'] = '1';
$body['items_per_page'] = '20';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "list");
body.append("email_address", "<EMAILID>");
body.append("page", "1");
body.append("items_per_page", "20");
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'list',
'email_address': '<EMAILID>',
'page': '1',
'items_per_page': '20',
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data.pages[] | 페이지 객체 목록 (페이지 객체의 기본 항목) | Array |
| data.page | 현재 페이지 번호 | Integer |
| data.total_pages | 전체 페이지 수 | Integer |
| data.total_count | 조건에 맞는 전체 페이지 수 | Integer |
| data.accounts | 등록된 페이지 수 | Integer |
| data.account_limit | 등록할 수 있는 최대 페이지 수 (슬롯 수) | Integer |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"pages": [
{
"uniq_keyword": "abcde",
"short_url": "https://aq.gy/abcde",
"qr_image": "https://aplx.link/res?keyword=abcde",
"account_number": "1234567894321",
"bank_id": 3,
"bank_name": "국민은행",
"account_owner": "홍길동",
"account_name": "길동상회",
"bank_branch_name": "",
"mask_owner": "N",
"account_visible": "Y",
"template_name": "default",
"timeout_stamp": 0,
"manage_duedate": 0,
"price": "",
"tag": "",
"regdate": 1761190000000,
"last_update": 1761190000000
}
],
"page": 1,
"total_pages": 1,
"total_count": 1,
"accounts": 1,
"account_limit": 3
}
}
페이지 상세정보 가져오기
페이지 하나의 전체 정보를 가져옵니다. 목록의 기본 항목에 더해 링크 버튼 · 페이앱 · 현금영수증 · 템플릿 · QR 스타일 설정과 이미지 주소를 함께 돌려줍니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "detail"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| uniq_keyword | 생성 시 받은 'uniq_keyword' 값을 입력합니다. | Y | String | 20 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=detail' \
--data-urlencode 'email_address=<EMAILID>' \
--data-urlencode 'uniq_keyword=abcde' \
https://aplx.link/api/$body['action'] = 'detail';
$body['email_address'] = '<EMAILID>';
$body['uniq_keyword'] = 'abcde';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "detail");
body.append("email_address", "<EMAILID>");
body.append("uniq_keyword", "abcde");
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'detail',
'email_address': '<EMAILID>',
'uniq_keyword': 'abcde',
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data | 페이지 객체 (기본 항목 + 상세 항목) | Object |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"uniq_keyword": "abcde",
"short_url": "https://aq.gy/abcde",
"qr_image": "https://aplx.link/res?keyword=abcde",
"account_number": "1234567894321",
"bank_id": 3,
"bank_name": "국민은행",
"account_owner": "홍길동",
"account_name": "길동상회",
"bank_branch_name": "",
"mask_owner": "N",
"account_visible": "Y",
"template_name": "default",
"timeout_stamp": 0,
"manage_duedate": 0,
"price": "",
"tag": "",
"regdate": 1761190000000,
"last_update": 1761190000000,
"phone_number": "01012341234",
"advanced_url_name": "",
"lib_url": "{\"data\":[{\"kind\":\"etc\",\"title\":\"홈페이지\",\"url\":\"https://example.com\"}]}",
"pay_list": "",
"receipt_email": "",
"template_params": "",
"qr_style": "{\"fgcolor\":\"#000000\",\"bgcolor\":\"#ffffff\",\"shape\":\"extra-rounded\"}",
"icon_image_url": "",
"qr_icon_image_url": ""
}
}
| HTTP / sendstatus | 설명 |
|---|---|
| 404 / -2 | uniq_keyword 에 해당하는 내 페이지가 없습니다. |
페이지 정보 업데이트
페이지 정보를 수정합니다. 보낸 항목만 바뀌고, 보내지 않은 항목은 지금 값을 그대로 둡니다. 수정에 성공하면 수정된 페이지의 전체 정보를 돌려줍니다.
값을 지우려면 파라미터를 빈 값으로 보내세요. (예: timeout_stamp= → 표시 기한 없음, lib_url= → 링크 버튼 모두 삭제)
계좌 고정 페이지는 계좌번호 · 은행 · 예금주를 바꿀 수 없습니다(403). 페이지 아이콘과 커스텀 템플릿 배경 이미지는 AQR Square 에서만 바꿀 수 있습니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "update"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| uniq_keyword | 생성 시 받은 'uniq_keyword' 값을 입력합니다. | Y | String | 20 |
| account_number | 계좌번호 (숫자, - 는 무시) | N | String | 30 |
| bank_id | 은행 ID (은행 ID 테이블 참조) | N | Integer | - |
| account_owner | 예금주 명 | N | String | 50 |
| account_name | 페이지 이름 | N | String | 100 |
| bank_branch_name | 은행 지점명 | N | String | 100 |
| mask_owner | 예금주명 일부 감추기 (Y / N) | N | String | 1 |
| account_visible | 계좌 정보 표시 (Y / N) | N | String | 1 |
| timeout_stamp | 페이지 표시 기한 (Unix time, 밀리초). 0 또는 빈 값이면 기한 없음 | N | Integer | - |
| price | 입금 요청 금액 (숫자). 빈 값이면 금액 없음 | N | String | 20 |
| lib_url | 링크 버튼 설정 (JSON 문자열, 형식) | N | String | - |
| pay_list | 페이앱 설정 (JSON 문자열, 형식) | N | String | - |
| receipt_email | 현금영수증 요청 설정 (JSON 문자열, 형식) | N | String | - |
| template_params | 템플릿 상세 설정 (JSON 문자열). 상세 조회의 template_params 를 고쳐서 보냅니다. | N | String | 1500 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=update' \
--data-urlencode 'email_address=<EMAILID>' \
--data-urlencode 'uniq_keyword=abcde' \
--data-urlencode 'account_name=길동상회 본점' \
--data-urlencode 'price=10000' \
--data-urlencode 'lib_url={"data": [{"kind": "etc", "title": "홈페이지", "url": "https://example.com"}]}' \
https://aplx.link/api/$body['action'] = 'update';
$body['email_address'] = '<EMAILID>';
$body['uniq_keyword'] = 'abcde';
$body['account_name'] = '길동상회 본점';
$body['price'] = '10000';
$body['lib_url'] = json_encode(array(
'data' => array(
array(
'kind' => 'etc',
'title' => '홈페이지',
'url' => 'https://example.com'
)
)
), JSON_UNESCAPED_UNICODE);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "update");
body.append("email_address", "<EMAILID>");
body.append("uniq_keyword", "abcde");
body.append("account_name", "길동상회 본점");
body.append("price", "10000");
body.append("lib_url", JSON.stringify({
"data": [
{
"kind": "etc",
"title": "홈페이지",
"url": "https://example.com"
}
]
}));
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import json
import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'update',
'email_address': '<EMAILID>',
'uniq_keyword': 'abcde',
'account_name': '길동상회 본점',
'price': '10000',
'lib_url': json.dumps({
"data": [
{
"kind": "etc",
"title": "홈페이지",
"url": "https://example.com"
}
]
}, ensure_ascii=False),
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data | 수정된 페이지 객체 (상세 항목 포함) | Object |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"uniq_keyword": "abcde",
"account_name": "길동상회 본점",
"price": "10000",
"lib_url": "{\"data\":[{\"kind\":\"etc\",\"title\":\"홈페이지\",\"url\":\"https://example.com\"}]}",
"...": "...", // 그 밖의 항목은 상세정보 가져오기와 같습니다
"last_update": 1761193600000
}
}
| HTTP / sendstatus | 설명 |
|---|---|
| 400 / -6 | 값의 형식이 잘못되었습니다. (계좌번호 · 은행 · 링크 버튼 · 영수증 형식 등) |
| 400 / -7 | 사용할 수 없는 페이지 이름입니다. |
| 400 / -8 | 바뀐 항목이 없습니다. |
| 403 / -2 | 계좌 정보를 바꿀 수 없는 페이지입니다. |
| 404 / -2 | uniq_keyword 에 해당하는 내 페이지가 없습니다. |
QR 스타일 업데이트
QR 코드의 점 색 · 배경색 · 점 모양과 가운데 이미지를 바꿉니다. 보낸 항목만 바뀝니다.
가운데 이미지를 바꿀 때는 multipart/form-data 로 보내야 합니다. 1MB 이하의 이미지 파일만 받습니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "update_qr_style"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| uniq_keyword | 생성 시 받은 'uniq_keyword' 값을 입력합니다. | Y | String | 20 |
| fg_color | QR 점 색 (#RRGGBB) | N | String | 7 |
| bg_color | QR 배경색 (#RRGGBB) | N | String | 7 |
| shape | 점 모양 : "dots"(원) / "square"(사각) / "extra-rounded"(둥근 사각) | N | String | 20 |
| qr_icon_image | QR 가운데에 넣을 이미지 파일 (multipart/form-data, 1MB 이하) | N | File | 1MB |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
-F 'action=update_qr_style' \
-F 'email_address=<EMAILID>' \
-F 'uniq_keyword=abcde' \
-F 'fg_color=#1c8b7e' \
-F 'shape=dots' \
-F 'qr_icon_image=@./logo.png' \
https://aplx.link/api/$body['action'] = 'update_qr_style';
$body['email_address'] = '<EMAILID>';
$body['uniq_keyword'] = 'abcde';
$body['fg_color'] = '#1c8b7e';
$body['shape'] = 'dots';
$body['qr_icon_image'] = new CURLFile('./logo.png', 'image/png'); // multipart/form-data 로 보낸다
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const fs = require("fs");
const body = new FormData();
body.append("action", "update_qr_style");
body.append("email_address", "<EMAILID>");
body.append("uniq_keyword", "abcde");
body.append("fg_color", "#1c8b7e");
body.append("shape", "dots");
body.append("qr_icon_image", new Blob([fs.readFileSync("./logo.png")]), "logo.png");
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'update_qr_style',
'email_address': '<EMAILID>',
'uniq_keyword': 'abcde',
'fg_color': '#1c8b7e',
'shape': 'dots',
}
files = {'qr_icon_image': open('./logo.png', 'rb')}
response = requests.post('https://aplx.link/api/', headers=headers, data=data, files=files)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data.uniq_keyword | 페이지 ID | String |
| data.qr_style.fgcolor | QR 점 색 | String |
| data.qr_style.bgcolor | QR 배경색 | String |
| data.qr_style.shape | 점 모양 | String |
| data.qr_image | QR 이미지 다운로드 경로 | String |
| data.qr_icon_image_url | QR 가운데 이미지 주소 (없으면 빈 값) | String |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"uniq_keyword": "abcde",
"qr_style": {
"fgcolor": "#1c8b7e",
"bgcolor": "#ffffff",
"shape": "dots"
},
"qr_image": "https://aplx.link/res?keyword=abcde",
"qr_icon_image_url": "https://aplx.link/res/files/attach/..."
}
}
| HTTP / sendstatus | 설명 |
|---|---|
| 400 / -6 | 색 · 모양 값이나 이미지 파일이 잘못되었습니다. |
| 400 / -8 | 바뀐 항목이 없습니다. |
| 404 / -2 | uniq_keyword 에 해당하는 내 페이지가 없습니다. |
대량 처리 · 슬롯
페이지 정보 대량 생성
여러 페이지를 한 번에 만듭니다. 한 요청의 페이지는 모두 만들어지거나 하나도 만들어지지 않습니다. 어느 항목이 잘못되었는지는 오류 응답의 data.index(0부터)로 알려 줍니다.
한 번에 최대 50개까지 보낼 수 있습니다. 더 많으면 나눠서 보내세요.
비어 있는 슬롯 수보다 많이 보내면 429 로 거절합니다. 먼저 등록 가능한 슬롯 수를 확인하세요.
대량 생성 권한이 있는 계정만 쓸 수 있습니다(없으면 403). 권한은 AQR 에 문의해 주세요.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "create_bulk"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| pages | 만들 페이지 목록 (JSON 배열 문자열). 각 항목은 아래 표를 따릅니다. | Y | String | 50개 |
| 항목명 | 설명 | 타입 |
|---|---|---|
| account_number | 계좌번호 (숫자, - 는 무시) — 필수 | String |
| bank_id | 은행 ID (은행 ID 테이블) — 필수 | Integer |
| account_owner | 예금주 명 — 필수 | String |
| account_name | 페이지 이름 — 필수 | String |
| phone_number | 예금주 전화번호. 생략하면 회원 정보의 전화번호 | String |
| mask_owner | 예금주명 일부 감추기 (Y / N, 기본 N) | String |
| template_name | 템플릿 : "default"(기본) / "wedding"(결혼) / "condolence"(부의) / "others"(기타 축하) / "etc"(프리미엄) | String |
| timeout_stamp | 페이지 표시 기한 (Unix time, 밀리초). 생략하면 기한 없음 | Integer |
| lib_url | 링크 버튼 설정 (형식). 객체 또는 JSON 문자열 | Object |
| tag | 검색용 태그 | String |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=create_bulk' \
--data-urlencode 'email_address=<EMAILID>' \
--data-urlencode 'pages=[{"account_number": "1234567894321", "bank_id": 3, "account_owner": "홍길동", "account_name": "길동상회 1호점"}, {"account_number": "9876543210", "bank_id": 6, "account_owner": "홍길동", "account_name": "길동상회 2호점", "mask_owner": "Y"}]' \
https://aplx.link/api/$body['action'] = 'create_bulk';
$body['email_address'] = '<EMAILID>';
$body['pages'] = json_encode(array(
array(
'account_number' => '1234567894321',
'bank_id' => '3',
'account_owner' => '홍길동',
'account_name' => '길동상회 1호점'
),
array(
'account_number' => '9876543210',
'bank_id' => '6',
'account_owner' => '홍길동',
'account_name' => '길동상회 2호점',
'mask_owner' => 'Y'
)
), JSON_UNESCAPED_UNICODE);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "create_bulk");
body.append("email_address", "<EMAILID>");
body.append("pages", JSON.stringify([
{
"account_number": "1234567894321",
"bank_id": 3,
"account_owner": "홍길동",
"account_name": "길동상회 1호점"
},
{
"account_number": "9876543210",
"bank_id": 6,
"account_owner": "홍길동",
"account_name": "길동상회 2호점",
"mask_owner": "Y"
}
]));
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import json
import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'create_bulk',
'email_address': '<EMAILID>',
'pages': json.dumps([
{
"account_number": "1234567894321",
"bank_id": 3,
"account_owner": "홍길동",
"account_name": "길동상회 1호점"
},
{
"account_number": "9876543210",
"bank_id": 6,
"account_owner": "홍길동",
"account_name": "길동상회 2호점",
"mask_owner": "Y"
}
], ensure_ascii=False),
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data.created_count | 만든 페이지 수 | Integer |
| data.pages[].uniq_keyword | 페이지 ID — 조회/수정/삭제 시 사용 (요청 순서와 같습니다) | String |
| data.pages[].short_url | 페이지 고유 URL | String |
| data.pages[].qr_image | QR 이미지 다운로드 경로 | String |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"created_count": 2,
"pages": [
{ "uniq_keyword": "abcde", "short_url": "https://aq.gy/abcde", "qr_image": "https://aplx.link/res?keyword=abcde" },
{ "uniq_keyword": "fghij", "short_url": "https://aq.gy/fghij", "qr_image": "https://aplx.link/res?keyword=fghij" }
]
}
}
| HTTP / sendstatus | 설명 |
|---|---|
| 400 / -6 | 항목 값이 잘못되었습니다. data.index 가 잘못된 항목의 순번(0부터)입니다. |
| 403 / -1 | 대량 생성 권한이 없습니다. |
| 429 / -7 | 비어 있는 슬롯이 모자랍니다. data.free 가 지금 비어 있는 슬롯 수입니다. |
페이지 대량 삭제
여러 페이지를 한 번에 삭제합니다. 삭제한 페이지의 슬롯은 비워져 다시 쓸 수 있습니다.
지우기 전에 목록 전체가 내 페이지인지 먼저 확인합니다. 하나라도 없으면 아무것도 지우지 않고 404 로 답합니다.
삭제는 페이지마다 확정되므로, 중간에 실패하면 그때까지 지운 페이지는 되돌아가지 않습니다. 응답의 data.deleted 와 data.failed_uniq_keyword 로 어디까지 지웠는지 확인하세요.
삭제는 되돌릴 수 없습니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "delete_bulk"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
| uniq_keywords | 삭제할 페이지의 uniq_keyword 를 쉼표(,)로 이어 입력합니다. 최대 50개 | Y | String | 50개 |
| force | "Y" 이면 연동 계좌 해지에 실패해도 페이지를 삭제합니다. (409 응답을 받았을 때만 사용) | N | String | 1 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=delete_bulk' \
--data-urlencode 'email_address=<EMAILID>' \
--data-urlencode 'uniq_keywords=abcde,fghij' \
https://aplx.link/api/$body['action'] = 'delete_bulk';
$body['email_address'] = '<EMAILID>';
$body['uniq_keywords'] = 'abcde,fghij';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "delete_bulk");
body.append("email_address", "<EMAILID>");
body.append("uniq_keywords", "abcde,fghij");
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'delete_bulk',
'email_address': '<EMAILID>',
'uniq_keywords': 'abcde,fghij',
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data.deleted[] | 삭제한 페이지의 uniq_keyword 목록 | Array |
| data.deleted_count | 삭제한 페이지 수 | Integer |
| data.failed_uniq_keyword | 실패했을 때 멈춘 페이지의 uniq_keyword (실패 응답에만 있음) | String |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"deleted": ["abcde", "fghij"],
"deleted_count": 2
}
}
| HTTP / sendstatus | 설명 |
|---|---|
| 404 / -2 | 목록 중 내 페이지가 아닌 uniq_keyword 가 있습니다. 아무것도 지우지 않았습니다. |
| 409 / -901 | 연동된 계좌 해지에 실패해 멈췄습니다. 확인 후 force=Y 로 다시 요청할 수 있습니다. |
| 500 / -1 | 삭제 중 오류로 멈췄습니다. data.deleted 까지는 삭제되었습니다. |
등록 가능한 페이지 슬롯 수 가져오기
지금 새 페이지를 만들 수 있는 슬롯 수를 가져옵니다. 비어 있는 무료 슬롯과, 아직 만료되지 않은 비어 있는 유료 슬롯을 셉니다.
확인한 뒤 다른 곳에서 페이지를 만들면 수가 줄 수 있습니다. 생성 요청은 그 시점에 다시 확인합니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "slot_count"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=slot_count' \
--data-urlencode 'email_address=<EMAILID>' \
https://aplx.link/api/$body['action'] = 'slot_count';
$body['email_address'] = '<EMAILID>';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "slot_count");
body.append("email_address", "<EMAILID>");
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'slot_count',
'email_address': '<EMAILID>',
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data.free | 지금 페이지를 만들 수 있는 슬롯 수 | Integer |
| data.accounts | 등록된 페이지 수 | Integer |
| data.account_limit | 보유한 전체 슬롯 수 | Integer |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"free": 2,
"accounts": 1,
"account_limit": 3
}
}
통계
페이지 사용 통계 가져오기
내 모든 페이지를 합친 사용 통계를 가져옵니다. AQR Square 의 "페이지 사용 통계" 화면과 같은 값입니다. 전체 기간의 조회 구간별 페이지 수와, 주(일요일~토요일)마다의 조회수 · 좋아요 수를 돌려줍니다.
집계 기준
· 조회수는 QR 코드 주소(short_url)로 들어온 조회만 셉니다. 휴대폰(iOS · Android)이 아닌 기기에서 연 경우는 빼고 셉니다.
· 주는 일요일 0시(한국 시각)에 시작하는 7일입니다. 가장 먼저 만든 페이지의 주부터 이번 주까지 한 주에 한 항목씩 들어 있습니다.
· 삭제한 페이지는 집계에 넣지 않습니다.
https://aplx.link/api/
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| AQR-DEVELOPER-TOKEN | 부여받은 개발자 Token 값을 헤더에 입력합니다. | Y | String | - |
| 파라미터명 | 설명 | 필수 | 타입 | 최대길이 |
|---|---|---|---|---|
| action | "stats"를 입력합니다. | Y | String | 20 |
| email_address | 가입시 입력한 이메일 주소를 입력합니다. | Y | String | 100 |
curl -H "AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>" \
-X POST \
--data-urlencode 'action=stats' \
--data-urlencode 'email_address=<EMAILID>' \
https://aplx.link/api/$body['action'] = 'stats';
$body['email_address'] = '<EMAILID>';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://aplx.link/api/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('AQR-DEVELOPER-TOKEN: <DEVELOPER TOKEN>'));
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($body));
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response['result'] == 'success') {
// $response['data']
}// Node.js 18+ (fetch 내장, async 함수 안에서). 개발자 Token 이 드러나므로 브라우저에서 직접 호출하지 마세요.
const body = new URLSearchParams();
body.append("action", "stats");
body.append("email_address", "<EMAILID>");
const res = await fetch("https://aplx.link/api/", {
method: "POST",
headers: { "AQR-DEVELOPER-TOKEN": "<DEVELOPER TOKEN>" },
body: body
});
const r = await res.json();
if (r.result == "success") {
// r.data
}import requests
headers = {'AQR-DEVELOPER-TOKEN': '<DEVELOPER TOKEN>'}
data = {
'action': 'stats',
'email_address': '<EMAILID>',
}
response = requests.post('https://aplx.link/api/', headers=headers, data=data)
r = response.json()
if r['result'] == 'success':
print(r['data'])| 파라미터명 | 설명 | 타입 |
|---|---|---|
| result | 처리 결과 ("success" 또는 "error") | String |
| message | 처리 결과가 "error"일 경우 오류 내용 | String |
| sendstatus | 결과 코드 (0 = 성공, 음수 = 실패. 아래 Errors 참조) | Integer |
| data.total_pages | 지금 있는 페이지 수 | Integer |
| data.total_likes | 모든 페이지의 좋아요 버튼을 누른 수 (전체 기간) | Integer |
| data.all.one | 전체 기간에 1~2회 조회된 페이지 수 | Integer |
| data.all.three | 전체 기간에 3~9회 조회된 페이지 수 | Integer |
| data.all.ten | 전체 기간에 10회 이상 조회된 페이지 수 | Integer |
| data.all.used | 한 번이라도 조회된 페이지 수 (one + three + ten) | Integer |
| data.all.unused | 한 번도 조회되지 않은 페이지 수 | Integer |
| data.weeks[] | 주별 통계 목록 (오래된 주부터). 항목은 아래 표를 따릅니다. 페이지가 없으면 빈 배열 | Array |
| 항목명 | 설명 | 타입 |
|---|---|---|
| idx | 주 순번 (0부터) | Integer |
| start / end | 그 주의 첫날(일요일) · 마지막 날(토요일). "2026.10.18" 형식 | String |
| year / month / wom | 그 주가 속한 연도 · 월 · 그 달의 몇째 주 (그 주의 수요일 기준) | Integer |
| label | 표시용 이름. 예: "10월 3주" | String |
| total | 그 주가 끝날 때까지 만들어진 페이지 수 (지금 남아 있는 페이지 기준, 누적) | Integer |
| one | 그 주에 1~2회 조회된 페이지 수 | Integer |
| three | 그 주에 3~9회 조회된 페이지 수 | Integer |
| ten | 그 주에 10회 이상 조회된 페이지 수 | Integer |
| sub | 그 주에 한 번이라도 조회된 페이지 수 (one + three + ten) | Integer |
| unused | 그 주에 조회되지 않은 페이지 수 (total - sub) | Integer |
| views | 그 주의 조회수 합계 | Integer |
| likes | 그 주에 좋아요 버튼을 누른 수 | Integer |
{
"result": "success",
"message": "success",
"sendstatus": 0,
"data": {
"total_pages": 3,
"total_likes": 12,
"all": { "one": 1, "three": 1, "ten": 0, "used": 2, "unused": 1 },
"weeks": [
{
"idx": 0,
"start": "2026.10.11",
"end": "2026.10.17",
"year": 2026,
"month": 10,
"wom": 2,
"label": "10월 2주",
"total": 2,
"one": 1,
"three": 0,
"ten": 0,
"sub": 1,
"unused": 1,
"views": 2,
"likes": 0
},
{
"idx": 1,
"start": "2026.10.18",
"end": "2026.10.24",
"year": 2026,
"month": 10,
"wom": 3,
"label": "10월 3주",
"total": 3,
"one": 1,
"three": 1,
"ten": 0,
"sub": 2,
"unused": 1,
"views": 6,
"likes": 12
}
]
}
}
| HTTP / sendstatus | 설명 |
|---|---|
| 500 / -1 | 통계를 만들지 못했습니다. 잠시 후 다시 시도하세요. |
Errors
AQR API에서 사용하는 HTTP 에러 코드입니다.
| Error Code | 설명 |
|---|---|
| 400 | Bad Request — 요청이 잘못되었습니다. |
| 401 | Unauthorized — API 키가 잘못되었습니다. |
| 403 | Forbidden — 관리자 전용 API입니다. |
| 404 | Not Found — 요청한 리소스를 찾을 수 없습니다. |
| 405 | Method Not Allowed — 잘못된 HTTP 메서드를 사용하였습니다. |
| 406 | Not Acceptable — JSON 형식이 아닌 포맷을 요청하였습니다. |
| 410 | Gone — 요청한 리소스가 서버에서 삭제되었습니다. |
| 429 | Too Many Requests — 요청 횟수가 너무 많습니다. 잠시 후 다시 시도하세요. |
| 500 | Internal Server Error — 서버 오류가 발생하였습니다. 잠시 후 다시 시도하세요. |
| 409 | Conflict — 연동된 계좌 해지에 실패했습니다. (페이지 대량 삭제) |
| 503 | Service Unavailable — 서비스 점검 중입니다. 잠시 후 다시 시도하세요. |
응답 본문의 sendstatus 는 실패 이유를 더 자세히 알려 줍니다.
| sendstatus | 설명 |
|---|---|
| 0 | 성공 |
| -1 | 파라미터 누락 · 인증 실패 · 처리 중 오류 |
| -2 | 페이지를 찾을 수 없거나, 바꿀 수 없는 계좌 정보입니다. |
| -5 | 저장 중 오류 |
| -6 | 값의 형식이 잘못되었습니다. |
| -7 | 사용할 수 없는 이름이거나, 등록할 수 있는 슬롯이 모자랍니다. |
| -8 | 바뀐 항목이 없습니다. |
| -901 | 연동된 계좌 해지에 실패했습니다. force=Y 로 다시 요청할 수 있습니다. |