Obtener una lista de órdenes

Obtener los detalles de órdenes en forma de una lista

Solicitud

curl --location --request GET 'https://apipp.conekta.io/orders' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Authorization: Basic a2V5X0VMemNdeYfbSV0RybnprcfrfrfHd6YVYzbTk5RHc6'
Respuesta
{
    "next_page_url": "https://apipp.conekta.io/orders?next=ord_2oDLrxiVJpJw1t6C7",
    "has_more": true,
    "total": 64110,
    "object": "list",
    "data": [
        {
          "id": "ord_2fw8EWJusiRrxdPzT",
          "object": "order",
          "livemode": false,
          "amount": 35000,
          "amount_refunded": 0,
          "payment_status": "paid",
          "currency": "MXN",
          "customer_info": {
            "object": "customer_info",
            "customer_id": "cus_zzmjKsnM9oacyCwV3",
            "name": "Mario Perez",
            "email": "[email protected]",
            "phone": "+5215555555555",
            "antifraud_info":{
              "account_created_at": 1484040996,
              "first_paid_at": 1485151007,
              "paid_transactions": 4
            }
          },
          "created_at": 1597069682,
          "updated_at": 1597069682,
          "line_items": {
            "object": "list",
            "has_more": false,
            "total": 1,
            "data": [{
              "id": "line_item_2fw8EWJusiRrxdPzR",
              "object": "line_item",
              "name": "Box of Cohiba S1s",
              "unit_price": 35000,
              "quantity": 1,
              "parent_id": "ord_2fw8EWJusiRrxdPzT",
              "antifraud_info": {
                "trip_id": "12345",
                "driver_id": "driv_1231",
                "ticket_class": "economic",
                "pickup_latlon": "23.4323456,-123.1234567",
                "dropoff_latlon": "23.4323456,-123.1234567"
              },
              "metadata": {}
            }]
          },
          "charges": {
            "object": "list",
            "has_more": false,
            "total": 1,
            "data": [{
              "id": "589026bbedbb6e56430016ad",
              "object": "charge",
              "livemode": false,
              "created_at": 1597069682,
              "status": "paid",
              "amount": 35000,
              "paid_at": 1485842112,
              "currency": "MXN",
              "fee": 1467,
              "customer_id": "",
              "order_id": "ord_2fw8EWJusiRrxdPzT",
              "payment_method": {
                "object": "card_payment",
                "type": "credit",
                "name": "Jorge Lopez",
                "exp_month": "12",
                "exp_year": "19",
                "auth_code": "490884",
                "last4": "4242",
                "brand": "visa",
                "issuer": "",
                "account_type": "",
                "country": "MX",
                "fraud_score": 29,
                "fraud_indicators": []
              }
            }]
          },
          "metadata": {}
        },
        ...
    ]
}