{
  "status": "SUCCESS",
  "response": [
    {
      "productId": "000000000060734545",
      "hierarchy": [
        {
          "level": "08",
          "value": "G8-T3542A"
        }
      ],
      "productCategory": "01",
      "productCategoryDesc": "Generic article",
      "productType": "Z001",
      "productTypeDesc": "Fashion",
      "merchandiseCat": "A54020108",
      "availableSeasons": [
        {
          "seasonName": "SP25",
          "seasonYear": "2025"
        },
        {
          "seasonName": "AU25",
          "seasonYear": "2025"
        },
        {
          "seasonName": "SM25",
          "seasonYear": "2025"
        }
      ],
      "colourwayName": null,
      "websiteProductTitle": null,
      "customsDutyPrefInd": "N",
      "customsDutyGrp": "0.0",
      "commodityCode": null,
      "hazardousMaterial": "N",
      "compositionDescription": null,
      "strokeNum": "0002B",
      "strokeCategory": "BEDDING",
      "department": "T35",
      "colourCode": "E4",
      "colourDescription": "BLUE MIX",
      "primarySizeRange": "ZC",
      "secondarySizeRange": "",
      "reprocessingComplexity": "N",
      "knittedWovenIndicator": "W",
      "sellingPriceAtSizeInd": null,
      "taxAtSize": null,
      "boxedHangingIndicator": "Boxed",
      "anrFulfilmentMethod": null,
      "anrOutletMethod": "",
      "anrNonOutletMethod": "0002",
      "productDescription": {
        "longDesc": "WATERCOLOUR FLORAL PRINTED BEDESET",
        "shortDesc": "WC FLORAL BS",
        "ecomDesc": null,
        "language": null
      },
      "productVariants": [
        {
          "variantId": "000000060734545004",
          "category": "02",
          "primarySizeRange": "ZC",
          "primarySizeIndex": "04",
          "primarySizeDesc": "6FT",
          "secondarySizeRange": "",
          "secondarySizeIndex": "0",
          "secondarySizeDesc": null,
          "gtinNo": "5045718281179",
          "twoDBarCode": "1",
          "upc": "09910768",
          "ean": [
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            },
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            }
          ]
        },
        {
          "variantId": "000000060734545002",
          "category": "02",
          "primarySizeRange": "ZC",
          "primarySizeIndex": "02",
          "primarySizeDesc": "DBL",
          "secondarySizeRange": "",
          "secondarySizeIndex": "0",
          "secondarySizeDesc": null,
          "gtinNo": "5045718281155",
          "twoDBarCode": "1",
          "upc": "09899063",
          "ean": [
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            },
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            }
          ]
        },
        {
          "variantId": "000000060734545001",
          "category": "02",
          "primarySizeRange": "ZC",
          "primarySizeIndex": "01",
          "primarySizeDesc": "SGL",
          "secondarySizeRange": "",
          "secondarySizeIndex": "0",
          "secondarySizeDesc": null,
          "gtinNo": "5045718281148",
          "twoDBarCode": "1",
          "upc": "09898899",
          "ean": [
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            },
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            }
          ]
        },
        {
          "variantId": "000000060734545003",
          "category": "02",
          "primarySizeRange": "ZC",
          "primarySizeIndex": "03",
          "primarySizeDesc": "5FT",
          "secondarySizeRange": "",
          "secondarySizeIndex": "0",
          "secondarySizeDesc": null,
          "gtinNo": "5045718281162",
          "twoDBarCode": "1",
          "upc": "09899476",
          "ean": [
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            },
            {
              "eanValue": null,
              "primary": "1",
              "activeFlag": "1"
            }
          ]
        }
      ],
      "creationStatus": "Approved",
      "seasonName": "SP25",
      "seasonYear": "2025",
      "coreNewNess": "Core Essentials",
      "extMerchandiseCat": "HOME PRODUCT",
      "brands": "M AND S COLLECTION",
      "sellingPriceStructure": "GOOD",
      "character": "NO CHARACTER",
      "phases": [
        {
          "phaseId": "PH1",
          "mappedStatus": "true"
        },
        {
          "phaseId": "PH2",
          "mappedStatus": "true"
        }
      ]
    }
  ],
  "error": {
    "code": "",
    "description": ""
  },
  "metadata": {
    "totalRecords": "1",
    "pageNumber": "0",
    "totalPages": "1",
    "recordsPerPage": "1",
    "nextPageUri": ""
  },
  "transactionId": "123456-4"
}

 
package com.mns.intl.pigw.productcore.dto.response;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 
import lombok.Data;
 
@Data

@JsonIgnoreProperties(ignoreUnknown = true)

public class Hierarchy {

	private String level;

	private String value;
 
}
 
 
package com.mns.intl.pigw.productcore.dto.response;
 
import java.util.List;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import com.fasterxml.jackson.annotation.JsonProperty;
 
import lombok.Data;
 
@Data

@JsonIgnoreProperties(ignoreUnknown = true)

public class ProductSeasonality {
 
	private String productId;

	private String productType;

	private String merchandiseCat;

	private String strokeNum;

	private String department;

	private String primarySizeRange;

	private String secondarySizeRange;

	private Colour colour;

	private ProductDescription productDescription;

	private Hierarchy hierarchy;

	private Seasons season;

	private List<Attributes> attributes;

	private Integer productVariantsCount;

	private Integer activeVariantsCount;

	private List<ProductVariant> productVariants;

}
 
 
package com.mns.intl.pigw.productcore.dto.response;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 
import lombok.Data;
 
@Data

@JsonIgnoreProperties(ignoreUnknown = true)

public class Seasons {

	private String seasonName;

	private String seasonYear;
 
}

package com.mns.intl.pigw.productcore.dto.response;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 
import lombok.Data;
 
@Data

@JsonIgnoreProperties(ignoreUnknown = true)

public class Attributes {

	private String attTypeDesc;

	private String attDesc;
 
}
 
 
package com.mns.intl.pigw.productcore.dto.response;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 
import lombok.Data;
 
@Data

@JsonIgnoreProperties(ignoreUnknown = true)

public class ProductVariant {

	private String variantId;

	private String primarySizeRange;

	private String primarySizeIndex;

	private String secondarySizeRange;

	private String secondarySizeIndex;

	private Integer activeIndicator;

	private String gtinNo;
 
}
 
 .....here is a code