question

ramya avatar image
ramya asked ·

Ecommerce v1/refunds API returns processing_error in Sandbox

Ecommerce v1/refunds API working fine for Web access token, But not working for Clover Android SDK returned access token.


returning below response

{"message":"400 Bad Request","error":{"code":"processing_error","message":"Account not found"}}


We have enabled Payments Read and Write Permissions for our app.

REST APIClover Android SDKRefundaccess token
10 |2000 characters needed characters left characters exceeded

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

David Marginian avatar image
David Marginian answered ·

I am not familiar with the details of the authenticate call from the device but I am guessing it gives you a merchant token so the permissions on your app are irrelevant. Jeff can probably confirm this. I am not sure it it possible to use the token returned from the authenticate for this use case.

7 comments Share
10 |2000 characters needed characters left characters exceeded

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

Ok, Thanks David

We will wait for Jeff reply

0 Likes 0 · ·

Any update on this?

0 Likes 0 · ·

Can you please give an update? Merchants are complaining that refunds are not working on our production environment.


Can you please check again.

0 Likes 0 · ·

Is it possible the merchants complaining had your app installed prior to you adding the required permissions? Also, what is the refund flow? Are they trying to refund the payment from your Android app running on the device? If so, why don't they just use a native Clover app to perform the refund?

0 Likes 0 · ·
Show more comments
David Marginian avatar image
David Marginian answered ·

Perhaps the issue is that your app is missing a few of the required permissions specified for the return endpoint: https://docs.clover.com/docs/ecommerce-app-permissions:

Read merchant
Read orders
Read payments
Online payments
2 comments Share
10 |2000 characters needed characters left characters exceeded

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

But we have enabled all permissions.

0 Likes 0 · ·

In your original post you said "We have enabled Payments Read and Write Permissions for our app." So, it appears you are missing the "Online Payments" permission". Provide me your app id in a private/moderators post.

0 Likes 0 · ·
David Marginian avatar image
David Marginian answered ·

I don't understand what you mean by Android SDK. Are you just trying to make a REST call to that endpoint from your application on the device?

1 comment Share
10 |2000 characters needed characters left characters exceeded

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

No, retrieving auth token using authenticate(Activity activity, Account account, boolean forceValidateToken) method from Clover Android SDK


Whenever we are passing this auth token to Ecommerce v1/refunds API. Showing this processing_error

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