question

sajithv91 avatar image
sajithv91 asked sajithv91 published

Get App Billing Infomation failed when using ApplicationSecret [ SandBox ]

When Getting application billing information using application secret gives "401 Unauthorized" . This is the sample request we used to get billing information.

curl -X GET  https://apisandbox.dev.clover.com/v3/apps/{appId}/merchants/{merchantId}/billing_info   -H 'Authorization: Bearer {applicationSecret}'

But When test using the access token from merchant with same request parameters , It gives success response.

curl -X GET  https://apisandbox.dev.clover.com/v3/apps/{appId}/merchants/{merchantId}/billing_info   -H 'Authorization: Bearer {access_token}'


Is there any API Update happened for clover sandbox environment.

SandboxOAuthAPI Token
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

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

applicationSecret is not a valid auth credential. You need to follow our oauth process and include an oauth token in your request. This process is outlined here - https://docs.clover.com/clover-platform/docs/using-oauth-20.

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

sajithv91 avatar image sajithv91 commented ·

@David Marginian so far we used applicationSecret to get billing information . If we do the changes , moved application secret to access token is there will be a issue in live ??

0 Likes 0 ·
sajithv91 avatar image sajithv91 commented ·

@David Marginian now it seems sandbox working now . Is this change required for live deployment ??

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ sajithv91 commented ·

Use the OAUTH token in the coming months we will be dropping support for the app secret.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community