Skip to Content

Products

Get Product

Retrieve a single product by its ID.

Endpoint

GET /api/products/{productId}

Parameters

  • productId (integer, required): The product ID.

Response

  • 200 OK: Returns the product as JSON.
  • 404 Not Found: If the product does not exist.

Example Request

GET /api/products/123

Example Response

{ "product": { // ...product fields... } }

Get Product Price

Retrieve the price and tax information for a product.

Endpoint

GET /api/products/{productId}/price

Parameters

  • productId (integer, required): The product ID.
  • customizations (object, optional): Customization/attribute values.

Response

  • 200 OK: Returns price details as JSON.
  • 404 Not Found: If the product does not exist.

Example Request

GET /api/products/123/price

Example Response

{ "product": { // ...product fields... }, "cart": { "price": 100.0, "net_price": 80.0, "tax": 20.0, "price_original": 120.0, "net_price_original": 96.0, "tax_original": 24.0, "quantity": 1 } }
Last updated on