# SellAuth Bot

### **Overview**

The SellAuth Bot allows users to manage their SellAuth shops, products, invoices, and customers directly from Discord. This guide provides detailed information on all available commands and how to use them.

***

### 1. **General User Commands**

* **`/sa_help`** : Displays all available commands.
* **`/claim`** : Claim your buyer role using your invoice ID and email address.
* **`/my_orders`** : View all your orders.

***

### 2. **General Commands**

* **`/dashboard` :** Access the bot's dashboard.
* **`/ping` :** Check the bot's latency.

***

### 3. **Shop Management Commands**

* **`/get_shops` :** Retrieve all shops for the authenticated user.
* **`/get_shop` :** Get details of your shop.
* **`/create_shop` :** Create a new shop.
* **`/update_shop` :** Update your shop's information.
* **`/shop_stats` :** Get statistics for your shop.

***

### 4. **Product Management Commands**

* **`/shop_products` :** Retrieve a list of products in your shop.
* **`/get_product <product_id>` :** Get details of a specific product.\
  `product_id`: ID of the product.
* **`/create_product` :** Create a new product.
* **`/update_product <product_id>` :** Update product information.\
  `product_id`: ID of the product.
* **`/delete_product <product_id>` :** Delete a product.\
  `product_id`: ID of the product.

***

### 5. **Product Group Commands**

* **`/get_groups` :** Retrieve all groups in your shop.
* **`/get_group <group_id>` :** Get details of a specific group.\
  `group_id`: ID of the group.
* **`/create_group` :** Create a new group.
* **`/update_group <group_id>` :** Update group information.\
  `group_id`: ID of the group.
* **`/delete_group <group_id>` :** Delete a group.\
  `group_id`: ID of the group.

***

### 6. **Coupon Management Commands**

* **`/get_coupons` :** Retrieve all coupons in your shop.
* **`/get_coupon <coupon_id>` :** Get details of a specific coupon.
* **`/create_coupon <discount_type> <global_coupon> <max_uses> <expiration_date>`** : Create a new coupon.\
  `code`: Promo code.\
  `discount`: Discount amount (ex: 5 for percentage or 10.0 for a fixed amount).\
  `discount_type`: Discount type (percentage or fixed).\
  `global_coupon`: Is this a global coupon? (true/false).\
  `max_uses`: Maximum uses (optional, integer).\
  `expiration_date`: Expiration date (YYYY-MM-DD, optional).
* **`/update_coupon <coupon_id> <discount_type> <global_coupon> <max_uses> <expiration_date>`** : Update an existing coupon.\
  `coupon_id`: ID of the coupon.\
  `code`: New promo code (optional).\
  `discount`: New discount amount.\
  `discount_type`: New discount type (percentage/fixed, optional).\
  `global_coupon`: Is it a global coupon? (true/false, optional).\
  `max_uses`: New maximum uses (optional, integer).\
  `expiration_date`: New expiration date (YYYY-MM-DD, optional).
* **`/delete_coupon <coupon_id>`** : Delete a coupon.\
  `coupon_id:` ID of the coupon.

***

### 7. **Invoice Management Commands**

* **`/get_invoices`** : Retrieve all invoices from your shop.
* **`/get_invoice <invoice_id>`** : Get details of a specific invoice.\
  `invoice_id:` Unique ID of the invoice.
* **`/process_invoice <invoice_id>`** : Process an invoice.\
  `invoice_id:` Unique ID of the invoice.
* **`/archive_invoice <invoice_id>`** : Archive an invoice.\
  `invoice_id:` Unique ID of the invoice.
* **`/unarchive_invoice <invoice_id>`** : Unarchive an invoice.\
  `invoice_id:` Unique ID of the invoice.

***

### 8. **Feedback Management Commands**

* **/get\_feedbacks** Retrieve all feedback from your shop.
* **`/get_feedback <feedback_id>`** : Get details of a specific feedback.\
  `feedback_id:` ID of the feedback.
* **`/appeal_feedback <feedback_id>`** : Appeal a feedback.\
  `feedback_id:` ID of the feedback.
* **`/reply_feedback`** : Reply to feedback.

***

### 9. **Image Management Commands**

* **`/get_images`** : Retrieve all images from your shop.
* **`/delete_image <image_id>`** : Delete an image.\
  `image_id:` ID of the image.

***

### 10. **Domain Management Commands** [*`🔵`*](https://emojipedia.org/fr/disque-bleu) *`in development`*

