question

kal-sampath avatar image
kal-sampath asked parquet76 edited

Hosted Checkout responds with "Unauthorized"

Hosted Checkout responds with "Unauthorized" {"status":{"reason":"Unauthorized","code":401},"message":"COS get merchant failed with exception: 401 Unauthorized: [{\"message\":\"401 Unauthorized\"}]"} on

https://sandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts

but below urls are working

https://sandbox.dev.clover.com/v3/merchants/{_merchantId}/employees/{employeeId}

https://apisandbox.dev.clover.com/v3/merchants/{_merchantId}


Developer Pay 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.

1 Answer

·
parquet76 avatar image
parquet76 answered parquet76 edited

Have you read the docs? From your post it is unclear how you generated the token you are using and what per missions it has. You need to be using a hosted checkout ecom token. https://docs.clover.com/dev/docs/making-a-checkout-request.

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