Search code examples
uber-api

uber RUSH API sandbox deliveries is_fragile value incorrect, bug?


While experimenting with the uber deliveries API sandbox I noticed that when I POST to https://sandbox-api.uber.com/v1/deliveries to create delivery of a new item with item[]."is fragile": true, that the response from the sandbox incorrectly shows item[]."is fragile": false. At least I think this is incorrect, I didn't see it listed as a known limitation of the sandbox. Is this a bug?

More information:

  • OS: Ubuntu 16.04.1 LTS
  • Client: Postman 4.9.0

POST request to URL https://sandbox-api.uber.com/v1/deliveries

POST /v1/deliveries HTTP/1.1
Host: sandbox-api.uber.com
Authorization: [redacted]
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: [redacted]

{
    "items": [
        {
            "title": "Fragile Item",
            "quantity": 1,
            "price": 30,
            "is_fragile": true,
            "currency_code": "USD",
        }
    ],


    "dropoff": {
        "location": {
            "address": "530 W 113th Street",
            "address_2": "Floor 2",
            "city": "New York",
            "country": "US",
            "postal_code": "10025",
            "state": "NY"
        },
        "contact": {
            "first_name": "Alice",
            "last_name": "Dropoff",
            "email": "tomb@cryptocracy.net",
            "phone": {
                "number": "+19177447934",
                "sms_enabled": "true",
            },
        }
    },
    "pickup": {
        "location": {
            "address": "636 W 28th Street",
            "address_2": "Floor 2",
            "city": "New York",
            "country": "US",
            "postal_code": "10001",
            "state": "NY"
        },
        "contact": {
            "first_name": "Bob",
            "last_name": "Pickup",
            "email": "tomb@cryptocracy.net",
            "phone": {
                "number": "+19177447934",
                "sms_enabled": "true",
            },
        },
    },
}

Response from the sandbox:

{
  "status": "processing",
  "dropoff": {
    "eta": 12,
    "signature_required": false,
    "contact": {
      "first_name": "Alice",
      "last_name": "Dropoff",
      "send_sms_notifications": true,
      "send_email_notifications": true,
      "phone": {
        "sms_enabled": true,
        "number": "+19177447934"
      },
      "email": "tomb@cryptocracy.net"
    },
    "special_instructions": "",
    "location": {
      "city": "New York",
      "country": "US",
      "longitude": -73.963863,
      "state": "NY",
      "postal_code": "10025",
      "address_2": "Floor 2",
      "address": "530 W 113th Street",
      "latitude": 40.805264
    },
    "signature_image": {
      "url": "",
      "expires_at": "-62135596800"
    },
    "courier_notes": {}
  },
  "fee": 5,
  "quote_id": "c7e135da-957e-40b7-a2c5-5d468dc1d686",
  "courier": null,
  "items": [
    {
      "weight": 0,
      "title": "Bottle 3",
      "price": 30,
      "is_fragile": false,
      "height": 0,
      "width": 0,
      "length": 0,
      "currency_code": "USD",
      "quantity": 1
    }
  ],
  "created_at": 1480961485,
  "delivery_id": "21b1b8de-2cea-4bc4-a316-2fd7598787c7",
  "pickup": {
    "eta": 7,
    "signature_required": false,
    "contact": {
      "first_name": "Bob",
      "last_name": "Pickup",
      "send_sms_notifications": true,
      "send_email_notifications": true,
      "phone": {
        "sms_enabled": true,
        "number": "+19177447934"
      },
      "email": "tomb@cryptocracy.net"
    },
    "special_instructions": "",
    "location": {
      "city": "New York",
      "country": "US",
      "longitude": -74.0064109,
      "state": "NY",
      "postal_code": "10001",
      "address_2": "Floor 2",
      "address": "636 W 28th Street",
      "latitude": 40.7527293
    },
    "signature_image": {
      "url": "",
      "expires_at": "-62135596800"
    },
    "courier_notes": {}
  },
  "order_reference_id": "",
  "tracking_url": "https://api.uber.com/v1/sandbox/map",
  "currency_code": "USD"
}

Solution

  • This seems to be a bug in the Uber sandbox environment for the Deliveries API.