제품 API

프로덕트

제품 생성

상품 설명새 제품 만들기
종점{AnalyticsManagerDataManagerApiAddress}/odata/PostProducts
방법POST
요청 헤더{A토큰}
본문 - FormData키: 제품
값: [
    {
        "제품일련": "제품A1234",
        "이름": "제품 A",
        "가격": "13.00",
        "제품 브랜드 ID": 101,
        "ProductCategoryId": "0B920541-5F2E-EC11-807E-00155DDF9604",
        "Description": "제품 A에 대한 설명 내용",
        "제품바코드": "1111100010101",
        "Unit": "gram", // 측정 단위 표시
        "할인가격": 10.99,
        "ProductPromotionHeader": "좋은 프로모션",
        "UnitNumber": 10, // 제품 가격에 할당된 물리적 단위 수입니다. (예: 10g당 $100, 단위=100)
        "QRCodeLink": "https://product.qr.code.link.com"
    },
    {
        "제품일련": "제품B1234",
        "이름": "제품 B",
        "가격": "23.00",
        "제품 브랜드 ID": 102,
        "ProductCategoryId": "7B84077E-0ABC-EA11-833B-D05099D42A29",
        "Description": "제품 B에 대한 설명 콘텐츠",
        "제품바코드": "2222200010101",
        "Unit": "pair", // 측정 단위 표시
        "할인가격": 19.99,
        "ProductPromotionHeader": "좋은 프로모션",
        "UnitNumber": 1, // 제품 가격에 할당된 물리적 단위 수입니다. (예: 10g당 $100, 단위=100)
        "QRCodeLink": "https://product.qr.code.link.com"
    },
    {
        "제품일련": "제품A1234",
        "이름": "제품 C",
        "가격": "33.00",
        "제품 브랜드 ID": 96,
        "ProductCategoryId": "0D920541-5F2E-EC11-807E-00155DDF9604",
        "Description": "제품 C에 대한 설명 내용",
        "제품바코드": "3333300010101",
        "Unit": "kg", // 측정 단위 표시
        "할인가격": 29.99,
        "ProductPromotionHeader": "좋은 프로모션",
        "UnitNumber": 2, // 제품 가격에 할당된 물리적 단위 수입니다. (예: 10g당 $100, 단위=100)
        "QRCodeLink": "https://product.qr.code.link.com"
    }
]
응답{
    "값": [
        {
            "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604",
            "제품일련": "제품A1234",
            "이름": "제품 A",
            "가격": 13.0,
            "회사 ID": 1,
            "ProductCategoryId": "0b920541-5f2e-ec11-807e-00155ddf9604",
            "Description": "제품 A에 대한 설명 내용",
            "제품 브랜드 ID": 101,
            "제품바코드": "1111100010101",
            "단위": "그램",
            "할인가격": 10.99,
            "ProductPromotionHeader": "좋은 프로모션",
            "단위 번호": 10.0,
            "QrcodeLink": "https://product.qr.code.link.com",
            "LastUpdateDateTime": null,
            "CreatedDateTime": "2021-10-16T16:05:50.6651175Z",
            "EslmiscJson": null,
            "EslactionLogId": null,
            "회사": null,
            "제품 브랜드": null,
            "제품 카테고리": null,
            "EslTags": [],
            "제품 통화 가격": [],
            "ProductCustomPrices": [],
            "ProductDailySales": []
        },
        {
            "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604",
            "제품일련": "제품B1234",
            "이름": "제품 B",
            "가격": 23.0,
            "회사 ID": 1,
            "ProductCategoryId": "7b84077e-0abc-ea11-833b-d05099d42a29",
            "Description": "제품 B에 대한 설명 콘텐츠",
            "제품 브랜드 ID": 102,
            "제품바코드": "2222200010101",
            "단위": "쌍",
            "할인가격": 19.99,
            "ProductPromotionHeader": "좋은 프로모션",
            "단위 번호": 1.0,
            "QrcodeLink": "https://product.qr.code.link.com",
            "LastUpdateDateTime": null,
            "CreatedDateTime": "2021-10-16T16:05:50.6652001Z",
            "EslmiscJson": null,
            "EslactionLogId": null,
            "회사": null,
            "제품 브랜드": null,
            "제품 카테고리": null,
            "EslTags": [],
            "제품 통화 가격": [],
            "ProductCustomPrices": [],
            "ProductDailySales": []
        },
        {
            "Id": "78ae9bf3-9a2e-ec11-807e-00155ddf9604",
            "제품일련": "제품A1234",
            "이름": "제품 C",
            "가격": 33.0,
            "회사 ID": 1,
            "ProductCategoryId": "0d920541-5f2e-ec11-807e-00155ddf9604",
            "Description": "제품 C에 대한 설명 내용",
            "제품 브랜드 ID": 96,
            "제품바코드": "3333300010101",
            "단위": "kg",
            "할인가격": 29.99,
            "ProductPromotionHeader": "좋은 프로모션",
            "단위 번호": 2.0,
            "QrcodeLink": "https://product.qr.code.link.com",
            "LastUpdateDateTime": null,
            "CreatedDateTime": "2021-10-16T16:05:50.6652005Z",
            "EslmiscJson": null,
            "EslactionLogId": null,
            "회사": null,
            "제품 브랜드": null,
            "제품 카테고리": null,
            "EslTags": [],
            "제품 통화 가격": [],
            "ProductCustomPrices": [],
            "ProductDailySales": []
        }
    ],
    "개수": 0
}
비고- "Id" 값은 추후 업데이트/삭제/다른 엔터티 연동을 위한 참조키로 사용해야 하므로 기록해두세요.
- ProductBrandId는 Product Brand를 생성할 때 얻은 ID입니다.
- ProductCategoryId는 Product Category를 생성할 때 얻은 ID입니다.

