Main API어필리에이트 API
GET /ai/appiliate/{appiliateId}
어필리에이트 상품 상세 조회
어필리에이트 상품 상세 조회
상품 상세 정보를 조회합니다. 권한에 따라 UTM 링크 처리가 다릅니다.
- 크리에이터 (인증): UTM 링크 자동 발급
- 일반 사용자: 상품 정보만 반환
| 항목 | 값 |
|---|---|
| 메서드 | GET |
| 경로 | /ai/appiliate/{appiliateId} |
| 인증 | 부분적 |
요청
GET /ai/appiliate/{appiliateId}
Authorization: Bearer {access_token} # 선택Path Parameters
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
appiliateId | long | 예 | 상품 ID |
Query Parameters
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
creator | string | 아니오 | 크리에이터 ID |
utm_source | string | 아니오 | UTM 소스 |
utm_medium | string | 아니오 | UTM 미디엄 |
utm_campaign | string | 아니오 | UTM 캠페인 |
utm_content | string | 아니오 | UTM 콘텐츠 |
응답
성공 응답 (200 OK)
{
"status": 200,
"code": null,
"message": "어필리에이트 상품 상세 조회 성공",
"data": {
"id": 1,
"title": "상품명",
"description": "상품 설명",
"thumbnailImage": "https://...",
"productImages": ["https://..."],
"brandName": "브랜드명",
"originalPrice": 50000,
"salePrice": 45000,
"commissionRate": 10,
"endDate": "2024-02-15",
"productUrl": "https://...",
"creatorLink": "https://...?utm_source=glowb&utm_medium=affiliate&..."
}
}creatorLink는 인증된 크리에이터에게만 발급됩니다.