I keep receiving this message when creating an inventory item using FileMaker 19's "Insert from URL" script step. I've been successfully in the following:
- GET all items from clover
- POST (update) an already existing item
- POST (update) stock quantity
- GET all customer info
I'm stuck at CREATING an item.
I'm using this (replacing MID with merchent ID and authorization token with my actual token)
cURL options:
--location --request POST 'https://api.clover.com/v3/merchants/MID/items' \
--header 'Authorization: Bearer {access token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"hidden": "false",
"defaultTaxRates": "true",
"isRevenue": true,
"name": "Test",
"price": 2500,
"priceType": "FIXED",
"code": "222222",
"sku": "ACC-TE-TEST222",
"cost": 5000
}'
The funny thing is, it works when I use "postman.com". I've copied everything perfectly.
Any help would be greatly appreciated.