제품 읽기

상품 설명회사 계정에서 생성된 제품 가져오기
종점{AnalyticsManagerDataManagerApiAddress}/odata/GetProducts
방법바로
요청 헤더{A토큰}
응답{
    "값": [
        {
            "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604",
            "제품일련": "제품A1234",
            "이름": "제품 새 이름",
            "가격": 113.0,
            "회사 ID": 1,
            "ProductCategoryId": "0b920541-5f2e-ec11-807e-00155ddf9604",
            "Description": "제품 A에 대한 설명 내용",
            "제품 브랜드 ID": 101,
            "제품바코드": "1111100010101",
            "단위": "그램",
            "할인가격": 10.99,
            "ProductPromotionHeader": "좋은 프로모션",
            "단위 번호": 10.0,
            "QrcodeLink": "https://product.qr.code.link.com",
            "LastUpdateDateTime": "2021-10-16T16:12:44.187Z",
            "CreatedDateTime": "2021-10-16T16:05:50.667Z",
            "EslmiscJson": null,
            "EslactionLogId": null,
            "회사": null,
            "제품 브랜드": null,
            "제품 카테고리": null,
            "EslTags": [],
            "제품 통화 가격": [],
            "ProductCustomPrices": [],
            "ProductDailySales": []
        },
        {
            "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604",
            "제품일련": "제품B1234",
            "이름": "제품 B 새 이름",
            "가격": 123.0,
            "회사 ID": 1,
            "ProductCategoryId": "7b84077e-0abc-ea11-833b-d05099d42a29",
            "Description": "제품 B에 대한 설명 콘텐츠",
            "제품 브랜드 ID": 102,
            "제품바코드": "2222200010101",
            "단위": "쌍",
            "할인가격": 19.99,
            "ProductPromotionHeader": "좋은 프로모션",
            "단위 번호": 1.0,
            "QrcodeLink": "https://product.qr.code.link.com",
            "LastUpdateDateTime": "2021-10-16T16:12:44.213Z",
            "CreatedDateTime": "2021-10-16T16:05:50.667Z",
            "EslmiscJson": null,
            "EslactionLogId": null,
            "회사": null,
            "제품 브랜드": null,
            "제품 카테고리": null,
            "EslTags": [],
            "제품 통화 가격": [],
            "ProductCustomPrices": [],
            "ProductDailySales": []
        }
    ],
    "개수": 0
}

제품 업데이트

상품 설명기존 제품 업데이트
종점{AnalyticsManagerDataManagerApiAddress}/odata/UpdateProducts
방법반점
요청 헤더{A토큰}
본문 - JSON[
    {
        "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604",
        "제품일련": "제품A1234",
        "이름": "제품 새 이름",
        "가격": 113.0
    },
    {
        "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604",
        "제품일련": "제품B1234",
        "이름": "제품 B 새 이름",
        "가격": 123.0
    },
    {
        "Id": "78ae9bf3-9a2e-ec11-807e-00155ddf9604",
        "제품일련": "제품A1234",
        "이름": "제품 C 새 이름",
        "가격": 133.0,
        "단위": "kg"
    }
]
비고필수 필드:
- ID

제품 삭제

상품 설명기존 제품 삭제
종점{AnalyticsManagerDataManagerApiAddress}/odata/DeleteProducts
방법삭제
요청 헤더{A토큰}
본문 - JSON[
    {
        "Id": "76ae9bf3-9a2e-ec11-807e-00155ddf9604"
    },
    {
        "Id": "77ae9bf3-9a2e-ec11-807e-00155ddf9604"
    },
    {
        "Id": "78ae9bf3-9a2e-ec11-807e-00155ddf9604"
    }
]
비고필수 필드:
- ID
페이지 : 1 2 3 4
3 월 4, 2022에 업데이트 됨