question

arcturus avatar image
arcturus asked arcturus edited

Pay for an order sandbox API 400 Bad request

In the existing application pay for an order endpoint started to return 400 Bad request response.

It was working before without any issue for requests like:

{

"source": "token"

}

* I looked at the documentation (https://docs.clover.com/docs/ecommerce-accepting-payments) and tried to add email as well, but the result was the same.

Endpoint:

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

Response:

{

"message": "400 Bad Request",

"error": {

"code": "processing_error",

"message": "Unknown Error"

}

}


Can anybody help?

Update:

Now the responses are 404 for most of the requests.

Update

This looks like resolved, everything works again.

Payments
10 |2000

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

parquet76 avatar image
parquet76 answered

Are you sure you are passing a valid token? Are you sure you haven't already used the token?

10 |2000

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

arcturus avatar image
arcturus answered

Yes I'm sure. Just noticed that the issue may be merchant related. Some other endpoints return 400 bad request response. (get customers, get customer, create customer, store card) All of this requests were working before.

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