Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Correos Support #38

Open
adro79 opened this issue Dec 4, 2022 · 2 comments
Open

Add Correos Support #38

adro79 opened this issue Dec 4, 2022 · 2 comments
Labels
new service New postal service

Comments

@adro79
Copy link

adro79 commented Dec 4, 2022

Would be cool to have Correos support, it's the local spanish postal service.

Here's how the url works:
https://www.correos.es/es/es/herramientas/localizador/envios/detalle?tracking-number="TRACKINGNUMBER"

And here's info about the API:
https://www.correos.es/es/en/companies/e-commerce/reinforce-your-ecommerce-logistics/api-integration

@proninyaroslav proninyaroslav added the new service New postal service label Aug 20, 2024
@lucumon
Copy link

lucumon commented Sep 9, 2024

I think that Correos API is a paid service. Maybe web scraping should be used.

@bijavix
Copy link

bijavix commented Sep 25, 2024

This correos API seems to work fine:

GET https://api1.correos.es/digital-services/searchengines/api/v1/?text=****************&language=EN&searchType=envio

Example response for completed delivery:
Note: I've removed the tracking number, date day and HH:MM:SS time.

{
  "type": "envio",
  "expedition": null,
  "shipment": [
    {
      "shipmentCode": "****************",
      "events": [
        {
          "eventDate": "**/09/2024",
          "eventTime": "**:**:**",
          "phase": "1",
          "desPhase": null,
          "colour": "V",
          "summaryText": "Information",
          "extendedText": "We have received your shipment information, we will have your goods available shortly. If you need more information, please contact the sender",
          "actionWeb": "EG",
          "actionWebParam": "",
          "codired": null,
          "emisiones": null
        },
        {
          "eventDate": "**/09/2024",
          "eventTime": "**:**:**",
          "phase": "2",
          "desPhase": null,
          "colour": "V",
          "summaryText": "En route to the destination location",
          "extendedText": "Your shipment is in one of our vehicles being transported to the destination location.",
          "actionWeb": "EG",
          "actionWebParam": "",
          "codired": null,
          "emisiones": null
        },
        {
          "eventDate": "**/09/2024",
          "eventTime": "**:**:**",
          "phase": "3",
          "desPhase": null,
          "colour": "V",
          "summaryText": "At destination",
          "extendedText": "Your shipment is being sorted in our facilities at the destination. You will receive it on the scheduled delivery date.",
          "actionWeb": "EG",
          "actionWebParam": "",
          "codired": null,
          "emisiones": null
        },
        {
          "eventDate": "**/09/2024",
          "eventTime": "**:**:**",
          "phase": "3",
          "desPhase": null,
          "colour": "V",
          "summaryText": "Out for delivery",
          "extendedText": "Your shipment is out for delivery. You will receive it on the scheduled delivery date.",
          "actionWeb": "EG",
          "actionWebParam": "",
          "codired": null,
          "emisiones": null
        },
        {
          "eventDate": "**/09/2024",
          "eventTime": "**:**:**",
          "phase": "4",
          "desPhase": null,
          "colour": "V",
          "summaryText": "Delivered",
          "extendedText": "Your shipment has been delivered.",
          "actionWeb": "EG",
          "actionWebParam": "",
          "codired": null,
          "emisiones": null
        }
      ],
      "date_delivery_sum": null,
      "associatedShipments": [
        {
          "shipmentCode": "***********************"
        }
      ],
      "error": {
        "errorCode": "0",
        "errorDesc": ""
      },
      "expeditionCode": null,
      "packagesTotal": "1.0",
      "packageNumber": "1",
      "num_order": null
    }
  ],
  "others": {
    "offices": [
      
    ],
    "mailboxes": [
      
    ],
    "citypaqs": [
      
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new service New postal service
Projects
None yet
Development

No branches or pull requests

4 participants