question

MahlerFive avatar image
MahlerFive asked ·

Export API broken in sandbox environment

Our application uses the export API (defined here: https://github.com/clover/export-api-examples) to do an initial sync of orders when integrating a new merchant. For the past few weeks we've noticed the export API no longer works for us in the sandbox environment. The regular API does still work for us in the sandbox environment, and the export API does still work in the production environment.

Here's an example call (using XXX as merchant ID and YYY as the api token):

POST https://apisandbox.dev.clover.com/v3/merchants/XXX/exports?access_token=YYY
{
    "type": "ORDERS",
    "startTime": 1553990400000,
    "endTime": 1554163200000
}

The response we get back is:

{
    "message": "You do not have the required permissions to create this export."
}

We have orders permissions on our test merchants, and the failure seems to happen across all our test merchants.
OrdersSandbox
2 comments
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.

Is this problem still existent?

0 Likes 0 · ·

Hi @MahlerFive,

can you please respond in a private comment (select viewable options) with the merchant ID you are using, as well as your app ID?

0 Likes 0 · ·

1 Answer

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

For type ORDERS you will need orders read, payments read and customers read. For type ORDERS_RESTRICTED you will need orders read and payments read.

If you need to adjust your permissions to add the above you will need to re-install your application and get a new access token.

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