# JSON 파일을 통해 아이템 가져오기

지정된 URL을 통해 JSON 파일에서 스토어로 아이템을 가져옵니다. JSON 파일에서 가져오기에 대한 자세한 정보는 설명서를 참조하세요.

Endpoint: POST /v1/projects/{project_id}/import/from_external_file
Version: 2.0.0
Security: basicAuth

## Path parameters:

  - `project_id` (integer, required)
    프로젝트 ID. 이 매개 변수는 프로젝트 이름 옆의 관리자 페이지에서 또는 프로젝트 작업 시 브라우저 주소 표시줄에서 확인할 수 있습니다. URL 형식은 다음과 같습니다: https://publisher.xsolla.com//projects/.
    Example: 44056

## Request fields (application/json):

  - `connector_external_id` (string, required)
    아이템을 가져오기 위한 작업 유형을 지정하는 고정 값입니다.
    Enum: "import_items"

  - `file_url` (string, required)
    JSON 형식의 데이터가 있는 파일의 URL입니다. 파일은 공개 액세스가 가능한 스토리지 서비스에 호스팅되어야 합니다. [ 스토어 > 가상 아이템 > 카탈로그 관리 > 아이템 가져오기(JSON)](https://publisher.xsolla.com/0/projects/0/storefront/import-export/import-items) 섹션의 관리자 페이지에서 파일 템플릿을 다운로드할 수 있습니다.
    Example: "https://my-bucket.s3.amazonaws.com/items.json"

  - `mode` (string)
    가져오기 작업:

가능한 값:
- create - 새 아이템을 추가합니다.
- create_and_update - 새 아이템을 추가하고 기존 항목을 업데이트합니다.
- sync - 새 아이템을 추가하고, 기존 아이템을 업데이트하며, 누락된 아이템을 비활성화합니다.
    Enum: "create", "create_and_update", "sync"

## Response 201 fields (application/json):

  - `import_id` (string)
    Import operation ID. If you encounter difficulties importing the JSON file, report this ID to your Customer Success Manager or send an email to csm@xsolla.com.
    Example: "af9f3638a16e11ef880da2cd677d2d24"

## Response 401 fields (application/json):

  - `statusCode` (integer)
    Example: 401

  - `errorCode` (integer)
    Example: 1020

  - `errorMessage` (string)
    Example: "[0401-1020]: Error in Authentication method occurred"

## Response 422 fields (application/json):

  - `errorCode` (integer)
    Example: 1803

  - `statusCode` (integer)
    Example: 422

  - `errorMessage` (string)
    Example: "[0410-1803]: File content-type doesn't allowed. Allowed content types: application/json; current content type: text/plain"

  - `transactionId` (string)
    Example: "x-x-x-x-transactionId-mock-x-x-x"


