Conceptos/Referencias
deprecated

NEW ORDER - API EXPRESS

Para lograr realizar el pedido de forma correcta es importante que consuma el siguiente endpoint con el cuál podrá generar un idOrder bajo la premisa de entrega bajo demanda (90mins).

curl --location --request PUT 'https://api.ivoy.mx/api/order/newOrder/json/web' \
--header 'Content-Type: application/json' \
--header 'token: eyJhbGciOiJSUzI1NiIsImtpZCI6IjZmOGUxY2IxNTY0MTQ2M2M2ZGYwZjMzMzk0YjAzYzkyZmNjODg5YWMiLCJ0eXAiOiJKV1QifQ.eyJuYW1lIjoiRVhQUkVTUyBJTlRFR1JBVElPTiBRQSIsImlkVXNlciI6MjI0MzkxLCJuYW1lVXNlciI6IldFQkhPT0tfNkwwWDNfYyIsImxvZ2luVHlwZSI6MiwiaWRDbGllbnRQcm9maWxlIjo2LCJpc1BheW1lbnRNYW5kYXRvcnkiOjAsImlkQ2xpZW50VHlwZSI6MSwiYXBpVHlwZSI6MCwiaXNzIjoiaHR0cHM6Ly9zZWN1cmV0b2tlbi5nb29nbGUuY29tL2l2b3ktc2VjdXJpdHkiLCJhdWQiOiJpdm95LXNlY3VyaXR5IiwiYXV0aF90aW1lIjoxNjU0MDI1NDM1LCJ1c2VyX2lkIjoiZjliNDA3ZDctYjA5MC00M2ZkLTk4NTctNDQyMzAwZGYyNmJmIiwic3ViIjoiZjliNDA3ZDctYjA5MC00M2ZkLTk4NTctNDQyMzAwZGYyNmJmIiwiaWF0IjoxNjU0MDI1NDM1LCJleHAiOjE2NTQwMjkwMzUsImVtYWlsIjoid2ViaG9va3N0ZXN0QGl2b3kubXgiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwicGhvbmVfbnVtYmVyIjoiKzUyNTU4NzMwOTgxMiIsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsicGhvbmUiOlsiKzUyNTU4NzMwOTgxMiJdLCJlbWFpbCI6WyJ3ZWJob29rc3Rlc3RAaXZveS5teCJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.2arI6-oNelUqBGNNd2Mcm0bZtKqbjFo9ORsN2ruv4rbDhfnjvHcdFRDiETDYQRS-jeffROoqt_ETqIVmJ3b3K9Oqyg_uz8-mF9ETflryqoB865oF3DRWTAK5onxdKQWAksFZiOoznOIazM8UiyOTj2YkamgPNJYPAKKihWyKSbWH_2zIZGaBlD0CYwhNOJz7bRLUQ1VH7-u4w6LCfVfapHPkVHXmuJU89arO4eEtnJk0hJ_9ATylhypz26qrwydyxmCM8Lj6YtlgScbW14roDKbBCW-_QMqpMa63YiJF8MN2xzPPm_KXhUOIeTZQFUXe7jbm_KMtUqXyYQNbpauxCA' \
--data-raw '{
    "data": {
        "bOrder": {
            "device": "api",
            "packageValue": 1000,
            "datePickup": 1654092000000,
            "orderType": {
                "idOrderType": 1
            },
            "packageType": {
                "idPackageType": 3
            },
            "paymentMethod": {
                "idPaymentMethod": 4
            },
            "orderAddresses": [
                {
                    "isPickup": 1,
                    "isSource": 1,
                    "comment": "Tocar fuerte, fachada amarilla zaguán negro.",
                    "personApproved": "Emma Limón Duarte",
                    "phone": "5565342375",
                    "address": {
                         "externalNumber": 138,
                        "internalNumber": "N/A",
                        "latitude": "19.4020954",
                        "longitude": "-99.1837187",
                        "neighborhood": "Miguel Hidalgo",
                        "street": "Carlos B Zetina",
                        "zipCode": "11800"
                    }
                },
                {
                    "isPickup": 0,
                    "isSource": 0,
                    "comment": "Entregar a vigilancia,Local 26.",
                    "personApproved": "Brenda Jimenez Diturbide ",
                    "phone": "5690432678",
                    "address": {
                        "externalNumber": 2251,
                        "internalNumber": "N/A",
                        "latitude": "19.510179",
                        "longitude": "-99.234459",
                        "neighborhood": "Cd. Satélite",
                        "street": "Cto Centro Comercial",
                        "zipCode": "53100"
                    }
                }
            ]
        }
    }
}'
{
  "code": 0,
  "data": {
    "idOrder": 3873821,
    "dateAdd": 1654027806040,
    "datePickup": 1654092000000
    ...
  }
}

❗️

Si necesita realizar una prueba, solicítela a través de [email protected]