question

vkbrihma avatar image
vkbrihma asked maricris Deactivated edited

How do you test metered billing?

I am on the sandbox environment and pushing to the following URL. But I am not seeing anything on the online billing interface in the app store under my test merchant. Is there an error in the way I constructed the URL? Is there a delay?

Endpoint: http://apisandbox.dev.clover.com:443/v3/apps/CLOVER_APP_ID/merchants/MERCHANT_ID/metereds/CLOVER_METERED_ID_BILL

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

eric avatar image
eric answered maricris Deactivated edited

Metered aggregation currently happens once / month, and at that point, charges are created, and then you can see those charges in the online billing interface in the app store. Until that happens, you can make a GET call to the same endpoint to see all the metered events we have received (you have made)

https://sandbox.dev.clover.com/v3/apps/appId/merchants/mId/metereds/meteredId

And if you saved the metered eventId when you made the initial call, you can also just look up details on that one:

https://sandbox.dev.clover.com/v3/apps/appId/merchants/mId/metereds/meteredId/events/eventId
1 comment
10 |2000

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

vkbrihma avatar image vkbrihma commented ·

when we submit request, as a response we get next {"id"=>"Q24GKQNT2BA5Y", "appMetered"=>{}, "count"=>5, "createdTime"=>1449829216000, "modifiedTime"=>1449829215000, "merchantApp"=>{}} is it correct that we have empty objects for appMetered and charge ? we was expecting that we get some data for what this event is executed

0 Likes 0 ·

Welcome to the
Clover Developer Community