question

zendeyo avatar image
zendeyo asked David Marginian Deactivated commented

ORDERS FROM API

Hi,

Our sandbox account is working perfectly but on the production app the API isn't returning the order information and details. Below you can see the information delivered from the production api is different.


{

"elements": [ {

"id": "HR3ZZZXWCWWGP",

"label": "Dine In",

"taxable": true,

"isDefault": false,

"filterCategories": false,

"isHidden": true,

"hoursAvailable": "ALL",

"isDeleted": false

}, {

"id": "5J5GB2XGQ9JAE",

"label": "Curbside Pickup",

"taxable": true,

"isDefault": false,

"filterCategories": false,

"isHidden": true,

"hoursAvailable": "ALL",

"isDeleted": false

}, {

"id": "TVKZ9W1J3J0AT",

"label": "In-store Pickup",

"taxable": true,

"isDefault": false,

"filterCategories": false,

"isHidden": true,

"hoursAvailable": "ALL",

"isDeleted": false

}, {

"id": "VYMSQPD2YJGD8",

"labelKey": "com.clover.order.type.dine_in",

"label": "Dine In",

"taxable": true,

"isDefault": true,

"filterCategories": false,

"isHidden": false,

"fee": 0,

"minOrderAmount": 0,

"maxOrderAmount": 0,

"maxRadius": 0,

"avgOrderTime": 0,

"hoursAvailable": "BUSINESS",

"isDeleted": false,

"systemOrderTypeId": "DINE-IN-TYPE"

}

],

"href":



REST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

You just publicly exposed a production access token, this token has been revoked. Please, exercise caution when handling access tokens.

Regarding your post, I am not sure what your question is or what you are expecting to see. You are making a call to the order_types endpoint not the orders endpoint.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zendeyo avatar image
zendeyo answered David Marginian Deactivated commented

Thank you, is there a way to delete the post or do we need a new token? This is for a demo account

4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image David Marginian ♦♦ commented ·

The token has been revoked. You will need to obtain a new token.

1 Like 1 ·
zendeyo avatar image zendeyo David Marginian ♦♦ commented ·
How do we request a new token?
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ zendeyo commented ·

Tokens should be obtained via the OAuth flow. You should be able to select your app from the merchant dashboard to trigger the OAuth flow.

0 Likes 0 ·
Richelle Herrli avatar image Richelle Herrli ♦♦ commented ·

Please also move your authentication to the authorization bearer header as URL query parameters are being phased out as acceptable authentication. You can find more information here: https://medium.com/clover-platform-blog/change-is-coming-api-authentication-7d3a85d9abb4

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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