Foro
Campo fee comision no se encuentra visible al obtener una Orden
Hola, intento obtener el campo fee de la orden, sin embargo no me arroja ese campo, use las APIS desde su pagina (ORDERS Y CHARGERS) y tampoco se encuentra, en el dashboard de FEMSA si muestra al ir al detalle de la orden pero necesito obtener el campo desde codigo para procesar mas información
Me gustaría saber si no cobran comisión , si tengo que consultar otra API o si estoy intentando obtener el campo incorrecto
Resultado arrojado:
{
"livemode": false,
"amount": 313200,
"currency": "MXN",
"payment_status": "paid",
"amount_refunded": 0,
"customer_info": {
"email": "
]
"phone": null,
"name": "prueba credito",
"corporate": false,
"customer_id": "cus_2woaGRX4be8xSvbLo",
"object": "customer_info",
"customer_custom_reference": null
},
"checkout": {
"id": "d75fe354-8da0-41f4-bfbc-bcf1b2517822",
"name": "VM",
"livemode": false,
"emails_sent": 0,
"success_url": "sucess",
"failure_url": "failure",
"payments_limit_count": null,
"paid_payments_count": 0,
"status": "Issued",
"type": "HostedPayment",
"recurrent": false,
"starts_at": 1729058400,
"expires_at": 1729317599,
"allowed_payment_methods": [
"cash"
],
"needs_shipping_contact": false,
"redirection_time": 5,
"metadata": {},
"can_not_expire": false,
"object": "checkout",
"is_redirect_on_failure": true,
"slug": "d75fe3548da041f4bfbcbcf1b2517822",
"url": "https://pay.digitalfemsa.io/checkout/d75fe3548da041f4bfbcbcf1b2517822"
},
"shipping_contact": null,
"channel": {
"segment": "Checkout",
"checkout_request_id": "d75fe354-8da0-41f4-bfbc-bcf1b2517822",
"checkout_request_type": "HostedPayment",
"id": "channel_2woaYM3HXM19va4dM"
},
"fiscal_entity": null,
"object": "order",
"id": "ord_2woaYM3HXM19va4dK",
"metadata": {
"id_cliente": 300uy
},
"is_refundable": false,
"created_at": 1729103998,
"updated_at": 1729104033,
"line_items": {
"object": "list",
"has_more": false,
"total": 1,
"data": [
{
"name": "AAAAAAAA",
"description": "Viaje",
"unit_price": 313200,
"quantity": 1,
"sku": "0001409",
"tags": null,
"brand": null,
"type": null,
"object": "line_item",
"id": "line_item_2woaYM3HXM19va4dH",
"parent_id": "ord_2woaYM3HXM19va4dK",
"metadata": {},
"antifraud_info": {}
}
]
},
"shipping_lines": null,
"tax_lines": null,
"discount_lines": null,
"charges": {
"object": "list",
"has_more": false,
"total": 1,
"data": [
{
"id": "67100881dc042b00180fb5c9",
"livemode": false,
"created_at": 1729104001,
"currency": "MXN",
"failure_code": null,
"failure_message": null,
"channel": {
"segment": "Checkout",
"checkout_request_id": "d75fe354-8da0-41f4-bfbc-bcf1b2517822",
"checkout_request_type": "HostedPayment",
"id": "channel_2woaYPJVXe2SdaqdZ"
},
"payment_method": {
"service_name": "OxxoPay",
"barcode_url": "https://barcodes.digitalfemsa.io/sandbox_reference.png",
"store": null,
"auth_code": null,
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1729317599,
"store_name": "OXXO",
"reference": "98002018141894",
"cashier_id": null
},
"object": "charge",
"device_fingerprint": "",
"description": "Payment from order",
"is_refundable": false,
"reference_id": null,
"status": "paid",
"amount": 313200,
"paid_at": 1729104033,
"customer_id": "",
"order_id": "ord_2woaYM3HXM19va4dK",
"refunds": null
}
]
}
}