Product API

Product Brand

Create Product Brand

DescriptionCreate new Product Brand
Endpoint{AnalyticsManagerDataManagerApiAddress}/odata/PostProductBrands
MethodPOST
Request Headers{AToken}
Body - FormDataKey: ProductBrands
Value: [
    {
        "BrandName": "Brand A"
    },
    {
        "BrandName": "Brand B"
    },
    {
        "BrandName": "Brand C"
    }
]
Response[
    {
        "Id": 101,
        "BrandName": "Brand A",
        "LastUpdateDateTime": null,
        "CompanyId": 1,
        "CreatedDateTime": "2021-10-16T08:50:24.9837226Z"
    },
    {
        "Id": 102,
        "BrandName": "Brand B",
        "LastUpdateDateTime": null,
        "CompanyId": 1,
        "CreatedDateTime": "2021-10-16T08:50:24.9838209Z"
    },
    {
        "Id": 103,
        "BrandName": "Brand C",
        "LastUpdateDateTime": null,
        "CompanyId": 1,
        "CreatedDateTime": "2021-10-16T08:50:24.9838213Z"
    }
]
RemarkPlease record down the "Id" value as you will need to use this as reference key for update / delete / linkage to other entity later

Read Product Brand

DescriptionPull created product brand under the company account
Endpoint{AnalyticsManagerDataManagerApiAddress}/odata/GetProductBrands
MethodGET
Request Headers{AToken}
Response{
    "value": [
        {
            "Id": 103,
            "BrandName": "Brand C",
            "LogoPath": null,
            "LastUpdateDateTime": "2021-10-16T12:28:32.75Z",
            "CompanyId": 1,
            "CreatedDateTime": "2021-10-16T08:50:24.983Z",
            "NumberOfProducts": 0,
            "ServerDomainPath": null,
            "EslactionLogId": null,
            "Company": null,
            "Products": []
        },
        {
            "Id": 102,
            "BrandName": "Brand B",
            "LogoPath": null,
            "LastUpdateDateTime": null,
            "CompanyId": 1,
            "CreatedDateTime": "2021-10-16T08:50:24.983Z",
            "NumberOfProducts": 0,
            "ServerDomainPath": null,
            "EslactionLogId": null,
            "Company": null,
            "Products": []
        },
        {
            "Id": 101,
            "BrandName": "Brand A",
            "LogoPath": null,
            "LastUpdateDateTime": null,
            "CompanyId": 1,
            "CreatedDateTime": "2021-10-16T08:50:24.983Z",
            "NumberOfProducts": 0,
            "ServerDomainPath": null,
            "EslactionLogId": null,
            "Company": null,
            "Products": []
        }
    ],
    "count": 0
}

Update Product Brand

DescriptionUpdate existing product brand
Endpoint{AnalyticsManagerDataManagerApiAddress}/odata/UpdateProductBrands
MethodPATCH
Request Headers{AToken}
Body - JSON[
    {
        "Id": 103,
        "BrandName": "New product name A"
    },
    {
        "Id": 96,
        "BrandName": "New product name B"
    }
]
RemarkMandatory field:
- Id

Delete Product Brand

DescriptionDelete existing product brand
Endpoint{AnalyticsManagerDataManagerApiAddress}/odata/DeleteProductBrands
MethodDELETE
Request Headers{AToken}
Body - JSON[
    {
        "Id": 103
    },
    {
        "Id": 96
    }
]
RemarkMandatory field:
- Id
Pages: 1 2 3 4
Updated on March 4, 2022