링크페이 재발송
이미 만든 링크페이를 고객에게 다시 보냅니다. 결제 안내는 알림톡 · 문자 · 이메일 중에서 아래 send_types 로 골라 보냅니다.
API 엔드포인트
알림 유형 (send_types)
send_types 배열에 넣는 값입니다. 숫자로 보냅니다.
| 값 | 채널 | 설명 |
|---|---|---|
1 | 알림톡 (카카오) | 카카오 알림톡 발송 |
2 | 문자 | SMS/LMS 문자 메시지 발송 |
3 | 이메일 | 이메일 발송 |
요청 파라미터
요청 파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
| invoice_id | String | Y | 링크페이 ID (URL 파라미터) |
| send_types | Array | Y | 알림 유형 배열 (1: 알림톡, 2: 문자, 3: 이메일 — 위 표 참고) |
코드 예제
curl -X POST "https://api.bootapi.com/v1/invoices/687a1b2c3d4e5f6789012345/notify" \
-H "Authorization: Basic {base64(client_key:secret_key)}" \
-H "Content-Type: application/json" \
-d '{
"send_types": [2, 3]
}'import { BootpayCommerce } from '@bootpay/backend-js';
const commerce = new BootpayCommerce({
client_key: '{client_key}',
secret_key: '{secret_key}'
});
const response = await commerce.invoice.notify(
'687a1b2c3d4e5f6789012345',
[2, 3] // 문자, 이메일
);
console.log(response);from bootpay_backend.commerce import BootpayCommerce
commerce = BootpayCommerce('{client_key}', '{secret_key}')
response = commerce.invoice.notify(
'687a1b2c3d4e5f6789012345',
[2, 3] # 문자, 이메일
)
print(response)use Bootpay\ServerPhp\BootpayCommerceApi;
$commerce = new BootpayCommerceApi("{client_key}", "{secret_key}");
$response = $commerce->invoice->notify(
'687a1b2c3d4e5f6789012345',
[2, 3] // 문자, 이메일
);
print_r($response);import kr.co.bootpay.store.BootpayStore;
import kr.co.bootpay.store.model.request.TokenPayload;
import java.util.Arrays;
TokenPayload tokenPayload = new TokenPayload("{client_key}", "{secret_key}");
BootpayStore commerce = new BootpayStore(tokenPayload).withToken();
var response = commerce.invoice.notify(
"687a1b2c3d4e5f6789012345",
Arrays.asList(2, 3) // 문자, 이메일
);
System.out.println(response.getData());require 'bootpay'
commerce = BootpayStore::RestClient.new(client_key: '{client_key}', secret_key: '{secret_key}')
response = commerce.invoice_notify(
invoice_id: '687a1b2c3d4e5f6789012345',
send_types: [2, 3] # 문자, 이메일
)
puts response.datacommerce := bootpay.NewCommerceAPI("{client_key}", "{secret_key}", nil, "production")
response, err := commerce.Invoice.Notify(
"687a1b2c3d4e5f6789012345",
[]int{2, 3}, // 문자, 이메일
)
fmt.Println(response, err)using Bootpay.Commerce;
using System.Collections.Generic;
var commerce = new BootpayCommerceApi("{client_key}", "{secret_key}");
var response = await commerce.InvoiceNotify(
"687a1b2c3d4e5f6789012345",
new List<int> { 2, 3 } // 문자, 이메일
);
Console.WriteLine(await response.Content.ReadAsStringAsync());응답
성공 응답
JSON
{
"status": 200,
"message": "발송이 완료되었습니다."
}에러 응답
HTTP 상태 코드(404)는 헤더로 오고, 본문에는 코드 이름이 문자열로 옵니다.
JSON
{
"error_code": "INVOICE_NOT_FOUND",
"message": "링크페이 정보가 없습니다"
}에러 코드
오류 코드
| 코드 | 메시지 | 대처 방법 |
|---|---|---|
INVOICE_NOT_FOUND | 링크페이 정보가 없습니다 | invoice_id를 확인합니다 |
INVOICE_DENIED | 링크페이 정보에 조회권한이 없는 회원세션입니다 | 올바른 API 키를 사용하고 있는지 확인합니다 |