Ionic Commerce | API: Ionic Commerce API
- query - Product Search
API for searching for products & recommendations.
import ionic
from ionic.models import components, operations
s = ionic.Ionic()
req = components.QueryAPIRequest(
query=components.Query(
query='<value>',
),
)
res = s.query(req, operations.QuerySecurity(
api_key_header="<YOUR_API_KEY_HERE>",
))
if res.query_api_response is not None:
# handle response
pass| Parameter | Type | Required | Description |
|---|---|---|---|
request |
components.QueryAPIRequest | ✔️ | The request object to use for the request. |
security |
operations.QuerySecurity | ✔️ | The security requirements to use for the request. |
| Error Object | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4x-5xx | / |