Products

Get Product

Retrieve a single trade product by ID. Only products belonging to the organization associated with the API key can be retrieved.

GET
/v1/products/{productId}

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication for API access.

In: header

Path Parameters

productId?number

The unique identifier of the product

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/products/{productId}"
{  "product": {    "id": 456,    "name": "Premium Granite Countertop",    "description": "High-quality granite countertop with polished finish",    "tradeCategoryId": 2,    "pricingType": "FIXED",    "price": 299.99,    "maxPrice": 499.99,    "isDisclosePrice": true,    "faqs": [      {        "question": "What materials do you use?",        "answer": "We use high-quality granite sourced locally."      }    ],    "isActive": true,    "createdAt": "2023-01-01T00:00:00.000Z",    "updatedAt": "2023-01-20T14:00:00.000Z"  }}
{  "success": false,  "message": "Invalid or expired token",  "error": {    "status": 401,    "message": "Invalid or expired token"  }}
{  "success": false,  "message": "Not found",  "error": {    "status": 404,    "message": "Not found"  }}
{  "success": false,  "message": "Internal server error",  "error": {    "status": 500,    "message": "Internal server error"  }}