question

bobbygill avatar image
bobbygill asked David Marginian commented

405 Error on Ecommerce API for Payment

Sometimes we are getting random 405 error from Clover payment API.


https://docs.clover.com/docs/ecommerce-saving-card

When we try to add payment method to customer, it throws "405 PUT not allowed" sometimes. Its totally inconsistent and we are not getting that error every time.

FYI : I am using https://scl-sandbox.dev.clover.com/v1/customers end point for that as mentioned on above reference document.


https://docs.clover.com/docs/ecommerce-accepting-payments => Paying for createdorder


It happens same with Order Pay API endpoint when we try to pay for existing order. Here we are getting "405 POST not allowed".

'https://scl-sandbox.dev.clover.com/v1/orders/{orderId}/pay'


NOTE: Both errors are random and we are not getting this error every time.

OrdersPaymentse-commerce api
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 David Marginian commented

The only time I have seen this is when the url is incorrect. For example when trying to pay for an order but using orders/orderId/pay with a PUT. Unless you can provide some specifics on the requests that are failing I can't help much.

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.

URL is correct as we are not getting this error every time. Most of the time we are getting success from API. This failed only few times and its very inconsistent. There is no specific request when it throws this error.

0 Likes 0 ·

Hmm, I use the Ecomm API a lot, and I have never seen this error when my request was correct. Looking at our code base I only see a single usage of 405, when you would expect. I also cannot find a scl related 405 anywhere in our logs over the last 5 days. If you could provide me with an order id and ~time this happened I could look in more detail, but otherwise, I don't have much to go on.

0 Likes 0 ·

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