question

Dan avatar image
Dan asked madalyn commented

Cannot delete a tender

I created a tender using the TenderConnector via the Android SDK. I am now trying to remove it via the TenderConnector's deleteTender() function. The ID I am passing it is definitely correct, I have all permissions and it is being done through the package that created the tender, yet every time I get this response:

com.clover.sdk.v1.ClientException: Error deleting merchant tender as you are not the owner of the system tender

Any ideas?

Edit: Hey I know you guys are busy, a quick 'we know this is a problem' or 'this is working okay for us' would be great.

There is a clue in the V2 api docs (https://www.clover.com/rest-api#GET/v...) claiming that the delete rest end point for V2 only works if the Tender has editable set to true. I can see that my tenders have editable set to false but cannot see how to change that or even initialize it to true when creating it. Some more clues are needed here.

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.

michael avatar image michael commented ·

What is the id of the tender you created? (You can email it to michael@clover.com if you don't want to post it here).

0 Likes 0 ·
Dan avatar image Dan commented ·

Thank you Michael, I've mailed you there :)

0 Likes 0 ·

1 Answer

madalyn avatar image
madalyn answered madalyn commented

Can this question be reopened? I am having the same issue.

Is there a way for v1 tenders be made editable? Any modifications I try to do to any v1 tenders I get this same response.

All v1 tenders are hard-coded for editable set to false, so I'm not sure what the solution for deleting a v1 tender is:
https://github.com/clover/clover-android-sdk/blob/master/clover-android-sdk/src/main/java/com/clover/sdk/v1/tender/Tender.java#L57

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.

madalyn avatar image madalyn commented ·

Just to be clear, I cannot update these v1 Tenders to be editable after the fact (from when they were first created). I get the same "Error modifying merchant tender as you are not the owner of the system tender" error message.

https://docs.clover.com/clover-platform/reference#updatemerchanttender-1

POST https://apisandbox.dev.clover.com/v3/merchants/mId/tenders/tenderId

with editable updated to true.

0 Likes 0 ·

Welcome to the
Clover Developer Community