Uber Direct
Ensure you have provided required credentials to ship with Uber Direct.
Uber Direct credential requirements
Prior to shipping with Uber Direct, you must configure credentials in the Shipium Console. You'll provide a client ID, client secret, and customer ID for production and for test mode.
Additional requirements
For single-parcel shipments, the following additional fields should be nested in the shipmentParameters property. For multi-parcel shipments, they should be included in multiParcelShipmentParameters. While a phone number is required for both the shipper and recipient, the other fields are optional.
Required fields
Request field | Details |
|---|---|
| Type: String |
| Type: String |
Conditional fields
Request field | Details |
|---|---|
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
Optional fields
Request field | Details |
|---|---|
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: Number (float) |
| Type: String |
| Type: String (enumeration) |
| Type: Number (float) |
| Type: String |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: String |
| Type: Boolean |
| Type: Integer (int32) |
| Type: String |
| Type: Integer (int32) |
| Type: String |
| Type: Integer (int64) |
| Type: Boolean |
| Type: Integer (int32) |
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: Boolean |
| Type: String (date-time) |
| Type: String (date-time) |
| Type: Boolean |
| Type: String (date-time) |
| Type: String (enumeration) |
| Type: String (enumeration) |
| Type: Integer (int32) |
| Type: String |
| Type: Integer (int32) |
| Type: String |
| Type: Integer (int32) |
| Type: String |
| Type: String (enumeration) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Integer (int32) |
| Type: Boolean |
A snippet of the JSON request for the API call with the required and optional fields is included. This example is for a single-parcel shipment. A multi-parcel shipment would be included in multiParcelShipmentParameters.
{
"shipmentParameters": {
"shipFromAddress": {
"phoneNumber": "8123334545",
...
},
"destinationAddress": {
"phoneNumber": "31299163377",
...
},
"lastMileDeliveryOptions": {
"deliveryInstruction": "LEAVE_AT_DOOR",
"undeliverableInstruction": "LEAVE_AT_DOOR",
"tip": {
"tipType": "fixed",
"tipValue": 5,
"currencyCode": "usd",
"carrierObjectTip": "string"
},
"tipForLabelCreate": {
"tipType": "fixed",
"tipValue": 0,
"currencyCode": "usd",
"carrierObjectTip": "string"
},
"deliverableActionForLabelCreate": "RETURN",
"undeliverableActionForLabelCreate": "RETURN"
},
"pickupWindow": {
"startWindow": {
"hour": 0,
"minute": 0,
"second": 0,
"nano": 0
},
"endWindow": {
"hour": 0,
"minute": 0,
"second": 0,
"nano": 0
},
"timeZone": {
"id": "7ea92d86-5522-47f9-b4b3-7684d67399d8",
"rules": {
"fixedOffset": true,
"transitions": [
{
"offsetBefore": {
"totalSeconds": 0,
"id": "f03c77f3-76a7-491b-9901-a37d7ca188b3"
},
"offsetAfter": {
"totalSeconds": 0,
"id": "4765e1c5-a9cd-492a-956c-7c997eac119f"
},
"duration": {
"seconds": 0,
"zero": true,
"nano": 0,
"negative": true,
"units": [
{
"durationEstimated": true,
"timeBased": true,
"dateBased": true
}
]
},
"gap": true,
"dateTimeAfter": "2024-08-02T15:12:30.388Z",
"dateTimeBefore": "2024-08-02T15:12:30.388Z",
"overlap": true,
"instant": "2024-08-02T15:12:30.388Z"
}
],
"transitionRules": [
{
"month": "January",
"timeDefinition": "utc",
"standardOffset": {
"totalSeconds": 0,
"id": "56c4af6f-d5d4-40dc-919c-e6aa46a1057b"
},
"offsetBefore": {
"totalSeconds": 0,
"id": "a670c662-4ed6-41db-9855-d83748e25eb0"
},
"offsetAfter": {
"totalSeconds": 0,
"id": "573c4ee7-326f-4826-a214-4b74d4ba1964"
},
"dayOfWeek": "Monday",
"dayOfMonthIndicator": 0,
"localTime": {
"hour": 0,
"minute": 0,
"second": 0,
"nano": 0
},
"midnightEndOfDay": true
}
]
}
}
}
...
}
}Resources
Your Shipium team member is available to help along the way. However, you might find these resources helpful:
Updated 17 days ago
