Skip to main content
GET
/
api
/
canary
/
products
List Products
curl --request GET \
  --url http://localhost:3000/api/canary/products \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "product_001",
      "merchantId": "merchant_456",
      "name": "Airtime",
      "description": "Mobile phone airtime",
      "amount": 5000,
      "currency": "ZAR",
      "active": true,
      "metadata": {
        "category": "telecom"
      },
      "createdAt": "2025-01-15T10:30:00.000Z",
      "updatedAt": "2025-01-15T10:30:00.000Z"
    },
    {
      "id": "product_002",
      "merchantId": "merchant_456",
      "name": "Data Bundle",
      "description": "1GB data bundle",
      "amount": 10000,
      "currency": "ZAR",
      "active": true,
      "metadata": {
        "category": "telecom",
        "size": "1GB"
      },
      "createdAt": "2025-01-14T09:20:00.000Z",
      "updatedAt": "2025-01-14T09:20:00.000Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 25,
    "hasMore": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

active
boolean

Filter by active status

merchantId
string
required

The ID of the merchant. This parameter is required.

limit
number

Maximum number of records to return

offset
number

Number of records to skip

Response

Successfully retrieved products

data
object[]
required
pagination
object
required