견적서 항목 생성
curl --request POST \
--url https://openapi.pluuug.com/v1/estimate/item \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"title": "<string>",
"unitCost": "<string>",
"unit": "<string>",
"description": "<string>",
"classification": {
"id": 123
}
}
'import requests
url = "https://openapi.pluuug.com/v1/estimate/item"
payload = {
"title": "<string>",
"unitCost": "<string>",
"unit": "<string>",
"description": "<string>",
"classification": { "id": 123 }
}
headers = {
"X-API-Key": "<api-key>",
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
unitCost: '<string>',
unit: '<string>',
description: '<string>',
classification: {id: 123}
})
};
fetch('https://openapi.pluuug.com/v1/estimate/item', 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://openapi.pluuug.com/v1/estimate/item",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'unitCost' => '<string>',
'unit' => '<string>',
'description' => '<string>',
'classification' => [
'id' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Signature: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openapi.pluuug.com/v1/estimate/item"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"unitCost\": \"<string>\",\n \"unit\": \"<string>\",\n \"description\": \"<string>\",\n \"classification\": {\n \"id\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.pluuug.com/v1/estimate/item")
.header("X-API-Key", "<api-key>")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"unitCost\": \"<string>\",\n \"unit\": \"<string>\",\n \"description\": \"<string>\",\n \"classification\": {\n \"id\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.pluuug.com/v1/estimate/item")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"unitCost\": \"<string>\",\n \"unit\": \"<string>\",\n \"description\": \"<string>\",\n \"classification\": {\n \"id\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"unitCost": "<string>",
"unit": "<string>",
"image": "<string>",
"description": "<string>",
"classification": {
"id": 123,
"title": "<string>"
}
}{
"nonField": [
"<string>"
],
"title": [
"<string>"
],
"unitCost": [
"<string>"
],
"unit": [
"<string>"
],
"description": [
"<string>"
],
"classification": {
"id": [
"<string>"
]
}
}견적서
견적서 항목 템플릿 생성
새 견적서 항목을 생성합니다. classification.id로 분류를 지정합니다(별도 분류 목록 API 참조). 단가(unit_cost), 단위(unit), 설명 등 필드는 스키마의 help_text 참조.
POST
/
v1
/
estimate
/
item
견적서 항목 생성
curl --request POST \
--url https://openapi.pluuug.com/v1/estimate/item \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Signature: <api-key>' \
--data '
{
"title": "<string>",
"unitCost": "<string>",
"unit": "<string>",
"description": "<string>",
"classification": {
"id": 123
}
}
'import requests
url = "https://openapi.pluuug.com/v1/estimate/item"
payload = {
"title": "<string>",
"unitCost": "<string>",
"unit": "<string>",
"description": "<string>",
"classification": { "id": 123 }
}
headers = {
"X-API-Key": "<api-key>",
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '<string>',
unitCost: '<string>',
unit: '<string>',
description: '<string>',
classification: {id: 123}
})
};
fetch('https://openapi.pluuug.com/v1/estimate/item', 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://openapi.pluuug.com/v1/estimate/item",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'unitCost' => '<string>',
'unit' => '<string>',
'description' => '<string>',
'classification' => [
'id' => 123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Signature: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openapi.pluuug.com/v1/estimate/item"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"unitCost\": \"<string>\",\n \"unit\": \"<string>\",\n \"description\": \"<string>\",\n \"classification\": {\n \"id\": 123\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.pluuug.com/v1/estimate/item")
.header("X-API-Key", "<api-key>")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"unitCost\": \"<string>\",\n \"unit\": \"<string>\",\n \"description\": \"<string>\",\n \"classification\": {\n \"id\": 123\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.pluuug.com/v1/estimate/item")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"unitCost\": \"<string>\",\n \"unit\": \"<string>\",\n \"description\": \"<string>\",\n \"classification\": {\n \"id\": 123\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"title": "<string>",
"unitCost": "<string>",
"unit": "<string>",
"image": "<string>",
"description": "<string>",
"classification": {
"id": 123,
"title": "<string>"
}
}{
"nonField": [
"<string>"
],
"title": [
"<string>"
],
"unitCost": [
"<string>"
],
"unit": [
"<string>"
],
"description": [
"<string>"
],
"classification": {
"id": [
"<string>"
]
}
}Authorizations
HMAC-SHA256 방식으로 body를 secret key로 해싱하여 생성한 서명을 넣어야 합니다. 서버는 X-API-Key와 대응되는 secret key로 서명을 검증합니다.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
제목
Maximum string length:
256단위당 비용
Pattern:
^-?\d{0,28}(?:\.\d{0,2})?$단위
Maximum string length:
8설명
Maximum string length:
2048분류
Show child attributes
Show child attributes
⌘I