question

jkuhn avatar image
jkuhn asked David Marginian Deactivated edited

Order creation permission error

I am trying to create an order using the API in the sandbox. However, after applying pretty much every permission available, I'm still getting this error: "403 Forbidden" : "Processing Error" : "Invalid permissions for expandable fields."

I saw a recent post that explained that when creating an order, that you need to have Read permission on merchant, customer, and orders. I applied these permissions on my Test Food Truck Pub app that exists on my account in the sandbox. I've also tried applying all permissions and I'm still getting the same error. I also created a brand new Access Token with OAuth to see if that would reset things, but I still cannot successfully create an order. My permissions currently look like the below. I've also pasted my Request body below.

Endpoint: https://scl-sandbox.dev.clover.com/v1/orders


Request Body:

{application/json={

"currency": "usd",

"email": "john@foodtruck.pub",

"items": [

{

"amount": 500,

"currency": "USD",

"description": "hot bites",

"quantity": 1

}

]

}}


App Permissions in Sandbox:

e-commerce api
1598831388319.png (52.3 KiB)
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

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

Obtaining a new token after changing your apps permissions is not enough. After changing your apps permissions you need to uninstall and reinstall the application and then obtain a new token, more information here:

https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html

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.

jkuhn avatar image jkuhn commented ·

That fixed it, thanks!

0 Likes 0 ·

Welcome to the
Clover Developer Community