question

imenu360 avatar image
imenu360 asked imenu360 commented

Metered billing not working

For billing, we are triggering meter event using GET request with accesstoken as follows -

https :// api. clover. com /v3/apps/{appId}/merchants/{merchantId}/metereds/{meterId}?count={amount}

In response we are getting blank array [] without any exception or error message.

But when we list metered bill in Billing section of our App, we get - "No charges found".

Thanks for any help in advance,

Merchant
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Miguel avatar image
Miguel Deactivated answered imenu360 commented

To create a metered billing event, you should send a POST request instead of a GET request to the following endpoint: POST /v3/apps/{aId}/merchants/{mId}/metereds/{meteredId}

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

imenu360 avatar image imenu360 commented ·

Now we post data as follows :

{ "modifiedTime": 636294912284716911, "appMetered": { "app": { "id": "AppId" }, "amount": 220, "active": true }, "count": 220, "createdTime": 636294912284716911 }

And we get Response as :

{"id": "TVWTN1GNZH9PW", "appMetered": {}, "count": 1, "createdTime": 1493874655000, "modifiedTime": 1493874654000, "merchantApp": {}}

But still there is no metered bill generated in billling section.

1 Like 1 ·
maribel avatar image maribel commented ·

Billing section of your developer dashboard won't show each metered charge - it will total them up throughout the month and charge the merchant the next month (1st of the month). For example, the metered charges you're making now, you won't see in the Billing section until June 1st.

Also, here's documentation on metered billing: https://docs.clover.com/launch/billin....

0 Likes 0 ·

Welcome to the
Clover Developer Community