Skip to main content
GET
/
merchant
/
product
/
list
{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid or missing authentication"
  },
  "data": null
}
Get a list of all products for the merchant.
page
integer
Page number (default: 1)
limit
integer
Items per page (default: 10)
active
boolean
Filter by active status
success
boolean
Indicates if the request was successful
data.products
array
Array of product objects
data.pagination
object
Pagination information

Example Request

curl -X GET "https://api.transaction.gg/merchant/product/list?page=1&limit=10&active=true" \
  -H "Authorization: Bearer jwt_token"

Example Response

{
  "success": true,
  "data": {
    "products": [
      {
        "id": "prod_X4dUuzsMaruQ4UsX",
        "name": "Premium Plan",
        "description": "Monthly premium subscription",
        "recurring": true,
        "recurringInterval": "monthly",
        "active": true,
        "createdAt": "2024-01-01T00:00:00Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 10,
      "total": 1
    }
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 401,
    "code": "UNAUTHORISED",
    "message": "Invalid or missing authentication"
  },
  "data": null
}