* **`/get_domains`** : Retrieve a list of all domains.
* **`/get_domain <domain_id>`** : Get details of a custom domain in your shop.\
  `domain_id:` ID of the domain.
* **`/create_domain`** : Add a custom domain to your shop.\
  `hostname:` Hostname to be added as a custom domain.
* **`/update_domain`** : Update domain information.
* **`/delete_domain <domain_id>`** : Delete a domain.\
  `domain_id:` ID of the domain.

***

### 11. **Theme Management Commands**

* **`/get_themes`** : Retrieve all themes in your shop.
* **`/get_theme <theme_id>`** : Get details of a theme.\
  `theme_id:` ID of the theme.
* **`/create_theme`** : Create a new theme.
* **`/update_theme <theme_id> <theme_type> <image_id>`** : Update a theme.\
  `theme_id:` ID of the theme.\
  `name:` New name (optional).\
  `description:` New description (optional).\
  `theme_type:` New theme type (public/private, optional).\
  `image_id:` New image ID (optional).
* **`/delete_theme <theme_id>`** : Delete a theme.\
  `theme_id:` ID of the theme.
* **`/apply_theme <theme_id>`** : Apply a theme.\
  `theme_id:` ID of the theme.
* **`/import_theme`** : Import a theme.

***

### 12. **Payment Management Commands**

* **`/get_payouts`** : Retrieve a list of all payouts.
* **`/get_payout <payout_id>`** : Get details of a specific payout.\
  `payout_id:` ID of the payout.
* **`/get_payout_balances`** : Retrieve payout balances.
* **`/get_payout_transactions`** : Get all payment transactions for your shop.
* **`/create_payout`** : Create a new payout.\
  `currency:` Currency (ex: btc/ltc).\
  `address:` Recipient's address.\
  `amount:` Amount to pay.

***

### 13. **Blacklist Management Commands**

* **`/get_blacklist`** : Retrieve all blacklist entries.
* **`/add_blacklist_entry`** : Add an entry to the blacklist.
* **`/delete_blacklist_entry`** : Remove an entry from the blacklist.

***

### 14. **Reseller Rank Commands** [*`🔵`*](https://emojiterra.com/fr/rond-bleu/) *`in development`*

* **`/add_rank <amount_required>`** : Create a new reseller role with a required amount and optional emoji.\
  `role`: Role to assign.\
  `amount_required`: Total amount required for the role.\
  `emoji`: Emoji to represent the rank (optional).
* **`/ranks`** : Display all reseller roles and the amount required to obtain them.
* **`/edit_rank` :** Edit a rank by selecting it.
* **`/delete_rank`** : Delete a rank by selecting it.

***

### 15. **User Management Commands**

* **`/top`** : Display the top 10 customers by total amount spent.
* **`/get_user <discord_id> <client_id>`** : Get user details using their Discord ID, client ID, or email.\
  `discord_id:` User's Discord ID (optional).\
  `client_id:` User's client ID (optional).\
  `email:` User's email (optional).
* **`/unassign_user <discord_id> <client_id>`** : Unassign a Discord user from a client profile or email.\
  `discord_id:` User's Discord ID (optional).\
  `client_id:` User's client ID (optional).\
  `email:` User's email (optional).

***

### 16. **Payment Processor Commands**

* **`/update_payment_processors <paypal_email> <paypal_method> <paypal_client_id> <paypal_client_secret> ...`** : Update payment processor information.

***

### 17. **Utility Commands**

* **`/nuke`** : Instantly clear all content in a channel.

***

### 18. **SellAuth Bot Benefits**

* **Real-Time Data**: Fetches real-time information from SellAuth.
* **Efficiency**: Easily manage shops, products, invoices, and clients.
* **Automation**: Automates data retrieval and calculations.
* **User-Friendly**: Clear, intuitive commands for both users and admins.

***

### 19. **Frequently Asked Questions (FAQ)**

* **Q: How do I claim my buyer role?**\
  **A:** Use the /claim command with your invoice ID and email.
* **Q: How do I view all my orders?**\
  **A:** Use the /my\_orders command.
* **Q: How do I get details about my shop?**\
  **A:** Use the /get\_shop command.

***

### 20. **Conclusion**

SellAuth Bot makes managing your SellAuth shop and interacting with your customers on Discord seamless. With a wide range of commands to handle products, invoices, coupons, and more, it’s the ultimate tool for any SellAuth user. For further assistance, please contact us on [Discord](https://discord.gg/anewvision).


---

# 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://av0.gitbook.io/av/bots/sellauth-bot.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.
