Admission Automatic Routing Process Created event

This event is triggered when the pre-employee search for transportation route options while filling out the automatic routing transportation benefit.

Notification properties

The notification will be sent with the following properties:

PropertyTypeDescription
routingIdstringIdentifier of the new routing, provided by Gupy in uuid format.
companyIdnumberCompany ID.
preEmployeeNamestringPre employee name.
identificationstring

Pre employee CPF document (only numbers).

e.g., 12345678910.

companyAddressstring

Full address of the company/branch.

e.g., Avenida Paulista, 1079, Bela Vista, 01311200, São Paulo - SP, Brasil.

Must overwrite the company's registered address in the partner system.

companyAddressZipCodestring | null

Zip code of the company/branch, which will be the destination of the routing.

e.g., 12345678.

Must overwrite the company's registered address in the partner system.

companyAddressStreetstring | null

Company/branch address street.

Must overwrite the company's registered address in the partner system.

companyAddressNumberstring | null

Company/branch address number.

Must overwrite the company's registered address in the partner system.

companyAddressNeighborhoodstring | null

Company/branch address neighborhood.

Must overwrite the company's registered address in the partner system.

companyAddressCitystring | null

Company/branch address city.

Must overwrite the company's registered address in the partner system.

companyAddressStatestring | null

Company/branch address status.

e.g., SP.

Must overwrite the company's registered address in the partner system.

preEmployeeAddressZipCodestring

Zip code of the pre employee

e.g., 12345678.

preEmployeeAddressStreetstringStreet address of the pre employee.
preEmployeeAddressNumberstring

Address number of the pre employee.

e.g., 123 or 2-A.

preEmployeeAddressNeighborhoodstringNeighborhood of the pre employee's address.
preEmployeeAddressCitystringCity of address of the pre employee.
preEmployeeAddressStatestring

State of address of the pre employee.

e.g., SP.

startOfWorkdaystring

Start of the pre employee's workday.

e.g., 09:00.

endOfWorkdaystring

End of the pre employee's working day.

e.g., 18:00.

daysOfWorknumber

Number of days worked in the month by the pre employee.

e.g., 22.

Example

{
  "companyName": "ACME",
  "id": "24e99765-8583-4be5-87ae-489c86642964", 
  "event": "admission.automatic-routing-process",  
  "date": "2019-06-19T23:48:46.952Z", 
  "data": {
    "routingId": "e3dd4f68-929b-49b4-8a9d-42c2b952c3e8",
    "companyId": 1,
    "companyAddress": "Avenida Paulista, 1079 - Bela Vista, São Paulo - SP, 01311-200", 
    "companyAddressZipCode": "01311200", 
    "companyAddressStreet": "Avenida Paulista", 
    "companyAddressNumber": "1079", 
    "companyAddressNeighborhood": "Bela Vista", 
    "companyAddressCity": "São Paulo", 
    "companyAddressState": "SP", 
    "preEmployeeName": "John Doe", 
    "identification": "12345678909", 
    "preEmployeeAddressZipCode": "00000000", 
    "preEmployeeAddressStreet": "Avenida Paulista", 
    "preEmployeeAddressNumber": "123", 
    "preEmployeeAddressNeighborhood": "Jardins", 
    "preEmployeeAddressCity": "São Paulo", 
    "preEmployeeAddressState": "SP", 
    "startOfWorkday": "09:00", 
    "endOfWorkday": "18:00", 
    "daysOfWork": "20"
  }
}

Considerations

Idempotency of companyId

The value of this property may or may not change depending on the integration flow's current stage;

  • When it remains the same: In the retry attempt to request a new route, in a divergence flow.
  • When it changes:
    • When the pre-employee's or company's address is changed relative to the last route request made;
    • When the pre-employee's or company's address is changed in the middle of an existing objection process;

Possibility of addresses under the company prefix

These addresses aren't fixed, as companies can change them (due to technical or business requirements).

This means that in a routing request A, a specific address might be sent, and in a subsequent routing request B, a different address could be sent, both being idempotent.

🚧

Bad Practice Alert

Don't correlate the companyId property with an internal Company entity that stores the address received via this event notification.