# API

- [Introduction](https://docs.keepup.store/docs/api/introduction.md): Learn how to integrate our APIs into your application.
- [Sales](https://docs.keepup.store/docs/api/sales.md): The Sales API lets you programmatically manage sales data in Keppup Store. Use it to retrieve, add, modify, or manage sales, seamlessly integrating sales management into your applications.
- [List Sales](https://docs.keepup.store/docs/api/sales/list-sales.md): This endpoint retrieves a list of all sales. You can apply filters to narrow down the results based on date, status, customer, and more.
- [Fetch Sale](https://docs.keepup.store/docs/api/sales/fetch-sale.md): Fetches details of a specific sale using the sale ID. This is useful for viewing complete sale details.
- [Add Sale](https://docs.keepup.store/docs/api/sales/add-sale.md): This endpoint allows you to add a new sale record.
- [Edit Sale](https://docs.keepup.store/docs/api/sales/edit-sale.md): This endpoint enables you to edit details of an existing sale that has not been finalized.
- [Update Balance](https://docs.keepup.store/docs/api/sales/update-balance.md): This endpoint enables you to add payment to  sale record based on a sale id.
- [Cancel Sale](https://docs.keepup.store/docs/api/sales/cancle-sale.md): This endpoint enables you to cancel a sale record based on a sale id.
- [Refund Sale](https://docs.keepup.store/docs/api/sales/refund-sale.md): This endpoint enables you to refund a sale record based on a sale id.
- [Products](https://docs.keepup.store/docs/api/products.md): The Inventory API gives developers direct access to KEEPUP Store product data for seamless integration of inventory management features into your applications.
- [List Products](https://docs.keepup.store/docs/api/products/list-products.md): This endpoint retrieves a list of products based on specified criteria such as product name, SKU, barcode, category, stock status, and expiration status.
- [Fetch Product](https://docs.keepup.store/docs/api/products/fetch-product.md): Fetches details of a specific product using the product ID. This is useful for viewing complete product details.
- [Add Product](https://docs.keepup.store/docs/api/products/add-product.md): This endpoint allows for the addition of a new product to the inventory, including uploading images, setting pricing, stock levels, and other details.
- [Edit Product](https://docs.keepup.store/docs/api/products/edit-product.md): This endpoint enables you to edit details of an existing product.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keepup.store/docs/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
