청구서 수정
curl --request PUT \
--url https://api.steppay.kr/api/v1/invoices/{id} \
--header 'Content-Type: application/json' \
--header 'Secret-Token: <api-key>' \
--data '
{
"id": 123,
"customerId": 123,
"products": [
{
"productCode": "<string>",
"priceCode": "<string>",
"minimumQuantity": 123,
"maximumQuantity": 123,
"productName": "<string>",
"price": 123
}
],
"purchaseDeadline": "2023-11-07T05:31:56Z",
"publishMethods": [],
"discount": 1,
"reservationAt": "2023-11-07T05:31:56Z",
"invoicePayMethods": [],
"memoToCustomer": "<string>"
}
'import requests
url = "https://api.steppay.kr/api/v1/invoices/{id}"
payload = {
"id": 123,
"customerId": 123,
"products": [
{
"productCode": "<string>",
"priceCode": "<string>",
"minimumQuantity": 123,
"maximumQuantity": 123,
"productName": "<string>",
"price": 123
}
],
"purchaseDeadline": "2023-11-07T05:31:56Z",
"publishMethods": [],
"discount": 1,
"reservationAt": "2023-11-07T05:31:56Z",
"invoicePayMethods": [],
"memoToCustomer": "<string>"
}
headers = {
"Secret-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Secret-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
customerId: 123,
products: [
{
productCode: '<string>',
priceCode: '<string>',
minimumQuantity: 123,
maximumQuantity: 123,
productName: '<string>',
price: 123
}
],
purchaseDeadline: '2023-11-07T05:31:56Z',
publishMethods: [],
discount: 1,
reservationAt: '2023-11-07T05:31:56Z',
invoicePayMethods: [],
memoToCustomer: '<string>'
})
};
fetch('https://api.steppay.kr/api/v1/invoices/{id}', 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/invoices/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 123,
'customerId' => 123,
'products' => [
[
'productCode' => '<string>',
'priceCode' => '<string>',
'minimumQuantity' => 123,
'maximumQuantity' => 123,
'productName' => '<string>',
'price' => 123
]
],
'purchaseDeadline' => '2023-11-07T05:31:56Z',
'publishMethods' => [
],
'discount' => 1,
'reservationAt' => '2023-11-07T05:31:56Z',
'invoicePayMethods' => [
],
'memoToCustomer' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.steppay.kr/api/v1/invoices/{id}"
payload := strings.NewReader("{\n \"id\": 123,\n \"customerId\": 123,\n \"products\": [\n {\n \"productCode\": \"<string>\",\n \"priceCode\": \"<string>\",\n \"minimumQuantity\": 123,\n \"maximumQuantity\": 123,\n \"productName\": \"<string>\",\n \"price\": 123\n }\n ],\n \"purchaseDeadline\": \"2023-11-07T05:31:56Z\",\n \"publishMethods\": [],\n \"discount\": 1,\n \"reservationAt\": \"2023-11-07T05:31:56Z\",\n \"invoicePayMethods\": [],\n \"memoToCustomer\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Secret-Token", "<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.put("https://api.steppay.kr/api/v1/invoices/{id}")
.header("Secret-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"customerId\": 123,\n \"products\": [\n {\n \"productCode\": \"<string>\",\n \"priceCode\": \"<string>\",\n \"minimumQuantity\": 123,\n \"maximumQuantity\": 123,\n \"productName\": \"<string>\",\n \"price\": 123\n }\n ],\n \"purchaseDeadline\": \"2023-11-07T05:31:56Z\",\n \"publishMethods\": [],\n \"discount\": 1,\n \"reservationAt\": \"2023-11-07T05:31:56Z\",\n \"invoicePayMethods\": [],\n \"memoToCustomer\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.steppay.kr/api/v1/invoices/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Secret-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"customerId\": 123,\n \"products\": [\n {\n \"productCode\": \"<string>\",\n \"priceCode\": \"<string>\",\n \"minimumQuantity\": 123,\n \"maximumQuantity\": 123,\n \"productName\": \"<string>\",\n \"price\": 123\n }\n ],\n \"purchaseDeadline\": \"2023-11-07T05:31:56Z\",\n \"publishMethods\": [],\n \"discount\": 1,\n \"reservationAt\": \"2023-11-07T05:31:56Z\",\n \"invoicePayMethods\": [],\n \"memoToCustomer\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"errorCode": "<string>",
"traceId": "<string>",
"errorMessage": "<string>",
"details": {}
}{
"errorCode": "<string>",
"traceId": "<string>",
"errorMessage": "<string>",
"details": {}
}청구서 API
청구서 수정
청구서를 수정할 때 호출합니다. 파라미터로 전달된 정보로 청구서가 치환됩니다.
PUT
/
api
/
v1
/
invoices
/
{id}
청구서 수정
curl --request PUT \
--url https://api.steppay.kr/api/v1/invoices/{id} \
--header 'Content-Type: application/json' \
--header 'Secret-Token: <api-key>' \
--data '
{
"id": 123,
"customerId": 123,
"products": [
{
"productCode": "<string>",
"priceCode": "<string>",
"minimumQuantity": 123,
"maximumQuantity": 123,
"productName": "<string>",
"price": 123
}
],
"purchaseDeadline": "2023-11-07T05:31:56Z",
"publishMethods": [],
"discount": 1,
"reservationAt": "2023-11-07T05:31:56Z",
"invoicePayMethods": [],
"memoToCustomer": "<string>"
}
'import requests
url = "https://api.steppay.kr/api/v1/invoices/{id}"
payload = {
"id": 123,
"customerId": 123,
"products": [
{
"productCode": "<string>",
"priceCode": "<string>",
"minimumQuantity": 123,
"maximumQuantity": 123,
"productName": "<string>",
"price": 123
}
],
"purchaseDeadline": "2023-11-07T05:31:56Z",
"publishMethods": [],
"discount": 1,
"reservationAt": "2023-11-07T05:31:56Z",
"invoicePayMethods": [],
"memoToCustomer": "<string>"
}
headers = {
"Secret-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Secret-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
customerId: 123,
products: [
{
productCode: '<string>',
priceCode: '<string>',
minimumQuantity: 123,
maximumQuantity: 123,
productName: '<string>',
price: 123
}
],
purchaseDeadline: '2023-11-07T05:31:56Z',
publishMethods: [],
discount: 1,
reservationAt: '2023-11-07T05:31:56Z',
invoicePayMethods: [],
memoToCustomer: '<string>'
})
};
fetch('https://api.steppay.kr/api/v1/invoices/{id}', 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/invoices/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => 123,
'customerId' => 123,
'products' => [
[
'productCode' => '<string>',
'priceCode' => '<string>',
'minimumQuantity' => 123,
'maximumQuantity' => 123,
'productName' => '<string>',
'price' => 123
]
],
'purchaseDeadline' => '2023-11-07T05:31:56Z',
'publishMethods' => [
],
'discount' => 1,
'reservationAt' => '2023-11-07T05:31:56Z',
'invoicePayMethods' => [
],
'memoToCustomer' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.steppay.kr/api/v1/invoices/{id}"
payload := strings.NewReader("{\n \"id\": 123,\n \"customerId\": 123,\n \"products\": [\n {\n \"productCode\": \"<string>\",\n \"priceCode\": \"<string>\",\n \"minimumQuantity\": 123,\n \"maximumQuantity\": 123,\n \"productName\": \"<string>\",\n \"price\": 123\n }\n ],\n \"purchaseDeadline\": \"2023-11-07T05:31:56Z\",\n \"publishMethods\": [],\n \"discount\": 1,\n \"reservationAt\": \"2023-11-07T05:31:56Z\",\n \"invoicePayMethods\": [],\n \"memoToCustomer\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Secret-Token", "<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.put("https://api.steppay.kr/api/v1/invoices/{id}")
.header("Secret-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"customerId\": 123,\n \"products\": [\n {\n \"productCode\": \"<string>\",\n \"priceCode\": \"<string>\",\n \"minimumQuantity\": 123,\n \"maximumQuantity\": 123,\n \"productName\": \"<string>\",\n \"price\": 123\n }\n ],\n \"purchaseDeadline\": \"2023-11-07T05:31:56Z\",\n \"publishMethods\": [],\n \"discount\": 1,\n \"reservationAt\": \"2023-11-07T05:31:56Z\",\n \"invoicePayMethods\": [],\n \"memoToCustomer\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.steppay.kr/api/v1/invoices/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Secret-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 123,\n \"customerId\": 123,\n \"products\": [\n {\n \"productCode\": \"<string>\",\n \"priceCode\": \"<string>\",\n \"minimumQuantity\": 123,\n \"maximumQuantity\": 123,\n \"productName\": \"<string>\",\n \"price\": 123\n }\n ],\n \"purchaseDeadline\": \"2023-11-07T05:31:56Z\",\n \"publishMethods\": [],\n \"discount\": 1,\n \"reservationAt\": \"2023-11-07T05:31:56Z\",\n \"invoicePayMethods\": [],\n \"memoToCustomer\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"errorCode": "<string>",
"traceId": "<string>",
"errorMessage": "<string>",
"details": {}
}{
"errorCode": "<string>",
"traceId": "<string>",
"errorMessage": "<string>",
"details": {}
}Authorizations
Path Parameters
청구서 번호
Query Parameters
Body
application/json
청구서 수정 데이터
청구서 번호
청구서 받을 고객 번호
청구서 상품 및 가격 플랜 목록
Show child attributes
Show child attributes
청구서 발행 타입
Available options:
NOW, RESERVATION 구매 가능 기한
발송 수단 목록
발송 수단 목록
Available options:
KAKAO, SMS, EMAIL 할인 금액
Required range:
x > 0예약 발송 시점
지정 결제 수단
지정 결제 수단
Available options:
CARD, VBANK, BANK, BANK_TRANSFER, CELLPHONE, SIMPLE_PAY, CMS, CARD_BILL, CELLPHONE_BILL, CMS_BILL, PAYPAL 청구서 메모
Response
정상적으로 수정됨
⌘I