We are trying to build a web-app using Clover API where we can view and pay for orders. Here is our workflow:
1. Order is created using Clover Station terminal (manually).
2. We pull the order and items associated with the order using the ORDERS API (/v3/merchants/{mId}/orders)
3. We then allow the user/customer to pay for that order through our web-app using the e-commerce API (https://scl-sandbox.dev.clover.com/v1/orders/{orderId}/pay).
Our credit card token is created by Spreedly and are using endpoint api.clover.com. When we try and POST to https://scl-sandbox.dev.clover.com/v1/orders/{orderId}/pay it gives us a 401 Unauthorized error but with the same OAth token I can retrieve orders and create orders.
Any help here is greatly appreciated.