question

dda avatar image
dda asked dda commented

metered events not working on the sandbox

Our web app is having trouble connecting to the metered events for the sandbox api.

we are sending a post to: https://apisandbox.dev.clover.com/v3/...

It includes the correct api key in the header, but we receive: {"message":"401 Unauthorized"}

Is there something incorrect about the request or are metered events not available in the sandbox?

Sandbox
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.

dda avatar image dda commented ·

Clover, could you please advise??? Surely you must know if Sandbox supports charges from metered events???

0 Likes 0 ·

1 Answer

Arjan Dehar avatar image
Arjan Dehar Deactivated answered dda commented

Yes, you can create metered events in the sandbox. Note that this is a test environment so no test merchants will actually be billed for the event. I just created a sample metered event on my test merchant and it worked fine.

I made a POST request to: https://apisandbox.dev.clover.com/v3/... with an empty body.

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.

dda avatar image dda commented ·

Thanks, turns out it was error on our end. However, even though this is a test merchant, should we still see charges appearing in the developer dashboard or would charges only appear if the merchant is a true merchant?

0 Likes 0 ·
Arjan Dehar avatar image Arjan Dehar commented ·

Charges will not appear in the merchant dashboard since this is not a real merchant that can be billed. Instead you can use these APIs to verify the metered event was saved: https://sandbox.dev.clover.com/apidocs#!/apps/GetMerchantAppMeteredEvents https://sandbox.dev.clover.com/apidocs#!/apps/GetMerchantAppMeteredEvent

0 Likes 0 ·

Welcome to the
Clover Developer Community