Shipment Tracking

Information to track a shipment

Fetch a given shipment

fetch('https://api.placeholderjson.dev/shipments/7EBWXB5')
.then(response => response.json())
.then(json => console.log(json))

// Return
{
  "orderID": "7EBWXB5",
  "orderDate": "1595674680",
  "estimatedDeliveryDate": "1596365935",
  "deliveryDate": null,
  "delayed": false,
  "status": {
    "orderPlaced": true,
    "orderShipped": true,
    "outForDelivery": true,
    "orderDelivered": false
  }
}

List all shipments

fetch('https://api.placeholderjson.dev/shipments')
.then(response => response.json())
.then(json => console.log(json))

// Return
[{"orderID": "7EBWXB5", /* ... */ }]