> For the complete documentation index, see [llms.txt](https://bagelpay.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bagelpay.gitbook.io/docs/documentation/developers-and-api-usage/products.md).

# Products

## Endpoints Overview <a href="#endpoints-overview" id="endpoints-overview"></a>

The following API endpoints allow you to create, update, manage, and retrieve products, including uploading images for them.

<table><thead><tr><th width="204.4447021484375">Action</th><th width="112.688720703125">Method</th><th>Description</th></tr></thead><tbody><tr><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT/pages/0dfc7b9d25f84b79f84d7fbbb7ac94e9a6427e1f#post-api-payments-checkouts">Create Product</a></td><td><code>POST</code></td><td>A product can be a <code>single-pay product</code> or a <code>subscription-based service</code>. To create a new product, send a <code>POST</code> request to the endpoint with details such as name, description, price, currency, and whether it is a recurring product.</td></tr><tr><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT/pages/bbfb334ceba59f3d50ae2dc828d9846f012f555d#get-api-products-list">List Products</a></td><td><code>GET</code></td><td>Get a list of all products associated with your account.</td></tr><tr><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT/pages/bbfb334ceba59f3d50ae2dc828d9846f012f555d#get-api-products-product_id">Get Product Detail</a></td><td><code>GET</code></td><td>Get detailed information about a specific product.</td></tr><tr><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT/pages/bbfb334ceba59f3d50ae2dc828d9846f012f555d#post-api-products-product_id-archive">Archive Product</a></td><td><code>POST</code></td><td>Archive a product associated with your account.</td></tr><tr><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT/pages/bbfb334ceba59f3d50ae2dc828d9846f012f555d#post-api-products-product_id-unarchive">Unarchive Product</a></td><td><code>POST</code></td><td>Unarchive a product associated with your account.</td></tr><tr><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT/pages/bbfb334ceba59f3d50ae2dc828d9846f012f555d#post-api-products-update">Update Product</a></td><td><code>POST</code></td><td>Update the product information.</td></tr></tbody></table>

{% hint style="info" %}
This guide provides instructions for utilizing the API in Test Mode. To transition to Live Mode, please refer to the following endpoint: [https://live.bagelpay.io](https://live.bagelpay.io/)
{% endhint %}

## Notes <a href="#notes" id="notes"></a>

* All requests must include an authorization token in the `Authorization` header.
* Ensure that the `product_id` matches an existing product.
