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

# Search card products

> Searches the card catalog, so you can find the card IDs an order needs.



## OpenAPI

````yaml /openapi.json get /card-products
openapi: 3.1.2
info:
  title: Robograding
  version: 1.0.0
servers:
  - url: https://app.agscard.com/api/partner/v1
security:
  - http: []
tags:
  - name: Profile
  - name: Card products
  - name: Orders
paths:
  /card-products:
    get:
      tags:
        - Card products
      summary: Search card products
      description: Searches the card catalog, so you can find the card IDs an order needs.
      operationId: searchCardProducts
      parameters:
        - name: search
          in: query
          required: true
          schema:
            type: string
            minLength: 2
            maxLength: 100
        - name: per_page
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 50
        - name: X-Tenant
          in: header
          schema:
            type: string
            enum:
              - us
              - gb
              - br
      responses:
        '200':
          description: Paginated set of `CardProductResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CardProductResource'
                  links:
                    type: object
                    properties:
                      first:
                        type:
                          - string
                          - 'null'
                      last:
                        type:
                          - string
                          - 'null'
                      prev:
                        type:
                          - string
                          - 'null'
                      next:
                        type:
                          - string
                          - 'null'
                    required:
                      - first
                      - last
                      - prev
                      - next
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        minimum: 1
                      from:
                        type:
                          - integer
                          - 'null'
                        minimum: 1
                      last_page:
                        type: integer
                        minimum: 1
                      links:
                        type: array
                        description: Generated paginator links.
                        items:
                          type: object
                          properties:
                            url:
                              type:
                                - string
                                - 'null'
                            label:
                              type: string
                            active:
                              type: boolean
                          required:
                            - url
                            - label
                            - active
                      path:
                        type:
                          - string
                          - 'null'
                        description: Base path for paginator generated URLs.
                      per_page:
                        type: integer
                        description: Number of items shown per page.
                        minimum: 0
                      to:
                        type:
                          - integer
                          - 'null'
                        description: Number of the last item in the slice.
                        minimum: 1
                      total:
                        type: integer
                        description: Total number of items being paginated.
                        minimum: 0
                    required:
                      - current_page
                      - from
                      - last_page
                      - links
                      - path
                      - per_page
                      - to
                      - total
                required:
                  - data
                  - links
                  - meta
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    CardProductResource:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        short_name:
          type: string
        long_name:
          type:
            - string
            - 'null'
        card_number:
          type:
            - string
            - 'null'
        category:
          type: string
        set:
          type: string
        series:
          type: string
        release_year:
          type:
            - integer
            - 'null'
        variant:
          type: string
        edition:
          type: string
        surface:
          type: string
        language:
          type: string
        image_url:
          type:
            - string
            - 'null'
      required:
        - id
        - name
        - short_name
        - long_name
        - card_number
        - category
        - set
        - series
        - release_year
        - variant
        - edition
        - surface
        - language
        - image_url
      title: CardProductResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - unauthenticated
                  message:
                    type: string
                required:
                  - code
                  - message
            required:
              - error
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - validation_failed
                  message:
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                required:
                  - code
                  - message
            required:
              - error
  securitySchemes:
    http:
      type: http
      scheme: bearer

````

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