question

shamal avatar image
shamal asked shamal commented

An invalid device serial number [SERIALNO] or token was provided.

Hi
When we were testing our approved production app, We encountered the above issue.
we provide the token and the serial number is also correct.
Please let us know why we receive this error. (everything works in sandbox with a test merchant)

API endpoint: https://api.clover.com/connect/v1/payments

Response:
{

"message": "An invalid device serial number [SERIALNO] or token was provided.",

"requestId": "requestId",

"requestType": "PAY",

"type": "BAD_REQUEST"

}

REST APICloud Pay Display
10 |2000

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

shamal avatar image
shamal answered shamal commented

@bryan.vargas could you please help us with this issue?

2 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.

bryanvargas avatar image bryanvargas ♦♦ commented ·
is the device the merchant device or are you using the sandbox device. ? Are you using a prod token?
0 Likes 0 ·
shamal avatar image shamal bryanvargas ♦♦ commented ·


yes, this merchant device.

yes, it's a prod token, received via Auth flow.

Below are the endpoints used in the production.

Auth flow: https://www.clover.com//authorize
Token: https://api.clover.com/oauth/v2/token
Refresh: https://api.clover.com/oauth/v2/refresh

send a payment request: https://api.clover.com/connect/v1/payments

Please let us know what is wrong here.

0 Likes 0 ·
shamal avatar image
shamal answered

is there a way to validate the token? My prod token data shows like this

{

"sub": "developer-app",

"iss": "auth-token",

"iat": 1714423575,

"exp": 1714425375,

}

is the "sub" field value is correct?



10 |2000

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

shamal avatar image
shamal answered shamal commented

@bryan.vargas
could you please help us resolve this issue?

2 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.

bryanvargas avatar image bryanvargas ♦♦ commented ·
can you verify the device ID you are entering is correct. I would recommend doing a get DEVICE call to verify the value
0 Likes 0 ·
shamal avatar image shamal bryanvargas ♦♦ commented ·

I tried with the device status call : https://api.clover.com/connect/v1/device/status
but I still get the same error. any idea?
1716416179033.png

0 Likes 0 ·
1716416179033.png (22.2 KiB)
girish avatar image
girish answered

Hi, I have facing the same error : "An invalid device serial number [SERIALNO] or token was provided" when called the production API endpoint: https://api.clover.com/connect/v1/payments.

If you have any solution for this please let me know.

Thanks

10 |2000

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