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

# Get a product

> **Scope:** [`read_products`](/scopes)

Reads one product, with its `description`.

`join` adds relations, comma-separated: `options`, `variants`, and
`categories` (which adds `category_ids`). Without it, those fields
are left out.




## OpenAPI

````yaml /openapi.json get /products/{id}
openapi: 3.1.0
info:
  title: EasyOrders Admin API
  version: v1
  summary: Read and write a merchant's store data from your app.
  description: |
    The EasyOrders Admin API lets an installed app work with one merchant's
    store: its orders, shipping settings and shipping areas, within the
    scopes the merchant approved.

    - Every request needs an access token (`Authorization: Bearer eo_at_...`)
      from the OAuth flow. A token works on one store only.
    - Request and response bodies are JSON. Unknown fields and query
      parameters are refused.
    - Errors share one shape: `{"error": {"code", "message", "details"}}`.
    - `v1` is stable: new fields and endpoints are added to it; a breaking
      change ships as a new version.
  contact:
    name: EasyOrders developers
    url: https://easyorders.eg
servers:
  - url: https://api.easy-orders.net/api/partners-apps/v1
    description: Production
security:
  - accessToken: []
tags:
  - name: Article categories
    description: >-
      The categories of the store's blog, which articles name in their
      `category_ids`.
  - name: Articles
    description: The articles of the store's blog, with HTML content, tags and categories.
  - name: Billing
    description: >-
      Your app's plan subscription and usage wallet on the store, and debiting
      the wallet by usage.
  - name: Categories
    description: The store's product categories and subcategories.
  - name: Checkout fields
    description: >-
      The fields of the store's checkout form, their labels, order, and whether
      they show and are required.
  - name: Coupons
    description: >-
      The store's coupons, by code or automatic, and the products, variants and
      categories they apply to.
  - name: Labels
    description: >-
      Your app's short colored words on orders and products, shown in the
      merchant's orders and products tables.
  - name: Missed orders
    description: >-
      Checkouts the shopper started and did not finish, to follow up and
      recover.
  - name: Orders
    description: The store's orders, their status, payment status and notes.
  - name: Pages
    description: >-
      The store's pages, such as About us or the return policy, with HTML
      content.
  - name: Products
    description: The store's products, their options, variants and stock.
  - name: Reviews
    description: >-
      The reviews of the store's products, and which of them the product page
      shows.
  - name: Shipping
    description: The store's shipping settings and shipping areas (governorates).
  - name: Store
    description: >-
      The store the access token belongs to, its addresses, currency, language
      and plan.
paths:
  /products/{id}:
    parameters:
      - $ref: '#/components/parameters/ProductID'
    get:
      tags:
        - Products
      summary: Get a product
      description: |
        **Scope:** [`read_products`](/scopes)

        Reads one product, with its `description`.

        `join` adds relations, comma-separated: `options`, `variants`, and
        `categories` (which adds `category_ids`). Without it, those fields
        are left out.
      operationId: getProduct
      parameters:
        - $ref: '#/components/parameters/ProductJoin'
      responses:
        '200':
          $ref: '#/components/responses/ProductOK'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/InsufficientScope'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >-
            curl -G
            "https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10"
            \
              --data-urlencode "join=options,variants,categories" \
              -H "Authorization: Bearer $EASYORDERS_ACCESS_TOKEN"
        - lang: typescript
          label: TypeScript
          source: >-
            const params = new URLSearchParams([
              ['join', 'options,variants,categories'],
            ])

            const url =
            'https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10?'
            + params


            const response = await fetch(url, {
              method: 'GET',
              headers: {
                Authorization: `Bearer ${process.env.EASYORDERS_ACCESS_TOKEN}`,
              },
            })


            const json = await response.json()

            if (!response.ok) {
              throw new Error(`${json.error.code}: ${json.error.message}`)
            }

            const { product } = json
        - lang: go
          label: Go
          source: "package main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"net/url\"\n\t\"os\"\n)\n\nfunc main() {\n\tquery := url.Values{}\n\tquery.Add(\"join\", \"options,variants,categories\")\n\n\treq, err := http.NewRequest(\"GET\", \"https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10?\"+query.Encode(), nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"EASYORDERS_ACCESS_TOKEN\"))\n\n\tres, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer res.Body.Close()\n\n\tvar answer map[string]any\n\tif err := json.NewDecoder(res.Body).Decode(&answer); err != nil {\n\t\tpanic(err)\n\t}\n\tif res.StatusCode >= 300 {\n\t\tpanic(fmt.Sprint(res.Status, answer[\"error\"]))\n\t}\n\tfmt.Println(answer[\"product\"])\n}"
        - lang: php
          label: PHP
          source: >-
            <?php


            $query = http_build_query([
                'join' => 'options,variants,categories',
            ]);

            $ch =
            curl_init('https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10?'
            . $query);

            curl_setopt_array($ch, [
                CURLOPT_CUSTOMREQUEST => 'GET',
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_HTTPHEADER => [
                    'Authorization: Bearer ' . getenv('EASYORDERS_ACCESS_TOKEN'),
                ],
            ]);


            $answer = json_decode(curl_exec($ch), true);

            $status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

            curl_close($ch);


            if ($status >= 300) {
                throw new RuntimeException($answer['error']['code'] . ': ' . $answer['error']['message']);
            }

            $product = $answer['product'];
        - lang: python
          label: Python
          source: |-
            import os

            import requests

            response = requests.get(
                "https://api.easy-orders.net/api/partners-apps/v1/products/0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10",
                headers={
                    "Authorization": f"Bearer {os.environ['EASYORDERS_ACCESS_TOKEN']}",
                },
                params=[
                    ("join", "options,variants,categories"),
                ],
                timeout=30,
            )
            answer = response.json()
            if not response.ok:
                raise RuntimeError(f"{answer['error']['code']}: {answer['error']['message']}")
            product = answer["product"]
