Main API결제 API
GET /ai/payments/{paymentKey}
결제 정보 조회
결제 정보 조회
결제 키값으로 결제 정보를 조회합니다.
| 항목 | 값 |
|---|---|
| 메서드 | GET |
| 경로 | /ai/payments/{paymentKey} |
| 인증 | 필요 |
요청
GET /ai/payments/payment_key_123 HTTP/1.1
Host: api.glowb.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...curl "https://api.glowb.com/ai/payments/payment_key_123" \
-H "Authorization: Bearer {access_token}"const response = await fetch(`/ai/payments/${paymentKey}`, {
headers: {
'Authorization': `Bearer ${accessToken}`
}
});
const paymentInfo = await response.json();Path Parameters
Prop
Type
응답
성공 응답 (200 OK)
{
"status": 200,
"code": null,
"message": "결제 정보 조회 성공",
"data": {
"paymentKey": "payment_key",
"orderId": "ORDER_20240115_001",
"status": "DONE",
"amount": 50000,
"approvedAt": "2024-01-15T10:30:00",
"method": "CARD",
"cardInfo": {
"cardNumber": "****-****-****-1234",
"cardCompany": "신한카드"
}
}
}Response 스키마
Prop
Type
에러 응답
| 상태 코드 | 코드 | 메시지 |
|---|---|---|
| 404 | PAYMENT_NOT_FOUND | 결제 정보를 찾을 수 없습니다 |