question

raman1234 avatar image
raman1234 asked raman1234 commented

status code: 403 App doesn't have required permission

I used below code for adding credit amount in order

orderConnector.addCredit(order.getId(),new Credit().setAmount((long) 6));

but getting this error
status code: 403 App doesn't have required permission

I allowed all the permission on clover dashboard for customers,employees,inventory,orders,merchants, still getting same error.
Thanks in advance,

Clover Android SDK
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 raman1234 commented

https://clover.github.io/clover-android-sdk/com/clover/sdk/v3/order/OrderV31Connector.html

addCredit(String orderId, Credit credit)
Not available to non-Clover apps.

That is a private API. If you want to perform a manual/naked refund you will need to use PaymetnConnector.

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.

raman1234 avatar image raman1234 commented ·

@David Marginian thanks for your reply


0 Likes 0 ·

Welcome to the
Clover Developer Community