التوثيق

List products

Lists products with search and filters. Supports: - Active filter (`active=true/false`) - Metadata filter (JSON string) - Search in `name`, `description`, and `unitLabel` fields - Pagination

GET
/products

Lists products with search and filters.

Supports:

  • Active filter (active=true/false)
  • Metadata filter (JSON string)
  • Search in name, description, and unitLabel fields
  • Pagination
AuthorizationBearer <token>

API key for merchant integrations. Send as Authorization: Bearer <your key>.

In: header

Query Parameters

page?|

Page number (1-based)

Range1 <= value <= 2147483647
Default1
limit?|

Number of items per page

Range1 <= value <= 100
Default20
active?|

Filter by active status

search?|

Search name, description, or unit label (comma-separated terms)

metadata?|

Metadata filter as JSON string (e.g. {"tier":"premium"})

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/products"
{  "data": [    {      "id": "prod_abc123",      "name": "Premium Plan",      "description": "Premium subscription plan",      "image": "https://example.com/image.jpg",      "unitLabel": "month",      "active": true,      "isSystemCreated": false,      "metadata": {        "category": "subscription"      },      "prices": [        null      ],      "createdAt": "2024-01-01T00:00:00.000Z",      "updatedAt": "2024-01-01T00:00:00.000Z"    }  ],  "totalCount": 42,  "page": 1,  "limit": 20,  "totalPages": 3}