question

madhupatel avatar image
madhupatel asked ·

team I just need some confirmation from your end.

1) my OAuth API token is working fine for CLOVER DEVELOPER APIS but not working for E-COMMERCE SERVICE API can you please suggest me what we need to do?

by using E-COMMERCE SERVICE API in want to create order refund.

it's giving me error: your OAuth token is incorrect or has expired

2) I have created void a line item and I want to get order line items that were recorded after a void so I am using below endpoint for it and it's giving me an error

ENDPOINT: https://sandbox.dev.clover.com/v3/merchants/mId/voided_line_items

ERROR: {

"message": "Please specify a time window for this query."

}

can you explain the meaning of this error and also can you please send me 1 request query for reference?


REST APIRefund
10 |2000 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered ·

1) What is your app id? Are you certain your app has the correct permissions? https://docs.clover.com/docs/ecommerce-app-permissions. If it doesn't and you have to add them you will need to uninstall and then reinstall your app - https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html

2) You need to add a time based filter to your request - e.g.

createdTime>=[unix-time]&filter=createdTime<=[unix-time]
Share
10 |2000 characters needed characters left characters exceeded

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

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