List Products

​

Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.

You can also create and manage products in the Merchant Dashboard.

Related guide: Subscriptions

Query Parameters

  • Pass default_price to include the expanded default Price object.

  • Maximum number of products to return.

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

  • Filter products by a case-insensitive partial name match.

  • Filter products by active status.

  • Filter products created at or after this time.

  • Filter products created before this time.

  • Field used to sort the result.

  • Sort direction.

  • Search product names and descriptions.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v1/products
curl 'https://api.paypercut.io/v1/products?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
}