question

stevenblakemore avatar image
stevenblakemore asked stevenblakemore commented

Adding a new tender type to a Merchant using the API

Hi all, I want to write a little script to add a tender type to each of our merchants as this takes a good while to complete manually.

I've taken a look at the api documentation and I thought this may be possible by updating the merchant (POST to /v3/merchants/{mId}) with a payload like this:

{
  "tenders":[  
    {  
      "visible":false,
      "label":"Special Voucher",
      "enabled":true
    }
  ]
}

But this doesn't seem to be working. Am I going about this the right way? Is it definitely possible to add a new tender using the API?

Any help would be greatly appreciated.

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

Jacob Abrams avatar image
Jacob Abrams answered stevenblakemore commented

I don't see support in our system for a POST to a v3 tender URI: https://www.clover.com/api_docs#!/mer...

You should try using the v2 API, please see this question & answer: http://devask.clover.com/question/274...

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.

stevenblakemore avatar image stevenblakemore commented ·

Hi Jacob, thanks for the response, I will try the suggestion in your link.

I tried to check the v2 documentation but I was told by Jeff here that the documentation has been removed and I should use the v2 endpoints:

For future reference is the v2 documentation definitely removed, even though there seems to be certain operations not possible with the v3 api?

0 Likes 0 ·

Welcome to the
Clover Developer Community