> ## Documentation Index
> Fetch the complete documentation index at: https://developer.worldly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Packaging

Use this endpoint to search the packaging catalog. Packaging items represent the materials used to package a product (e.g., polybags, cardboard boxes) and contribute to the product's environmental impact calculation.

### Request body params

| Name         | Type            | Description                                                        |
| :----------- | :-------------- | :----------------------------------------------------------------- |
| `textSearch` | `string`        | Search packaging by name.                                          |
| `ids`        | `Array<string>` | Filter by specific packaging IDs.                                  |
| `from`       | `number`        | **\[DEFAULT: 0]** Pagination start index.                          |
| `size`       | `number`        | **\[DEFAULT: 50]** Number of results to return (max 50).           |
| `sort`       | `object`        | Sorting configuration `{ field: string, order: "asc" \| "desc" }`. |

### Implementation Details

* **Pagination**: Maximum page size is capped at 50 results.
* **Usage**: Each packaging item in the response includes an `_id` field. Use this `_id` value as the `packagingId` in the `packaging` array when [creating](/api-reference/pic/products/create) or [updating](/api-reference/pic/products/update) products.


## OpenAPI

````yaml api-reference/openapi/french-eco.json POST /packaging/search
openapi: 3.0.0
info:
  title: pic-api
  version: 1.0.0
servers:
  - url: https://api-v2.production.higg.org/pic-api/v1
    description: Production
  - url: https://api-v2.demo.higg.org/pic-api/v1
    description: Demo
security:
  - sec0: []
    sec1: []
paths:
  /packaging/search:
    post:
      summary: Packaging List
      operationId: PackagingList
      requestBody:
        $ref: '#/components/requestBodies/CorpRepApiSearchRequest'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CorpReportApiPaginatedResponseCorpRepPackagingAllEntityES
components:
  requestBodies:
    CorpRepApiSearchRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CorpRepApiSearchRequest'
      required: true
  schemas:
    CorpReportApiPaginatedResponseCorpRepPackagingAllEntityES:
      description: API Search responses
      properties:
        from:
          type: number
          format: double
        size:
          type: number
          format: double
        total:
          type: number
          format: double
        results:
          items:
            $ref: '#/components/schemas/CorpRepPackagingAllEntityES'
          type: array
      required:
        - from
        - results
        - size
        - total
      type: object
      additionalProperties: false
    CorpRepApiSearchRequest:
      properties:
        from:
          type: number
          format: double
          nullable: true
        size:
          type: number
          format: double
          nullable: true
        ids:
          items:
            type: string
          type: array
          nullable: true
        sort:
          $ref: '#/components/schemas/SortType'
        textSearch:
          type: string
          nullable: true
      type: object
      additionalProperties: false
    CorpRepPackagingAllEntityES:
      description: >-
        This interface was referenced by `Exports`'s JSON-Schema via the
        `definition` "corpRepPackagingAllEntityES".
      properties:
        _id:
          type: string
        _rev:
          type: string
          nullable: true
        packagingMsiId:
          type: string
          nullable: true
        type:
          type: string
        impacts:
          $ref: '#/components/schemas/CorpRepMaterialImpacts'
        code:
          type: string
          nullable: true
        name:
          type: string
        vendor:
          type: string
          nullable: true
        createdOn:
          type: number
          format: double
        modifiedOn:
          type: number
          format: double
          nullable: true
        deleted:
          type: boolean
          nullable: true
        dataSource:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        account:
          $ref: '#/components/schemas/AccountRef'
        productNumber:
          type: string
          nullable: true
        weightInformation:
          $ref: '#/components/schemas/CorpRepWeightInformation'
        packagingType:
          type: string
          nullable: true
        version:
          type: string
          nullable: true
        visibleForAccounts:
          items:
            type: string
          type: array
          nullable: true
        defectRate:
          type: number
          format: double
          nullable: true
      required:
        - _id
        - createdOn
        - impacts
        - name
        - type
        - weightInformation
      type: object
      additionalProperties: false
    SortType:
      description: API Search requests
      properties:
        field:
          type: string
        order:
          type: string
          enum:
            - asc
            - desc
      required:
        - field
        - order
      type: object
      additionalProperties: false
    CorpRepMaterialImpacts:
      description: corpRep Material Impacts
      properties:
        totalMaterialLibrary:
          type: number
          format: double
          nullable: true
        tier4Impact:
          type: number
          format: double
        tier2and3Impact:
          type: number
          format: double
        totalTierImpact:
          type: number
          format: double
          nullable: true
        uncertainty:
          properties:
            lower:
              type: number
              format: double
            upper:
              type: number
              format: double
          type: object
          nullable: true
      required:
        - tier2and3Impact
        - tier4Impact
      type: object
      additionalProperties:
        additionalProperties: true
    AccountRef:
      description: >-
        This interface was referenced by `Exports`'s JSON-Schema via the
        `definition` "accountRef".
      properties:
        _id:
          type: string
        name:
          type: string
        country:
          type: string
        sacId:
          type: number
          format: double
        oar_id:
          type: string
          nullable: true
        demoaccount:
          type: boolean
          nullable: true
        vbType:
          $ref: '#/components/schemas/AccountVbType'
        socialCreditId:
          type: string
          nullable: true
        taxId:
          type: string
          nullable: true
        bluesignId:
          type: string
          nullable: true
        zdhcId:
          type: string
          nullable: true
        ipeViolation:
          $ref: '#/components/schemas/IpeViolationRef'
        ffcId:
          type: number
          format: double
          nullable: true
        approvalStatus:
          $ref: '#/components/schemas/AccountApprovalStatus'
      required:
        - _id
        - country
        - name
        - sacId
      type: object
      additionalProperties: false
    CorpRepWeightInformation:
      description: corpRep weight information
      properties:
        convertedToKg:
          type: number
          format: double
        weight:
          type: number
          format: double
        unit:
          $ref: '#/components/schemas/MaterialMeasureUnit'
        isPrimaryData:
          type: boolean
          description: >-
            This field is used only in product weight, Indicates if the weight
            information is primary data or is inferred from product category and
            size
          nullable: true
      required:
        - convertedToKg
        - unit
        - weight
      type: object
      additionalProperties: false
    AccountVbType:
      description: >-
        This interface was referenced by `Exports`'s JSON-Schema via the
        `definition` "accountVbType".
      enum:
        - None
        - 2nd Party
        - 3rd Party
      type: string
    IpeViolationRef:
      properties:
        totalViolations:
          type: number
          format: double
      required:
        - totalViolations
      type: object
      additionalProperties: false
    AccountApprovalStatus:
      enum:
        - Approved
        - Declined
        - New
      type: string
    MaterialMeasureUnit:
      enum:
        - kilograms
        - grams
        - milligram
        - pound
        - ounce
      type: string
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: x-api-key
    sec1:
      type: apiKey
      in: header
      name: x-developer-request-token

````