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

# Get one product by GTIN



## OpenAPI

````yaml /openapi.json get /v0/channels/{channelId}/products/{gtin}
openapi: 3.1.0
info:
  title: Aggrefine API
  version: '0'
  description: >-
    Products from all your affiliate networks, per channel (your site or app),
    each offer with your own tracking link. Only merchants the channel is
    approved for are included.


    Start with `GET /channels`, then ask for one channel's products. Every
    request needs your API key as a bearer token: `Authorization: Bearer <key>`.
    Create keys in Aggrefine under Settings → Team → API keys. Errors are `{
    "error": "message" }`.
servers:
  - url: https://api.aggrefine.com
    description: Production
security:
  - apiKey: []
paths:
  /v0/channels/{channelId}/products/{gtin}:
    get:
      tags:
        - Products
      summary: Get one product by GTIN
      operationId: getProduct
      parameters:
        - schema:
            type: string
            format: uuid
            description: From GET /channels.
          required: true
          description: From GET /channels.
          name: channelId
          in: path
        - schema:
            type: string
            pattern: ^\d{1,14}$
            example: '7318690000016'
            description: EAN, UPC or GTIN; shorter ones are zero-padded.
          required: true
          description: EAN, UPC or GTIN; shorter ones are zero-padded.
          name: gtin
          in: path
      responses:
        '200':
          description: The product
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, wrong or revoked API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The organization has no plan that includes the API
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such channel or product
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Product:
      type: object
      properties:
        gtin:
          type: string
          example: '07318690000016'
          description: 14 digits, zero-padded.
        title:
          type:
            - string
            - 'null'
        brand:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
          description: >-
            Merchant text, cleaned to simple formatting (p, ul, b, a…): safe to
            render as HTML.
        images:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
            required:
              - url
          description: http(s) image URLs.
        updated_at:
          type: string
          format: date-time
        offers:
          type: array
          items:
            $ref: '#/components/schemas/Offer'
          description: >-
            Every merchant selling this GTIN to the channel, each with its
            tracking link.
      required:
        - gtin
        - title
        - brand
        - description
        - images
        - updated_at
        - offers
      description: >-
        All offers sharing one GTIN. Title, brand, description and images come
        from the most recently changed offer.
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    Offer:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: 'Stable across calls: use it to track an offer.'
        merchant:
          type: object
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
              example: Example Shop
          required:
            - id
            - name
        network:
          type: string
          example: awin
          description: The affiliate network the link earns through.
        sku:
          type:
            - string
            - 'null'
          description: The merchant's own product id.
        price:
          type: string
          example: '499.00'
          description: Decimal string; never a float.
        old_price:
          type:
            - string
            - 'null'
          example: '599.00'
          description: The price before a discount, when the merchant gives one.
        currency:
          type:
            - string
            - 'null'
          example: SEK
        availability:
          type: string
          enum:
            - in_stock
            - out_of_stock
            - unknown
        affiliate_url:
          type: string
          description: Your tracking link for this channel.
        updated_at:
          type: string
          format: date-time
          description: When the merchant last changed this offer.
      required:
        - id
        - merchant
        - network
        - sku
        - price
        - old_price
        - currency
        - availability
        - affiliate_url
        - updated_at
      description: One merchant selling the product to this channel.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key from Settings → Team → API keys in Aggrefine.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.