We are trying to create ORDER TYPE for merchant using Rest API but it's giving 401 unauthorised error although app has all required permissions
"elements": [ { "name": "PAYMENTS_W" }, { "name": "EMPLOYEES_W" }, { "name": "EMPLOYEES_R" }, { "name": "ORDERS_R" }, { "name": "MERCHANT_R" }, { "name": "CUSTOMERS_R" }, { "name": "INVENTORY_R" }, { "name": "INVENTORY_W" }, { "name": "CUSTOMERS_W" }, { "name": "MERCHANT_W" }, { "name": "ORDERS_W" }, { "name": "PAYMENTS_R" } ]
API Request :
curl --location 'https://api.clover.com/v3/merchants/NZMFXVBWMQQD1/order_types' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 3df1c38cef***55528ebc20c6efd****' \
--data '{"taxable":"false","isDefault":"true","filterCategories":"false","isHidden":"false","isDeleted":"false","label":"Invoice"}'
Merchant Id : NZMFXVBWM****
Response : {"message":"401 Unauthorized"}