---
title: "Returns all Global Product Classifications (GPC) that a supplier offers."
url: "https://developer-qual.migros.ch/apis/gpc-8/versions/b0f52399-ac59-4c8c-b80e-a82a48a45f88/operations/get-gcp-by-supplier"
---

> Full API specification: https://developer-qual.migros.ch/apis/gpc-8/versions/b0f52399-ac59-4c8c-b80e-a82a48a45f88.md

# Returns all Global Product Classifications (GPC) that a supplier offers.

`GET` `/migros/products/v8/gpc/supplier/{supplier_id}`

Operation ID: `get-gcp-by-supplier`

Returns all Global Product Classifications (GPC) that a supplier offers.

## Path parameters

- `supplier_id` (string, required) - Creditor ID

## Responses

- `200` - Returned when successful
- `404` - Returned when the requested resource could not be not found.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: GPC
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api-qual.migros.ch
paths:
  /migros/products/v8/gpc/supplier/{supplier_id}:
    get:
      description: Returns all Global Product Classifications (GPC) that a supplier offers.
      operationId: get-gcp-by-supplier
      parameters:
        - description: Creditor ID
          in: path
          name: supplier_id
          required: true
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GpcCollection"
          description: Returned when successful
        "404":
          $ref: "#/components/responses/404"
      summary: Returns all Global Product Classifications (GPC) that a supplier offers.
      tags:
        - GPC
security:
  - Kong-Api-Key: []
    basicAuth: []
components:
  schemas:
    GpcCollection:
      allOf:
        - $ref: "#/components/schemas/AbstractCollection"
        - properties:
            global_product_classifications:
              items:
                $ref: "#/components/schemas/Gpc"
              type: array
          type: object
      required:
        - global_product_classifications
      type: object
    AbstractCollection:
      description: A generic collection of elements.
    Gpc:
      description: Standalone Global Product Classification (GPC) information.
      properties:
        id:
          description: The GPC brick ID, see https://www.gs1.org/services/gpc-browser
          type: string
        name:
          $ref: "#/components/schemas/TranslatedField"
      required:
        - id
        - name
      type: object
    TranslatedField:
      properties:
        de:
          nullable: true
          type: string
        en:
          nullable: true
          type: string
        fr:
          nullable: true
          type: string
        it:
          nullable: true
          type: string
      type: object
  responses:
    "404":
      description: Returned when the requested resource could not be not found.
  securitySchemes:
    Kong-Api-Key:
      description: Kong key-auth authentication
      in: header
      name: X-Api-Key
      type: apiKey
    basicAuth:
      scheme: basic
      type: http
```