components:
  parameters:
    ProductID:
      name: id
      in: path
      required: true
      description: The product's ID.
      schema:
        type: string
        format: uuid
      example: 0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10
    ProductJoin:
      name: join
      in: query
      description: >-
        Relations to add, comma-separated: `options`, `variants`, `categories`
        (adds `category_ids`).
      schema:
        type: string
      example: options,variants,categories
  responses:
    ProductOK:
      description: The product.
      content:
        application/json:
          schema:
            type: object
            required:
              - product
            properties:
              product:
                $ref: '#/components/schemas/Product'
          example:
            product:
              id: 0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10
              name: Classic Cotton T-Shirt
              slug: classic-cotton-t-shirt
              sku: TS-CLASSIC
              external_sku: ''
              source_app: ERP Sync
              description: <p>Soft cotton, cut for everyday wear.</p>
              meta_description: ''
              price: 450
              sale_price: 399
              sale_end_date: null
              thumb: https://cdn.example.com/products/tshirt.jpg
              images:
                - https://cdn.example.com/products/tshirt-back.jpg
              position: 0
              hidden: false
              quantity: 0
              track_stock: true
              disable_orders_for_no_stock: false
              is_digital: false
              digital_type: null
              category_ids:
                - 5c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f
              options:
                - name: Size
                  type: button
                  values:
                    - name: M
                      value: M
                      thumb: ''
                      is_out_of_stock: false
                    - name: L
                      value: L
                      thumb: ''
                      is_out_of_stock: false
              variants:
                - id: 7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a01
                  price: 450
                  sale_price: 0
                  quantity: 40
                  sku: TS-CLASSIC-M
                  thumb: ''
                  options:
                    Size: M
                - id: 8f9a0b1c-2d3e-4f4a-9b5c-6d7e8f9a0b12
                  price: 450
                  sale_price: 0
                  quantity: 25
                  sku: TS-CLASSIC-L
                  thumb: ''
                  options:
                    Size: L
              is_skip_cart: false
              buy_now_text: ''
              is_fixed_bottom_buy: false
              is_one_page_checkout: false
              is_fast_checkout: false
              is_free_shipping: false
              is_quantity_hidden: false
              is_header_hidden: false
              hide_related_products: false
              is_reviews_enabled: false
              is_visitor_counter: false
              visitor_counter_min: 0
              visitor_counter_max: 0
              is_countdown_timer: false
              countdown_timer_hours: 0
              created_at: '2026-12-04T09:00:00Z'
              updated_at: '2026-12-04T09:30:00Z'
    Unauthenticated:
      description: The access token is missing, invalid or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthenticated
              message: Missing or invalid access token
    PaymentRequired:
      description: Your app's subscription on this store is suspended.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: payment_required
              message: The app's subscription on this store is suspended
    InsufficientScope:
      description: The token lacks the scope this endpoint needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: insufficient_scope
              message: 'This request requires the scope: read_orders'
              details:
                required_scope: read_orders
    NotFound:
      description: No such resource in this store.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: Resource not found
    ValidationFailed:
      description: The request broke one or more rules; `details.fields` lists every one.
      content:
        application/json:
          schema:
            allOf:
              - $ref: '#/components/schemas/Error'
              - type: object
                properties:
                  error:
                    type: object
                    properties:
                      details:
                        type: object
                        properties:
                          fields:
                            type: array
                            items:
                              $ref: '#/components/schemas/FieldError'
          example:
            error:
              code: validation_failed
              message: Validation failed
              details:
                fields:
                  - field: items[0].quantity
                    rule: between
                    param: 1,10000
    RateLimited:
      description: More than 600 requests in a minute from your app on this store.
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: too_many_requests
              message: Rate limit exceeded
  schemas:
    Product:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
          description: The product's address on the storefront. Unique in the store.
        sku:
          type: string
        external_sku:
          type: string
          description: The product's code in an outside system, such as a supplier's.
        source_app:
          type:
            - string
            - 'null'
          description: >-
            The name of the app that created the product (or of an older
            integration that did); `null` when none did. Read only.
        description:
          type: string
          description: >-
            The product's HTML description, as cleaned when saved. Only on a
            single product and on write answers; lists leave it out.
        meta_description:
          type: string
          description: The search engines' description of the product page.
        price:
          type: number
          description: In the store's currency.
        sale_price:
          type: number
          description: >-
            The price on sale, under `price`; `0` when the product is not on
            sale.
        sale_end_date:
          type:
            - string
            - 'null'
          format: date-time
          description: When the sale ends; `null` for no end date.
        thumb:
          type: string
          description: The main image's URL.
        images:
          type: array
          description: More images' URLs.
          items:
            type: string
        position:
          type: integer
          description: The merchant's order of the product.
        hidden:
          type: boolean
          description: A hidden product is not shown on the storefront.
        quantity:
          type: integer
          description: The product's stock.
        track_stock:
          type: boolean
          description: Whether the product's stock is tracked.
        disable_orders_for_no_stock:
          type: boolean
          description: Whether the storefront refuses orders when the stock runs out.
        is_digital:
          type: boolean
          description: A digital product, sold as codes or links. Apps cannot create one.
        digital_type:
          type:
            - string
            - 'null'
          enum:
            - code
            - link
            - null
          description: How a digital product is sold; `null` for other products.
        category_ids:
          type: array
          description: >-
            The IDs of the product's categories. Present with `join=categories`,
            and on write answers.
          items:
            type: string
            format: uuid
        options:
          type: array
          description: >-
            The product's options, such as size or color. Present with
            `join=options`, and on write answers. They have no set order.
          items:
            $ref: '#/components/schemas/ProductOption'
        variants:
          type: array
          description: >-
            The product's variants. Present with `join=variants`, and on write
            answers. They have no set order.
          items:
            $ref: '#/components/schemas/ProductVariant'
        is_skip_cart:
          type: boolean
          description: >-
            Hides the cart and the add to cart button, so the shopper goes
            straight to buy now. The settings after it, up to
            `is_reviews_enabled`, are the product page's other purchase
            settings, as the merchant sets them in the dashboard.
        buy_now_text:
          type: string
          description: The buy button's text; empty for the theme's own.
        is_fixed_bottom_buy:
          type: boolean
        is_one_page_checkout:
          type: boolean
        is_fast_checkout:
          type: boolean
        is_free_shipping:
          type: boolean
        is_quantity_hidden:
          type: boolean
        is_header_hidden:
          type: boolean
        hide_related_products:
          type: boolean
        is_reviews_enabled:
          type: boolean
        is_visitor_counter:
          type: boolean
          description: The product page shows a visitor counter.
        visitor_counter_min:
          type: integer
          description: The lowest count the visitor counter shows.
        visitor_counter_max:
          type: integer
          description: The highest count the visitor counter shows.
        is_countdown_timer:
          type: boolean
          description: The product page shows a countdown timer.
        countdown_timer_hours:
          type: integer
          description: The countdown timer's length, in hours.
        created_at:
          type: string
          format: date-time
          description: Old products without a creation time read `1970-01-01T00:00:00Z`.
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: A stable, snake_case code. Branch on it, not on the message.
            message:
              type: string
              description: A human-readable explanation. It may change.
            details:
              description: More about the error, shaped per code.
    FieldError:
      type: object
      required:
        - field
        - rule
      properties:
        field:
          type: string
          description: The JSON path of the input, e.g. `items[0].quantity`.
        rule:
          type: string
          description: The rule that failed, e.g. `required`, `between` or `in`.
        param:
          type: string
          description: The rule's parameter, e.g. `1,10000` for `between`.
    ProductOption:
      type: object
      properties:
        name:
          type: string
          description: The option's name, such as `Size`.
        type:
          type: string
          enum:
            - button
            - color
            - image
          description: How the storefront draws its values.
        values:
          type: array
          items:
            $ref: '#/components/schemas/ProductOptionValue'
    ProductVariant:
      type: object
      properties:
        id:
          type: string
          format: uuid
        price:
          type: number
        sale_price:
          type: number
          description: '`0` when the variant is not on sale.'
        quantity:
          type: integer
          description: The variant's stock.
        sku:
          type: string
        thumb:
          type: string
          description: The variant's image URL; may be empty.
        options:
          type: object
          description: Each option's name, and this variant's value of it.
          additionalProperties:
            type: string
    ProductOptionValue:
      type: object
      properties:
        name:
          type: string
          description: The value's name, such as `M`. Variants name values by it.
        value:
          type: string
          description: >-
            What the storefront draws, by the option's type. A `#rgb` or
            `#rrggbb` color for `color`, an image URL for `image`, a label for
            `button`.
        thumb:
          type: string
          description: An image URL for the value; may be empty.
        is_out_of_stock:
          type: boolean
  headers:
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      description: >
        An access token from the OAuth flow (`eo_at_...`). It lasts one hour;

        refresh it with the refresh token. See
        [Authentication](/authentication).

````

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