Skip to main content

Status Change Notification Webhooks

This section explains how to configure webhooks in our system, detailing the structure and format of the notification data we send.

Webhook Structure and Data

We send webhook notifications as an HTTP request to a URL that you provide. This URL acts as the receiving endpoint for your system. The data we send in these notifications is called the payload. We can customize this payload to include any additional information you may need.

Customizable Notifications

You have control over which events trigger a notification. You can specify the exact delivery statuses you want to be notified about. This ensures you only receive relevant updates.

Secure Communication

To ensure secure communication, you can include custom headers in the webhook requests. These headers can be used to configure various dynamic authentication mechanisms, such as:

  • Basic Auth
  • JWT (JSON Web Tokens)
  • OAuth2
  • Gcloud Auth

By using these methods, you can ensure that only authorized systems receive and process your webhook notifications.

Once configured, our webhook service will automatically send these updates, keeping your system constantly synchronized with events from our service.

Example Flow

  1. The client provides their URL (endpoint).
  2. Our system detects a relevant status change.
  3. A POST request is made to the client's endpoint with a JSON-structured payload.

Payload

The request content will have the following format:

{
"status_id": 0,
"identifier": 0,
"summary_id": 0,
"status_date": "2019-08-24",
"status_name": "string",
"carrier_code": "string",
"carrier_name": "string",
"imported_id": "string",
"tracking_url": "string",
"dead_line_date": "2019-08-24",
"tracking_number": "string",
"status_information": "string"
}

Payload Data

Here is the meaning of each field included in the payload, as well as the expected data type for each one.

FieldDescriptionData Type
status_idEnviame Status IDinteger
identifierDelivery IDinteger
summary_idManifest ID, generated by Enviameinteger
status_dateDelivery status change datestring <date>
status_nameName of the status the delivery is instring <date>
carrier_codeCarrier codestring
carrier_nameCarrier namestring
imported_idDelivery number or reference used when creating the deliverystring
tracking_urlDelivery URL on the Enviame platformstring
dead_line_dateCommitment datestring <date>
tracking_numberTracking numberstring
status_informationComplementary information about the delivery statusstring

Delivery Statuses

status_idstatus_namestatus_code
1CreatedPENDING
2ProcessingPENDING
3Sent to CarrierPENDING
4Rejected by CourierPENDING
5Ready for dispatchCREATED
6At origin facilityIN_ORIGIN
7In transitIN_TRANSIT
8At destination facilityIN_DESTINATION
9Out for deliveryDISPATCHED
10DeliveredDELIVERED_DOM
11Available for pickupDELIVERED_PUDO
12DeletedDELETED
13Picked up by customerPICKED_UP
14ReturnRETURNED
15Do not translateJUNK
16Picked up by courierPICK_UP_CARRIER
17Address not foundADDRESS_NOT_FOUND
18Rejected by recipientREJECTED_CLIENT
19No one homeNO_ONE_HOME
20Damaged shipmentDAMAGED_SHIPMENT
22Lost shipmentLOST_SHIPMENT
23PendingAWAITING
24LostLOST
25Transport without accessNO_ACCESS
26Ready for dispatch - PrintedCREATED
27Delivery could not be completedNOT_DELIVERED
29ExpiredEXPIRED
30Return deliveredRETURN_DELIVERED
31Return picked up by carrierRETURN_pickup
32Return not picked up by carrierRETURN_notpickup
33Return out for deliveryreturn_dispatched
34Resolved and sending to recipientSOLUTION_GENERATED
35Unknown recipientUNKNOWN_CLIENT
36Management in progressPROCESS_RUNNING
37Pending - requires solutionPENDING_SOLUTION_NEEDED
38Presumably lostALLEGEDLY_LOST_SHIPMENT
39Recipient changed addressCLIENT_CHANGED_ADDRESS
40Shipment detainedSHIPMENT_DETAINED
41Failed deliveryDELIVERY_FAILED
43Return canceledRETURN_CANCELED
44Return to senderRETURNED_TO_SHIPPER
45Admitted at branch/agencyRECEIVED_AT_PU_POINT
46Incorrect addressINCORRECT_ADDRESS
47AssignedCREATED
48Lost - No movementLOST_NO_MOVEMENT
49VoidedCANCELED
50Partial deliveryPARTIALLY_DELIVERED
51Service breachBREACH_OF_SERVICE
52Out of coverageNO_COVERAGE
53Not picked up - Seller issueFAILED_PICKUP_SELLER_ISSUE
54About to expireSOON_TO_EXPIRE
55Initiate returnRETURN_START
56Expired in storeEXPIRED_IN_STORE
57Delivered to carrierDELIVERED_TO_CARRIER
62Ready for dispatchCREATED
63Ready for dispatch - PrintedCREATED
64Force majeure delayDELAY_DUE_TO_FORCE_MAJEURE
65Package ready for pickupCREATED
66To be delivered to fulfillmentBE_DELIVERED_WMS
67Delivered to fulfillmentDELIVERED_WMS
68Assigned to courierCREATED
71Partial returnPARTIALLY_RETURNED
75Manifest confirmedENVIAME_CLOSED_SUMMARY
76Recipient refuses to payCLIENT_DONT_PAY
77BlockedBLOCKED
79Ready for auctionPENDING
80AuctionedPENDING
81Not picked up - Seller absent or closedFAILED_PICKUP_SELLER_ISSUE
82Damaged packagingDAMAGED_PACKAGING
83Shipment seizedSHIPMENT_SEIZED
84Lost - Non-compensableLOST_SHIPMENT_NOT_COMPENSABLE
85Shipment auditedSHIPPING_AUDITED
86Order prepared by fulfillmentPrepared_by_WMS
87Rejected by senderREJECTED_SELLER
88Operator management delayDELAY_COURIER
90Delivered - Pending confirmationDELIVERED_PENDING_CONFIRMATION
91Courier at pickup pointAT_PICKUP_POINT
92Wrong package sizeWRONG_SIZE
93Reassigning courierLOOK_NEW_DELIVERY
94Rejected by recipient - Pending confirmationREJECTED_CLIENT_PENDING
95Canceled by sellerCANCELED_BY_SELLER
96Return abortedABORTED_RETURN
97Failed delivery (direct)DELIVERY_FAILED
98Delivery could not be returnedNOT_RETURNED
99Rejected by rule conditionREJECTED BY RULE
100Canceled by operator - No pickupCANCELED_BY_COURIER
101Available for pickup at Copec pointDELIVERED_PUDO_CENCO
102Admitted at pointRECIEVED_AT_PU_POINT_CENCO
103Canceled by customerCANCELED_CLIENT
104Canceled - DelayCANCELED_DELAY
105Product rejected by customer (direct)PRODUCT_REJECTED_BY_CUSTOMER
106First failed attempt - RetryFIRST_FAILED_ATTEMPT
107Second failed attempt - Cancellation (direct)SECOND_FAILED_ATTEMPT
109Packaging repairArreglo de embalaje
111Documentation uploaded successfullyDOCUMENT_ACCEPTED
112Documentation upload errorDOCUMENT_REJECTED
113Exchange completedEXCHANGE_OK
114Created in FLEXCreated_Flex
115Return picked up at Copec pointReturn_Copec