Search products
Returns products whose name or description matches the supplied search term.
Search results are not intended for read-after-write flows. Use List Products when you need to retrieve a newly created or updated product immediately.
Related guide: Products and Prices
Query Parameters
- Type: stringsearchmin length:1required
Search term matched against product names and descriptions.
- enumexpandconst:default_price
Pass
default_priceto include the expanded default Price object.values- default
_price
- Type: integerlimitmin:1max:100
Integer numbers.
- Type: stringlast
_key Opaque cursor for pagination. Use the
last_keyvalue from the previous response to retrieve the next page. - Type: stringname
Filter products by a partial name match.
- Type: booleanactive
- Type: string Format: date-timestart
_date the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- Type: string Format: date-timeend
_date the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- Type: string enumsort
_by values- created
- updated
- name
- Type: string enumsort
_order values- asc
- desc
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/v1/products/search
curl 'https://api.paypercut.io/v1/products/search?search=' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"items": [
{
"active": true,
"name": "string",
"description": "string",
"unit_label": "string",
"id": "string"
}
],
"last_key": null
}
