---
title: "Get origins of products"
url: "https://developer-qual.migros.ch/apis/origin-service-0/versions/f3501799-1784-42cb-8027-619623ae84a5/operations/getProductOrigins"
---

> Full API specification: https://developer-qual.migros.ch/apis/origin-service-0/versions/f3501799-1784-42cb-8027-619623ae84a5.md

# Get origins of products

`GET` `/migros/products/origin/v1/product-origin`

Operation ID: `getProductOrigins`

Return the origin of products. The normal use case is to supply the products query parameter (see below) in which case this endpoints returns the origins of the requested products. Without products the first 200 origins are returned.

## Query parameters

- `products` (string, optional) - Comma seperated list of product ids to get origins data for. Provide a maximum of 200 product IDs, if you have more, do several requests.

## Responses

- `200` - product-origin

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Origin-Service
  version: 0.6.5
servers:
  - description: URL of upstream
    url: https://api-qual.migros.ch
paths:
  /migros/products/origin/v1/product-origin:
    get:
      description: Return the origin of products.  The normal use case is to supply
        the products query parameter (see below) in which case this endpoints
        returns the origins of the requested products. Without products the
        first 200 origins are returned.
      operationId: getProductOrigins
      parameters:
        - description: Comma seperated list of product ids to get origins data for.
            Provide a maximum of 200 product IDs, if you have more, do several
            requests.
          in: query
          name: products
          schema:
            type: string
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProductOrigin"
          description: product-origin
      security:
        - apiKeyAuth: []
      summary: Get origins of products
      tags:
        - origin-distributor
security:
  - apiKeyAuth: []
components:
  schemas:
    ProductOrigin:
      additionalProperties:
        items:
          properties:
            origin_information:
              items:
                properties:
                  origin_key:
                    type: string
                  origin_name:
                    properties:
                      de:
                        type: string
                      en:
                        type: string
                      fr:
                        type: string
                      it:
                        type: string
                    type: object
                  origin_type:
                    type: string
                type: object
              type: array
            product_id:
              type: integer
            region_key:
              type: string
            source_system:
              type: string
            valid_from:
              description: Date from when the origin is valid. If valid immediatly, the date
                will be 1st of January of the year 1.
              format: date-time
              type: string
            valid_to:
              description: Date until when the origin is valid. If infitely valid, the date
                will be the 31th December of the year 9999.
              format: date-time
              type: string
          type: object
        type: array
      title: Product Origins
      type: object
  securitySchemes:
    apiKeyAuth:
      in: header
      name: X-Api-Key
      type: apiKey
```
