Obtener los cargos de una orden

Argumentos

Tipo

Descripción

id

string

El id de la order.

Solicitud

curl --location --request GET 'https://apipp.conekta.io/orders/ord_2SZ7egt4hl367gdMM/charges' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Content-Type: application/json; charset=utf-8' \
-u key_xxxxxxxxxxxxxx:
Respuesta
{
    "has_more": false,
    "total": 1,
    "object": "list",
    "data": [
        {
          id: "589026bbedbb6e56430016ad",
          object: "charge",
          status: "pending_payment",
          amount: 35000,
          fee: 1279,
          reference_id: "Tracking number: 54323456",
          order_id: "ord_2fw8EWJusiRrxdPzT",
          livemode: false,
          created_at: 1597069683,
          currency: "MXN",
          payment_method: {
              service_name: "OxxoPay",
              object: "cash_payment",
              type: "oxxo",
              expires_at: 1599661683,
              store_name: "OXXO",
              reference: "93345678901234"
          }
      },
      ...
    ]
}