Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

xxgicoxx/correst

Repository files navigation

Correst

REST Web Service for track Correios objects.

Features

  • Track Correios objects

Prerequisites

Running

1. Configure

# Web Service
Create and configure .env file like .env.example.

2. Run

# Install dependencies
npm install

# Start
npm start

Example

curl --location --request GET 'http://localhost:3000/track/PX547037143BR'

Response example

{
  "code": "QJ852965722BR",
  "events": [
    {
      "event": "Objeto entregue ao destinatário",
      "date": "10/01/2022",
      "hour": "08:53",
      "location": "Unidade de Distribuição - Pato Branco / PR"
    },
    {
      "event": "Objeto em trânsito - por favor aguarde",
      "date": "06/01/2022",
      "hour": "09:43",
      "origin": "Agência dos Correios - Sao Bernardo Do Campo / SP",
      "destination": "Unidade de Tratamento - Cajamar / SP"
    },
    {
      "event": "Objeto postado",
      "date": "05/01/2022",
      "hour": "15:47",
      "location": "Agência dos Correios - Sao Bernardo Do Campo / SP"
    }
  ]
}

Built With

Authors

About

REST Web Service for track Correios objects.

Topics

Resources

License

Stars

Watchers

Forks