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

Example Request

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

Example Response

{
  "success": true,
  "data": {
    "prices": [
      {
        "id": "price_i62wKFQ8sGnLxQ5G",
        "productId": "prod_X4dUuzsMaruQ4UsX",
        "amount": "29.99",
        "currency": "USD",
        "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
}