question

dantedurango avatar image
dantedurango asked uddoit answered

Invalid length authcode

Not sure why I'm getting this error:

For the url: https://sandbox.dev.clover.com/oauth/token?client_id=CGFH0842BXH1W&client_secret=SECRET&code=ac98cbc4-3abd-a732-f07a-e83dd859968

I'm receiving the following error:

{"message": "Invalid length authcode"}

This code is provided back to me with the callback URL that includes the merchant ID etc.
App MarketOAuthAuth
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

uddoit avatar image
uddoit answered
`code` is unique and is limited to one use. Go through the Oauth flow from the beginning, you'll receive a new auth-`code` which you'll be able to use to generate an auth token.

Confusion is understandable as the error message is poor. `authcode` vs `code` and it's not invalid length, it's more like expired `code`.
10 |2000

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