image
368
blog

This feature is basically for BotSailors reseller users. When you purchase any reseller pack you become an admin. However, you might encounter a scenario where a customer finishes their message credits before the validity period ends.

For example a customer who purchases a 1,000 message credit plan with a one-month validity. If they use up all their credits within a week, they'll be unable to send further messages until they buy another package. 

Here's where the reset usage log feature comes in handy. Even after a customer purchases a new package, their usage log might still reflect the depleted credits from the previous plan. This can lead to confusion and prevent them from sending messages despite having an active plan.

 

Here how you can use the Monthly Usage Reset Button:

Here's the short from of how to reset the monthly usage:

  1. BotSailor dashboard: Go to Administration > User & Team.
  2. Edit customer: Select the customer with the message credit issue and click "Edit".
  3. Reset usage: Toggle the "Reset Monthly Usage" button.

 

If you want learn in details follow this steps:

Step 1: Go to the BotSailors dashboard. And scroll down to the administration section.

Step 2: Click on the User & Team option. And select the user’s Edit option who is having trouble with the message credit.

 

 

Step 3: Toggle the Reset Monthly Usage button to reset this customer's usage.

 

 

This is how you can use the Reset Monthly Usage button in BotSailor.

 

Here how you can use the Monthly Usage Reset Button with API:

If you are using your own customized theme for your software and using BotSailors API to handle your customers monthly usage plans then you can also reset your customers monthly usage plan using the API.

Go to your profile and select the API Developer option.

Then scroll down to User API : Update option. Here you will find many options regarding your user that you can update as you need. We are only going to discuss updating the monthly usage in this blog. 

 

 

This parameter specifically targets resetting a user's current month's usage log.

It accepts two values:

  • reset(1): This resets the user's monthly usage log.
  • keep(0): This value doesn't do a reset.

Now as you already know there are two ways to call the API depending on your preference:

 

GET Request:

Construct a URL like this:
https://botsailor.com/api/v1/update/user?apiToken=YOUR_API_TOKEN&id=USER_ID&reset_monthly_usage=reset(1) 

Then replace the API Token and User ID:  

YOUR_API_TOKEN: Insert your BotSailor API token here. 

USER_ID: Replace this with the ID of the user whose usage you want to reset.

You can make this GET request using your web browser or an HTTP client library in your website's code.

 

POST Request:

You can use a tool like CURL to send a POST request. You can use this command to continue:

curl -X POST \

'https://botsailor.com/api/v1/update/user' \

-d 'apiToken=YOUR_API_TOKEN' \

-d 'id=USER_ID' \

-d 'reset_monthly_usage=reset(1)'

 

Replace the API Token and User ID similar to the GET request instructions.

Well that's all about the Reset Monthly Usage update button. If you still face any problem you are always welcome to contact our customer support.

image

Khairujjaman

27 Jun 2024
  • Categories :

  • How to

(0) Comments

Related Articles

Stay ahead of the curve with BotSailor`s latest articles. Dive into expert analyses, industry trends, and actionable tips to optimize your experience. Explore our articles now and unlock the full potential of your business.

blog

How to set up the WhatsApp Cloud API with BotSailor

BotSailor is a complete WhatsApp marketing automation; it has chatbot, live chat, broadcasting, Shopify & WooCommerc...

READ MORE
blog

Send WooCommerce Order Notifications to WhatsApp by BotSailor Webhook Workflow

You can send Woocommerce Order Notifications to customers via WhatsApp by BotSailor in a very easy and straightforward w...

READ MORE
blog

BotSailor’s Affiliate Program

We're delighted to announce the opening of the BotSailor Affiliate Program today! We developed it as a way to thank the ...

READ MORE