question

emiliano avatar image
emiliano asked emiliano edited

Consulta sobre endpoint de order custom

Buenas tardes.

Se generó una orden personalizada (POST https://sandbox.dev.clover.com/v3/merchants/{mId}/orders) utilizando Postman que no se visualiza en el dispositivo Clover Flex ni en el dashboard del comercio.

Cuerpo de la solicitud:

{

"currency": "ARS",

"total": 1000,

"externalReferenceId": "1",

"unpaidBalance": 0,

"paymentState": "OPEN",

"taxRemoved": true,

"isVat": true,

"state": "open",

"manualTransaction": true,

"testMode": false,

"payType": "FULL",

"createdTime": 0,

"clientCreatedTime": 0,

"deletedTimestamp": 0,

"lineItems": [

{

"id": "2",

"item": {

"id":"{iId}"

},

"name": "ART2",

"price": 1000,

"priceWithModifiers": 1000,

"priceWithModifiersAndItemAndOrderDiscounts": 1000,

"unitQty": 1,

"isRevenue": false

}

],

"merchant": {

"id": "{ mId}"

}

}


Cuerpo de la respuesta (Status: 200 OK):

"href": https://sandbox.dev.clover.com/v3/merchants/0H9GHFTHGQ151/orders/G7R8C37R63XS4,

"id": "{id}",

"currency": "ARS",

"total": 1000,

"externalReferenceId": "1",

"taxRemoved": true,

"isVat": true,

"state": "open",

"manualTransaction": true,

"groupLineItems": true,

"testMode": false,

"payType": "FULL",

"createdTime": 1647455457000,

"clientCreatedTime": 1647455452000,

"modifiedTime": 1647455456000

}


Si consulto la orden (GET https://sandbox.dev.clover.com/v3/merchants/{mId}/orders/{orderId}) la devuelve correctamente:

Cuerpo de la respuesta (Status: 200 OK):

{

"href": https://sandbox.dev.clover.com/v3/merchants/0H9GHFTHGQ151/orders/G7R8C37R63XS4,

"id": "{id}",

"currency": "ARS",

"total": 1000,

"externalReferenceId": "1",

"paymentState": "OPEN",

"taxRemoved": true,

"isVat": true,

"state": "open",

"manualTransaction": true,

"groupLineItems": true,

"testMode": false,

"payType": "FULL",

"createdTime": 1647455457000,

"clientCreatedTime": 1647455452000,

"modifiedTime": 1647455456000

}

Nosotros necesitamos generar únicamente el pago de un comprobante generado en un POS externo, similar a enviar una solicitud de pago a un dispositivo Clover(POST https://deviceIpOrHost:12346/connect/v1/payments). El problema es que REST PAY DISPLAY API está de desarrollo (Beta). Es posible generar un pago sin generar una orden utilizando PLATFORM API? Si es posible, cual deberíamos utilizar?

Clover Flex
10 |2000

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

0 Answers

·

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