가격플랜 상세 조회
curl --request GET \
--url https://api.steppay.kr/api/v1/products/{id}/prices/{priceId} \
--header 'Secret-Token: <api-key>'import requests
url = "https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}"
headers = {"Secret-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Secret-Token': '<api-key>'}};
fetch('https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Secret-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Secret-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}")
.header("Secret-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Secret-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 1,
"code": "price_AbCdEfGhI",
"price": 10000,
"unit": "회",
"planName": "단건 가격플랜 이름",
"planDescription": "단건 가격플랜 설명",
"type": "ONE_TIME",
"enabledFirstSalePrice": true,
"firstSalePrice": 1000,
"claimMethodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"maximumPurchaseQuantity": 0,
"membershipExpirationDate": 0,
"membershipExpirationDateType": null,
"setupOption": {
"id": 951,
"name": "가입비",
"type": "INITIALLY",
"price": 500,
"claimMethodType": "PRE"
},
"options": [],
"volumes": [],
"additionalBilling": null,
"recurring": null,
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00",
"plan": {
"name": "단건 가격플랜 이름",
"description": "단건 가격플랜 설명",
"detailDescription": "단건 가격플랜 상세설명",
"isHiddenFromShop": false,
"adminName": "admin"
},
"firstSale": {
"enabled": true,
"price": 1000
},
"claim": {
"methodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"provideStartDay": 0
},
"basicServing": 0,
"bundlePrices": [],
"onetimeBundlePrice": 0,
"order": 0
}상품 API
가격플랜 상세 조회
가격플랜의 상세 정보를 반환합니다.
GET
/
api
/
v1
/
products
/
{id}
/
prices
/
{priceId}
가격플랜 상세 조회
curl --request GET \
--url https://api.steppay.kr/api/v1/products/{id}/prices/{priceId} \
--header 'Secret-Token: <api-key>'import requests
url = "https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}"
headers = {"Secret-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Secret-Token': '<api-key>'}};
fetch('https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Secret-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Secret-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}")
.header("Secret-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.steppay.kr/api/v1/products/{id}/prices/{priceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Secret-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 1,
"code": "price_AbCdEfGhI",
"price": 10000,
"unit": "회",
"planName": "단건 가격플랜 이름",
"planDescription": "단건 가격플랜 설명",
"type": "ONE_TIME",
"enabledFirstSalePrice": true,
"firstSalePrice": 1000,
"claimMethodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"maximumPurchaseQuantity": 0,
"membershipExpirationDate": 0,
"membershipExpirationDateType": null,
"setupOption": {
"id": 951,
"name": "가입비",
"type": "INITIALLY",
"price": 500,
"claimMethodType": "PRE"
},
"options": [],
"volumes": [],
"additionalBilling": null,
"recurring": null,
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00",
"plan": {
"name": "단건 가격플랜 이름",
"description": "단건 가격플랜 설명",
"detailDescription": "단건 가격플랜 상세설명",
"isHiddenFromShop": false,
"adminName": "admin"
},
"firstSale": {
"enabled": true,
"price": 1000
},
"claim": {
"methodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"provideStartDay": 0
},
"basicServing": 0,
"bundlePrices": [],
"onetimeBundlePrice": 0,
"order": 0
}Authorizations
Response
정상적으로 조회됨
가격 플랜 정보
가격 플랜 아이디
가격 플랜 코드
가격(기준통화)
플랜 타입
Available options:
ONE_TIME, FLAT, UNIT_BASED, USAGE_BASED, VOLUME_BASED, BUNDLE 첫 구매 할인 적용 여부
첫 구매 할인시 적용되는 할인 금액
후불일 때 결제되는 날짜를 지정한 경우, 지정된 날짜
최대 구매가능 수량
구독 만기 기간
옵션 정보
Show child attributes
Show child attributes
Show child attributes
Show child attributes
기본 제공량 - 계정/사용량 기반 요금 사용시
번들 플랜 - 번들 상품 구성
Show child attributes
Show child attributes
번들 플랜 - 단건 상품 금액
우선 순위
통화별 가격(기준통화 외)
Show child attributes
Show child attributes
단위
플랜명
플랜 설명
선불인지 후불인지 여부
Available options:
PRE, POST 후불인 경우, 언제 결제되는지
Available options:
FIRST_PAYMENT, DATE 구독 만기 기간 단위
Available options:
DAY, WEEK, MONTH, YEAR 기본료 정보
Show child attributes
Show child attributes
추가 과금 정보
Show child attributes
Show child attributes
구독 주기 정보
Show child attributes
Show child attributes
생성된 시점
수정된 시점
가격 플랜 정보
Show child attributes
Show child attributes
첫 구매 할인 정보
Show child attributes
Show child attributes
청구 방식 정보
Show child attributes
Show child attributes