question

emiliano avatar image
emiliano asked David Marginian Deactivated answered

endpoint order api

Buen dia estimados, quería hacerles otra consulta.

Al crear un pago de una orden (POST https://sandbox.dev.clover.com/v3/merchants/:mId/orders/:orderId/payments) con Postman arroja el error "500 Internal Server Error".


Cuerpo del pedido:
{
"order": {
"id": "{id}"
},
"device": {
"id": "{id}"
},
"tender": {
"id": "{id}"
},
"amount": 100,
"tipAmount": 0,
"taxAmount": 0,
"cashbackAmount": 0,
"cashTendered": 0,
"externalPaymentId": "1",
"createdTime": 0,
"clientCreatedTime": 0,
"modifiedTime": 0,
"offline": true,
"result": "SUCCESS",
"externalReferenceId": "1"
}


Cuerpo de la respuesta:
{
"message": "500 Internal Server Error"
}

REST 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

·
David Marginian avatar image
David Marginian Deactivated answered

I am not sure what you are intending to do but this endpoint would be used if you would like to add an external payment record to an existing Clover order. If that is what you need to do, please send us the order id so we can see the logs for the request you are making.

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