Expected carrier response values

LINK RESPONSE

When Ecartapi requests shipping rates from your callback URL the response must be a an array that contains the following information.

There are two kinds carrier services can offer, shipping and pickup.

When sending shipping options the payload should contain the following information

[
    {
        "carrier": "oca",
        "service": "oca_PP",
        "serviceDescription": "Oca Puerta a Puerta",
        "pickUp": false
        "deliveryEstimate": "2-4 días",
        "deliveryDate": {
            "date": "2022-08-14",
            "time": "13:01",
            "dateDifference": 4,
            "timeUnit": "days"
        },
        "totalPrice": 182.72,
        "currency": "MXN"
    }
]

When sending pick up options the payload should contain the following information.

(THE PICK UP OPTIONS ARE ONLY AVAILABLE FOR TIENDANUBE).

[
    {
        "carrier": "oca",
        "service": "oca_PS",
        "serviceDescription": "Oca Puerta a Sucursal",
        "pickUp": true,
        "deliveryEstimate": "1-3 días",
        "deliveryDate": {
            "date": "2022-08-13",
            "time": "13:01",
            "dateDifference": 3,
            "timeUnit": "days"
        }
        "totalPrice": 124.9,
        "currency": "MXN",
        "branches": [
            {
                "branch_id": 75,
                "branch_code": "NIC",
                "reference": "SAN NICOLAS",
                "address": {
                    "address": "ESPAÑA",
                    "number": "280",
                    "phone": "8111111111",
                    "zipcode": "2900",
                    "locality": "SAN NICOLAS",
                    "province": "BUENOS AIRES",
                    "country": "AR"
                },
                "hours": [
                    {
                        "day": 1,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 2,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 3,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 4,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 5,
                        "start": "0900",
                        "end": "1700"
                    }
                ]
            },
            {
                "branch_id": 129,
                "branch_code": "SPD",
                "reference": "SAN PEDRO",
                "address": {
                    "address": "OLIVEIRA CEZAR",
                    "number": "25",
                    "phone": "8111111111",
                    "zipcode": "2930",
                    "locality": "SAN PEDRO",
                    "province": "BUENOS AIRES",
                    "country": "AR"
                },
                "hours": [
                    {
                        "day": 1,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 2,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 3,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 4,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 5,
                        "start": "0900",
                        "end": "1700"
                    }
                ]
            },
            {
                "branch_id": 1253,
                "branch_code": "VCO",
                "reference": "CI VILLA CONSTITUCIÓN",
                "address": {
                    "address": "IRIGOYEN",
                    "number": "201",
                    "phone": "8111111111",
                    "zipcode": "2919",
                    "locality": "VA.CONSTITUCION",
                    "province": "SANTA FE",
                    "country": "AR"
                },
                "hours": [
                    {
                        "day": 1,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 2,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 3,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 4,
                        "start": "0900",
                        "end": "1700"
                    },
                    {
                        "day": 5,
                        "start": "0900",
                        "end": "1700"
                    }
                ]
            }
        ]
    }
]