curl --request POST \
--url https://api.steppay.kr/api/v1/products/{id}/prices \
--header 'Content-Type: application/json' \
--header 'Secret-Token: <api-key>' \
--data '
{
"price": 10000,
"unit": "회",
"plan": {
"name": "단건 가격플랜 이름",
"description": "단건 가격플랜 설명",
"detailDescription": "단건 가격플랜 상세설명",
"isHiddenFromShop": false,
"adminName": "admin"
},
"type": "ONE_TIME",
"firstSale": {
"enabled": true,
"price": 1000
},
"claim": {
"methodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"provideStartDay": 0
},
"maximumPurchaseQuantity": 0,
"expiryRecurringCount": 0,
"setupOption": {
"name": "가입비",
"type": "INITIALLY",
"price": 500,
"claimMethodType": "PRE"
},
"isRepresentative": false
}
'{
"id": 1,
"code": "string",
"price": 0,
"unit": "string",
"planName": "string",
"planDescription": "string",
"type": "ONE_TIME",
"enabledFirstSalePrice": true,
"firstSalePrice": 0,
"claimMethodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"maximumPurchaseQuantity": 0,
"membershipExpirationDate": 0,
"membershipExpirationDateType": "DAY",
"setupOption": {
"id": 1,
"name": "string",
"type": "INITIALLY",
"price": 0,
"claimMethodType": "PRE"
},
"options": [
{
"id": 1,
"name": "string",
"productCode": "string",
"type": "INITIALLY",
"price": 0,
"priceCode": "string",
"priceName": "string",
"productType": "BOX",
"recurringDTO": {
"id": 1,
"intervalCount": 0,
"aggregateUsageType": "SUM",
"interval": "DAY",
"usageType": "LICENSED"
}
}
],
"volumes": [
{
"id": 1,
"min": 0,
"max": 0,
"price": 0
}
],
"additionalBilling": {
"id": 1,
"type": "USAGE_BASED_WITH_RANGE",
"ranges": [
{
"id": 1,
"until": 0,
"price": 0
}
]
},
"recurring": {
"id": 1,
"intervalCount": 0,
"aggregateUsageType": "SUM",
"interval": "DAY",
"usageType": "LICENSED"
},
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00",
"plan": {
"name": "string",
"description": "string",
"detailDescription": "string",
"isHiddenFromShop": true,
"adminName": "string"
},
"firstSale": {
"enabled": true,
"price": 0
},
"claim": {
"methodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"provideStartDay": 0
},
"basicServing": 0,
"bundlePrices": [
{
"product": {
"id": 1,
"code": "string",
"type": "BOX",
"status": "SALE",
"name": "string",
"subTitle": "string",
"featuredImageUrl": "string",
"imageUrls": [
"string"
],
"description": "string",
"summary": "string",
"reasonOfReject": "string",
"sku": "string",
"quantity": 0,
"combinedProducts": [
{
"code": "string",
"type": "BOX",
"status": "SALE",
"name": "string",
"description": "string",
"options": [
{
"id": 1,
"name": "string",
"options": [
{
"id": 1,
"name": "string",
"quantity": 0,
"price": 0,
"parent": 0
}
],
"depth": 0
}
],
"prices": [
{}
],
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00"
}
],
"optionGroups": [
{
"id": 1,
"name": "string",
"options": [
{
"id": 1,
"name": "string",
"quantity": 0,
"price": 0,
"parent": 0
}
],
"depth": 0
}
],
"useCombination": true,
"optionCombinations": [
{
"id": [
1
],
"quantity": 0,
"price": 0,
"status": "SALE"
}
],
"prices": [
{}
],
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00",
"enabledDemo": true,
"demoPeriod": 0,
"demoPeriodUnit": "DAY",
"categories": [
{
"categoryId": 0,
"name": "string"
}
],
"vendorUuid": "206992bb-6462-4b4f-9847-cf2f40d55b48",
"productOrder": 0,
"isOnetimePurchasable": true,
"eventBadge": [
{
"event": "string",
"startDateTime": "9999-01-01T00:00:00",
"endDateTime": "9999-01-01T00:00:00"
}
],
"notice": "string",
"useWidget": {
"useDemo": true,
"useEventBadge": true,
"useOnetimePurchasable": true,
"useNotice": true
},
"groupId": 0,
"countrySetting": {
"id": 1,
"countryCode": "string",
"timezoneName": "string",
"currencyCode": "string",
"isDefault": true,
"taxRate": 0
}
},
"price": {}
}
],
"onetimeBundlePrice": 0,
"order": 0
}상품 API
가격플랜 생성
가격플랜을 생성할 때 호출합니다.
POST
/
api
/
v1
/
products
/
{id}
/
prices
curl --request POST \
--url https://api.steppay.kr/api/v1/products/{id}/prices \
--header 'Content-Type: application/json' \
--header 'Secret-Token: <api-key>' \
--data '
{
"price": 10000,
"unit": "회",
"plan": {
"name": "단건 가격플랜 이름",
"description": "단건 가격플랜 설명",
"detailDescription": "단건 가격플랜 상세설명",
"isHiddenFromShop": false,
"adminName": "admin"
},
"type": "ONE_TIME",
"firstSale": {
"enabled": true,
"price": 1000
},
"claim": {
"methodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"provideStartDay": 0
},
"maximumPurchaseQuantity": 0,
"expiryRecurringCount": 0,
"setupOption": {
"name": "가입비",
"type": "INITIALLY",
"price": 500,
"claimMethodType": "PRE"
},
"isRepresentative": false
}
'{
"id": 1,
"code": "string",
"price": 0,
"unit": "string",
"planName": "string",
"planDescription": "string",
"type": "ONE_TIME",
"enabledFirstSalePrice": true,
"firstSalePrice": 0,
"claimMethodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"maximumPurchaseQuantity": 0,
"membershipExpirationDate": 0,
"membershipExpirationDateType": "DAY",
"setupOption": {
"id": 1,
"name": "string",
"type": "INITIALLY",
"price": 0,
"claimMethodType": "PRE"
},
"options": [
{
"id": 1,
"name": "string",
"productCode": "string",
"type": "INITIALLY",
"price": 0,
"priceCode": "string",
"priceName": "string",
"productType": "BOX",
"recurringDTO": {
"id": 1,
"intervalCount": 0,
"aggregateUsageType": "SUM",
"interval": "DAY",
"usageType": "LICENSED"
}
}
],
"volumes": [
{
"id": 1,
"min": 0,
"max": 0,
"price": 0
}
],
"additionalBilling": {
"id": 1,
"type": "USAGE_BASED_WITH_RANGE",
"ranges": [
{
"id": 1,
"until": 0,
"price": 0
}
]
},
"recurring": {
"id": 1,
"intervalCount": 0,
"aggregateUsageType": "SUM",
"interval": "DAY",
"usageType": "LICENSED"
},
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00",
"plan": {
"name": "string",
"description": "string",
"detailDescription": "string",
"isHiddenFromShop": true,
"adminName": "string"
},
"firstSale": {
"enabled": true,
"price": 0
},
"claim": {
"methodType": "PRE",
"whenToClaimType": "FIRST_PAYMENT",
"billingDate": 0,
"provideStartDay": 0
},
"basicServing": 0,
"bundlePrices": [
{
"product": {
"id": 1,
"code": "string",
"type": "BOX",
"status": "SALE",
"name": "string",
"subTitle": "string",
"featuredImageUrl": "string",
"imageUrls": [
"string"
],
"description": "string",
"summary": "string",
"reasonOfReject": "string",
"sku": "string",
"quantity": 0,
"combinedProducts": [
{
"code": "string",
"type": "BOX",
"status": "SALE",
"name": "string",
"description": "string",
"options": [
{
"id": 1,
"name": "string",
"options": [
{
"id": 1,
"name": "string",
"quantity": 0,
"price": 0,
"parent": 0
}
],
"depth": 0
}
],
"prices": [
{}
],
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00"
}
],
"optionGroups": [
{
"id": 1,
"name": "string",
"options": [
{
"id": 1,
"name": "string",
"quantity": 0,
"price": 0,
"parent": 0
}
],
"depth": 0
}
],
"useCombination": true,
"optionCombinations": [
{
"id": [
1
],
"quantity": 0,
"price": 0,
"status": "SALE"
}
],
"prices": [
{}
],
"createdAt": "9999-01-01T00:00:00",
"modifiedAt": "9999-01-01T00:00:00",
"enabledDemo": true,
"demoPeriod": 0,
"demoPeriodUnit": "DAY",
"categories": [
{
"categoryId": 0,
"name": "string"
}
],
"vendorUuid": "206992bb-6462-4b4f-9847-cf2f40d55b48",
"productOrder": 0,
"isOnetimePurchasable": true,
"eventBadge": [
{
"event": "string",
"startDateTime": "9999-01-01T00:00:00",
"endDateTime": "9999-01-01T00:00:00"
}
],
"notice": "string",
"useWidget": {
"useDemo": true,
"useEventBadge": true,
"useOnetimePurchasable": true,
"useNotice": true
},
"groupId": 0,
"countrySetting": {
"id": 1,
"countryCode": "string",
"timezoneName": "string",
"currencyCode": "string",
"isDefault": true,
"taxRate": 0
}
},
"price": {}
}
],
"onetimeBundlePrice": 0,
"order": 0
}Body
application/json
가격플랜 생성 데이터
Response
정상적으로 생성됨
가격 플랜 정보