Events notification webhook
Information regarding a new shipment event.
If an HTTP code other than '200' is returned, it will trigger a new webhook call under an exponential backoff mechanism for a maximum of 6 hours. The events are sent using a First In, First Out (FIFO) strategy, ensuring that they are received in the order they were generated. This means no new events will be received until the current one has been acknowledged.
| attempts | integer <int32> The current attempt for this event notification |
| received | string <date-time> The date and time (in UTC) this event was received by the notifications service |
| status | string Enum: "created" "accepted" "rejected" "picked_up" "crossdocked" "delivered" "scheduled" "failed_attempt" "dropped_off" "canceled" "returned" "damaged" "incident"
|
| substatus | string Enum: "custom" "fraud_detected" "package_damaged" "package_lost" "rejected" "residence_unattended" "nonexistent_address" "address_discrepancy" Substatus provides additional info about the notified status. It could be a platform standard or a custom one.
|
object (GeoInfo) | |
object | |
| shipment_id | integer <int64> |
| tracking_number | string [ 5 .. 25 ] characters |
{- "attempts": 1,
- "received": "2019-08-24T14:15:22Z",
- "status": "failed_attempt",
- "substatus": "nonexistent_address",
- "event_location": {
- "lat": -34.60794855369454,
- "lng": -58.37031938479636
}, - "custom_substatus_info": {
- "description": "string"
}, - "shipment_id": 194919312,
- "tracking_number": "TN-1234567890"
}OAuth2 Client Credentials Log in endpoint
| Authorization required | string Base64 encoded client_id:client_secret prepend with Basic |
| grant_type | string OAuth2 grant_type. Always send client_credentials |
| scope | string Requested scope/s. Default acoount scopes will be returned if not specified |
{- "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ6TGc4VHVhQUszbjdnOGxtMWIxVFp4T2d0ZllINnJCSjRHOGJtYWE1a2RBIn0.eyJleHAiOjE3MDMyMTE5ODcsImlhdCI6MTcwMzIxMTA4NywianRpIjoiNGM4NDgzZDUtYmY4NS00ODg3LTliYzEtMTZhODU4N2ZmMTY5IiwiaXNzIjoiaHR0cHM6Ly9vYXV0aC50ZXN0LnBhcXVlcnkuY29tL2F1dGgvcmVhbG1zL3BhcXVlcnkiLCJzdWIiOiJhODkzYTBiNi0xMWMzLTRhMjAtODUwMS0yMjVjZmJkMzU5NDUiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJlU0Q2eENlY0dwQkNva2lUIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIvKiJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiZGVmYXVsdC1yb2xlcy1wYXF1ZXJ5Iiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicm9sZXMgcHJvZmlsZSBlbWFpbCBzaGlwbWVudHMiLCJjbGllbnRIb3N0IjoiMTAuMjQ0LjMuMzUiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1lc2Q2eGNlY2dwYmNva2l0IiwiY2xpZW50QWRkcmVzcyI6IjEwLjI0NC4zLjM1IiwiY2xpZW50X2lkIjoiZVNENnhDZWNHcEJDb2tpVCJ9.JYzyl-ShgdM1DLxn_sGFjLfLV8hher_Pypy-ajNrR-9_Fvd14xXmiZj_jaJSaBLWuoNedEygqaHc11vIgchpDHHqvH2FpD_LMd--M2lo2R2b4ZDeF3d8fcCsDu3XHmCgKNTxbWoV_veVObWOiSkbwP8js5JF_UnXtfjWepj-UwgVkWYduLq3duMjuDmR-lo7HuOA7T-GUEzirvdGzMXmHPTI9hrESrQkAM43LHirs865zw_eVoy8L_EfcmuHUz7wAs9SvD2yTTWRFN8ixcG52WPsDKZFg2i_oj7whPuWAcnLIFY9T_8_8QO--V4y0_asOC3xjYOCfzBhXyuVIfOHeA",
- "token_type": "Bearer",
- "expires_in": 900,
- "refresh_expires_in": 0,
- "not_before_policy": 0,
- "scope": "shipments profile email"
}A shipment with the provided data is created. Service does it best to create it synchronously, in case creation is taking too long an event will be fired upon creation
| tracking_number | string [ 5 .. 25 ] characters The shipment tracking number. If not provided it will be created and returned |
| caption | string Optional if at least one shipping_items object is provided. In that case, if caption is null the name of the first shipment item will be used. |
object (BaseCost) The rate associated with this shipment delivery | |
required | object (MonetaryAmount) A monetary amount |
| is_bundle | boolean This shipment is comprised of several packages that should be delivered. |
object (Bundle) Describes a shipment bundle. A shipment bundle is shipment comprising more than one package. Note: In case a shipment includes only one package this field is not mandatory | |
| needs_preparation | boolean Whether this shipment must be prepared by logistics operator before delivery |
Array of objects (ShippingItem) A collection of shipping items. It's usually used along with needs_preparation: true | |
required | object Where this shipment should be collected |
required | object Where this shipment should be delivered or dropped off |
required | object (Individual) A real person |
required | object (Sender) Who sends this shipment |
object | |
object | |
| logistics_type required | string Enum: "forward" "reverse" The logistics service type |
| delivery_term required | string Enum: "standard" "priority" "express" "turbo" |
{- "tracking_number": "NES1234567890",
- "caption": "string",
- "base_cost": {
- "type": "amount"
}, - "shipment_cost": {
- "amount": 195.5,
- "currency": "ARS"
}, - "is_bundle": true,
- "bundle": {
- "packages": 0
}, - "needs_preparation": true,
- "shipping_items": [
- {
- "name": "Suplemento en polvo Abbott 850G T1",
- "description": "Suplemento En Polvo Abbott Ensure Advance Carbohidratos Sabor Vainilla En Lata De 850g",
- "dimensions": {
- "type": "class"
}, - "weight": 850.49,
- "quantity": 1,
- "collect_on_destination": false,
- "sku": "SK-1"
}
], - "pickup": {
- "pickup_point": {
- "waypoint_type": "locker"
}, - "not_before": "2017-07-21T17:32:28Z"
}, - "dropoff": {
- "dropoff_point": {
- "address_data": {
- "address_line": "Oranges 1192, Guajira, El Shalten, Cordova, Argentina, 1493",
- "street_name": "Oranges",
- "street_number": 1192,
- "zipcode": "1493",
- "city": "El Shalten",
- "municipality": "Guajira",
- "province": "Cordova",
- "geolocation": {
- "lat": -34.60794855369454,
- "lng": -58.37031938479636
}
}, - "waypoint_type": "address"
}, - "not_before": "2017-07-21T17:32:28Z",
- "receiver_availability": {
- "from": 23,
- "to": 23
}, - "additional_info": "tocar timbre en el dpto. 3"
}, - "receiver": {
- "name": "Juan",
- "lastname": "De Los Palotes",
- "email": "juan.de.los.palotes@yimeil.com",
- "phone_number": "+541111111111",
- "id_type": "dni",
- "id_number": "12345678"
}, - "sender": {
- "sender_type": "individual"
}, - "payment": {
- "collect_on_delivery": {
- "type": "manual",
- "ammount": {
- "amount": 195.5,
- "currency": "ARS"
}, - "collection_methods": [
- "cash"
]
}
}, - "verification_method": {
- "type": "offline_password",
- "offline_password": {
- "password": "zoolander",
- "attempts": 1
}
}, - "logistics_type": "forward",
- "delivery_term": "turbo"
}{- "shipment_id": 194919312,
}Most updated version of the shipment data. It could differ from the original posted to /shipment endpoint for creation.
| shipment_id required | integer <int64> Example: 194919312 ID of the shipment to retrieve |
{- "shipment_id": 194919312,
- "shipment": {
- "tracking_number": "NES1234567890",
- "caption": "string",
- "base_cost": {
- "type": "amount"
}, - "shipment_cost": {
- "amount": 195.5,
- "currency": "ARS"
}, - "is_bundle": true,
- "bundle": {
- "packages": 0
}, - "needs_preparation": true,
- "shipping_items": [
- {
- "name": "Suplemento en polvo Abbott 850G T1",
- "description": "Suplemento En Polvo Abbott Ensure Advance Carbohidratos Sabor Vainilla En Lata De 850g",
- "dimensions": {
- "type": "class"
}, - "weight": 850.49,
- "quantity": 1,
- "collect_on_destination": false,
- "sku": "SK-1"
}
], - "pickup": {
- "pickup_point": {
- "waypoint_type": "locker"
}, - "not_before": "2017-07-21T17:32:28Z"
}, - "dropoff": {
- "dropoff_point": {
- "address_data": {
- "address_line": "Oranges 1192, Guajira, El Shalten, Cordova, Argentina, 1493",
- "street_name": "Oranges",
- "street_number": 1192,
- "zipcode": "1493",
- "city": "El Shalten",
- "municipality": "Guajira",
- "province": "Cordova",
- "geolocation": {
- "lat": -34.60794855369454,
- "lng": -58.37031938479636
}
}, - "waypoint_type": "address"
}, - "not_before": "2017-07-21T17:32:28Z",
- "receiver_availability": {
- "from": 23,
- "to": 23
}, - "additional_info": "tocar timbre en el dpto. 3"
}, - "receiver": {
- "name": "Juan",
- "lastname": "De Los Palotes",
- "email": "juan.de.los.palotes@yimeil.com",
- "phone_number": "+541111111111",
- "id_type": "dni",
- "id_number": "12345678"
}, - "sender": {
- "sender_type": "individual"
}, - "payment": {
- "collect_on_delivery": {
- "type": "manual",
- "ammount": {
- "amount": 195.5,
- "currency": "ARS"
}, - "collection_methods": [
- "cash"
]
}
}, - "verification_method": {
- "type": "offline_password",
- "offline_password": {
- "password": "zoolander",
- "attempts": 1
}
}, - "logistics_type": "forward",
- "delivery_term": "turbo"
}
}Gets the shipment Proof Of Delivery (POD). POD only applies when shipment has been deployed so an error is returned if shipment is in not yet delivered
| shipment_id required | integer <int64> Example: 194919312 ID of the shipment whose POD we want to retrieve |
{- "class": "pdf",
- "content": {
- "data": "string"
}
}Get the driver to whom the shipment is scheduled
| shipment_id required | integer <int64> ID of the shipment whose driver we want to retrieve |
{- "identification_data": {
- "name": "Carlos",
- "lastname": "Ariel Yarsía",
- "id": {
- "type": "national_identity_card",
- "id": "123456780"
}, - "mobile_id_qr": "string"
}
}