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

  • Search term matched against product names and descriptions.

  • Pass default_price to include the expanded default Price object.

  • Integer numbers.

  • Opaque cursor for pagination. Use the last_key value from the previous response to retrieve the next page.

  • Filter products by a partial name match.

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

  • the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

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=&limit=20&last_key=eyJsYXN0SWQiOiIyMTIxMDAyMWMyODU1MDA3ZWZhMmQ2NTcwMTgiLCJsYXN0Q3JlYXRlZEF0IjoiMjAyNC0wMS0xNVQxMDozMDowMFoifQ%3D%3D&sort_by=created&sort_order=desc' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "items": [
    {
      "active": true,
      "name": "string",
      "description": "string",
      "unit_label": "string",
      "id": "string"
    }
  ],
  "last_key": null
}