플랫폼 API란
상위 판매사가 여러 하위 판매사를 입점시켜 관리하는 형태를 말합니다.
이는 PODSHOP 과 사전 계약을 통해 진행이 가능합니다.
목차
1. 하위 채널 생성
POST /ac/api/external/channel
Body Parameter
Name | 필수여부 | Type | |
inflowPath | Y | String | 유입경로 |
externalId | Y | String | 채널연동식별자 |
channelName | String | 채널명 | |
businessRegistrationNumber | String | 사업자번호 | |
representativeName | String | 대표자명 | |
phoneNumber | String | 연락처 | |
email | Y | String | 이메일 |
userName | Y | String | 사용자명 |
•
요청예시
curl --location 'https://dev-api.pod.shop/ac/api/external/channel' --header 'Authorization: [인증코드]' \
--header 'Content-Type: application/json' \
--data '{
"inflowPath": "representativeChannel",
"externalId" : "connectedUniqueKey",
"email" : "pod@pod.shop",
"userName" : "user"
}'
Shell
복사
Response
Name | 필수여부 | Type | |
externalId | String | 채널연동식별자 | |
clientId | String | 채널 API Client Id | |
clientSecret | String | 채널 API Client Secret |
•
응답예시
{
"externalId": "test",
"clientId": "ueasfvezjzqx",
"clientSecret": "1rHasfuCS7N4Yf4ZOH98g67MDC"
}
JSON
복사
2. 하위 채널 정보 확인
GET /ac/api/external/channel
•
요청예시
curl --location 'https://dev-admin-api.pod.shop/ac/api/external/channel' \
--header 'Authorization: Bearer eyJhbGciOiJE' \
--header 'Content-Type: application/json'
Shell
복사
Response
Name | 필수여부 | Type | |
externalId | String | 채널연동식별자 | |
clientId | String | 채널 API Client Id | |
clientSecret | String | 채널 API Client Secret |
•
응답예시
[
{
"externalId":"gson",
"clientId":"dekzigwjcmkx",
"clientSecret":"k2qUoaqJCJNGTp1ppbKgKJKDi"
},{
"externalId":"json",
"clientId":"qfdeaoaegcsa",
"clientSecret":"bywxAn8NzoobSF432rrYqfUsPcllh"
},{
"externalId":"bisonu",
"clientId":"ueihyvezjzqx",
"clientSecret":"1rHFPPIAd8ffwYf4ZOH98g67MDC"
}
]
JSON
복사