question

njyeti avatar image
njyeti asked thameema answered

Custom Tender REST API failing with error

REST v3 API call to create a custom tender is failing. am I doing something wrong?

curl -X POST \
  https://apisandbox.dev.clover.com/v3/merchants/mID/tenders \
  -H 'authorization: Bearer <token>' -d '{"visible": true,
  "editable": false,
  "label": "Tender Test",
  "opensCashDrawer": false,
  "supportsTipping": false,
  "enable": true
}'
Error Response:
{"message":"Error inserting new tender into database"}
Custom Tenders
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

thameema avatar image
thameema answered
The last parameter should be "enabled". Change it and it should work.
10 |2000

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