# Products and prices

Solidgate API for <a href="https://docs.solidgate.com/billing/product-and-price-management/" target="_blank">billing</a> management allows merchants to create and update products and pricing effectively, ensuring businesses can adapt to diverse customer needs and preferences.

## Create product

 - [POST /products](https://api-docs.solidgate.com/api/products-and-prices/create-product.md): This method allows merchants to create new products by providing the required details.


  Products created via API cannot be edited in the Solidgate Hub unless a default price is set. To add a default price and enable editing, use the create product price operation.

## Get product list

 - [GET /products](https://api-docs.solidgate.com/api/products-and-prices/get-products.md): By using this method, merchants can find products and retrieve their details by applying filters such as product identifier, status, trial availability, and sorting criteria with pagination support.

## Update product

 - [PATCH /products/{product_id}](https://api-docs.solidgate.com/api/products-and-prices/update-product.md): This method updates the existing product with specified details and returns the updated product information.


  Recurring products can only be updated when all associated subscriptions are in expired status. Products without subscriptions can be updated without restrictions.

## Get product by ID

 - [GET /products/{product_id}](https://api-docs.solidgate.com/api/products-and-prices/get-product-by-id.md): This method allows merchants to obtain the existing product by its identifier.

## Archive product

 - [POST /products/{product_id}/archive](https://api-docs.solidgate.com/api/products-and-prices/archive-product.md): By using this method, merchants can archive products.


  Note that the archived product cannot be restored or added to new subscriptions. Existing subscriptions with the archived product remain active until cancelled.

## Create product price

 - [POST /products/{product_id}/prices](https://api-docs.solidgate.com/api/products-and-prices/create-product-price.md): By using this method, merchants can create a new product price with specified details and retrieve the created product price information.

## Get product prices

 - [GET /products/{product_id}/prices](https://api-docs.solidgate.com/api/products-and-prices/get-product-prices.md): This method allows merchants to retrieve product prices based on the specified filter criteria and pagination settings, returning the results along with pagination information.

## Retrieve prices

 - [POST /products/prices/list](https://api-docs.solidgate.com/api/products-and-prices/find-prices.md): This method allows merchants to retrieve prices in bulk based on specified filter criteria with pagination settings.


  
    Without filters, the request returns all prices in the merchant account.
    With filters, each filter field requires a value to avoid validation errors.

## Update product price

 - [PATCH /products/{product_id}/prices/{product_price_id}](https://api-docs.solidgate.com/api/products-and-prices/update-product-price.md): By using this method, merchants can update the existing product price, providing the updated product price details.


  Recurring products can only be updated when all associated subscriptions are in expired status. Products without subscriptions can be updated without restrictions.

## Calculate product price

 - [POST /products/calculatePrice](https://api-docs.solidgate.com/api/products-and-prices/calculate-product-price.md): This method allows merchants to calculate an estimated product price for a specific location.


  Calculated prices returned by this endpoint are estimates. The final charged amount may differ at the time of billing due to product updates, tax changes, or other configuration changes.

