File size: 2,887 Bytes
fcaa164
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
openapi: 3.0.1
info:
  version: v0
  title: Open AI Klarna product Api
  description: Search and compare prices from thousands of online shops. Only available in the US.
servers:
- url: https://www.klarna.com/us/shopping
tags:
- name: open-ai-product-endpoint
  description: Open AI Product Endpoint. Query for products.
paths:
  "/public/openai/v0/products":
    get:
      tags:
      - open-ai-product-endpoint
      summary: API for fetching Klarna product information
      operationId: productsUsingGET
      parameters:
      - name: q
        in: query
        description: A precise query that matches one very small category or product
          that needs to be searched for to find the products the user is looking for.
          If the user explicitly stated what they want, use that as a query. The query
          is as specific as possible to the product name or category mentioned by
          the user in its singular form, and don't contain any clarifiers like latest,
          newest, cheapest, budget, premium, expensive or similar. The query is always
          taken from the latest topic, if there is a new topic a new query is started.
        required: true
        schema:
          type: string
      - name: size
        in: query
        description: number of products returned
        required: false
        schema:
          type: integer
      - name: min_price
        in: query
        description: "(Optional) Minimum price in local currency for the product searched
          for. Either explicitly stated by the user or implicitly inferred from a
          combination of the user's request and the kind of product searched for."
        required: false
        schema:
          type: integer
      - name: max_price
        in: query
        description: "(Optional) Maximum price in local currency for the product searched
          for. Either explicitly stated by the user or implicitly inferred from a
          combination of the user's request and the kind of product searched for."
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: Products found
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/ProductResponse"
        '503':
          description: one or more services are unavailable
      deprecated: false
components:
  schemas:
    Product:
      type: object
      properties:
        attributes:
          type: array
          items:
            type: string
        name:
          type: string
        price:
          type: string
        url:
          type: string
      title: Product
    ProductResponse:
      type: object
      properties:
        products:
          type: array
          items:
            "$ref": "#/components/schemas/Product"
      title: ProductResponse