LUCELAATELIER🔔

주문 생성

전체 주소POST https://apis.lucela.kr/v1/atelier/digital/orders경로POST /v1/atelier/digital/orders
openapi.json
{
  "/v1/atelier/digital/orders": {
    "post": {
      "tags": [
        "디지털 콘텐츠 API"
      ],
      "summary": "주문 생성",
      "description": "상품 번호 → 주문 한 건 · 결제창 주소(결제는 손님이 결제창에서)",
      "operationId": "post_v1_atelier_digital_orders",
      "x-lucela-mcp-tool": "atelier_digital.create_order",
      "security": [
        {
          "AtelierProductToken": [
            "atelier.purchases:write"
          ]
        },
        {
          "ApiKey": []
        }
      ],
      "x-implementation-status": "AVAILABLE",
      "x-lucela-billing-unit": "과금 없음",
      "x-lucela-unit-weight": 0,
      "x-lucela-response-fields": "data(orderId · state · amount · currency · seller · items[] · checkoutUrl · checkoutExpiresIn) · meta(request_id · schema_version · warnings)",
      "x-lucela-prodreg": true,
      "x-lucela-scope": "atelier.purchases:write",
      "responses": {
        "200": {
          "description": "성공 — 봉투 한 모양",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Envelope"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "data": {
                        "type": "object",
                        "properties": {
                          "orderId": {},
                          "state": {},
                          "amount": {},
                          "currency": {},
                          "seller": {},
                          "items": {
                            "type": "array",
                            "items": {}
                          },
                          "checkoutUrl": {},
                          "checkoutExpiresIn": {}
                        },
                        "required": [
                          "orderId",
                          "state",
                          "amount",
                          "currency",
                          "seller",
                          "items",
                          "checkoutUrl",
                          "checkoutExpiresIn"
                        ]
                      },
                      "meta": {
                        "type": "object",
                        "properties": {
                          "request_id": {},
                          "schema_version": {},
                          "warnings": {}
                        },
                        "required": [
                          "request_id",
                          "schema_version",
                          "warnings"
                        ]
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "400": {
          "$ref": "#/components/responses/E400"
        },
        "401": {
          "$ref": "#/components/responses/E401"
        },
        "403": {
          "$ref": "#/components/responses/E403"
        },
        "409": {
          "$ref": "#/components/responses/E409"
        },
        "413": {
          "$ref": "#/components/responses/E413"
        },
        "422": {
          "$ref": "#/components/responses/E422"
        },
        "429": {
          "$ref": "#/components/responses/E429"
        },
        "503": {
          "$ref": "#/components/responses/E503"
        }
      },
      "parameters": [
        {
          "name": "Idempotency-Key",
          "in": "header",
          "required": true,
          "schema": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{16,128}$"
          }
        }
      ],
      "requestBody": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "productIds": {
                  "description": "상품 번호 1~20개 · 판매자 한 명"
                },
                "returnUrl": {
                  "description": "결제 뒤 돌아갈 아틀리에 주소 · 상대 경로 또는 https://shop.lucela.kr · https://shop-m.lucela.kr"
                }
              },
              "required": [
                "productIds"
              ],
              "additionalProperties": false
            }
          }
        }
      }
    }
  }
}