Hello, I’m trying to set up Uber Direct API using Bubble’s API connector. This is the body for the API call:
{
"pickup_address": "<pickup_address>",
"dropoff_address": "<dropoff_address>",
"pickup_latitude": <pickup_latitude>,
"pickup_longitude": <pickup_longitude>,
"dropoff_latitude": <dropoff_latitude>,
"dropoff_longitude": <dropoff_longitude>,
"pickup_ready_dt": "<pickup_ready_dt>",
"pickup_deadline_dt": "<pickup_deadline_dt>",
"dropoff_ready_dt": "<dropoff_ready_dt>",
"dropoff_deadline_dt": "<dropoff_deadline_dt>",
"pickup_phone_number": "<pickup_phone_number>",
"dropoff_phone_number": "<dropoff_phone_number>",
"manifest_total_value": <manifest_total_value>,
"external_store_id": "Test"
}
I tested using Postman to test my Uber Direct credentials and substituting the dynamic values for static values and got a successful response which tells me that the body is well structured
{
"pickup_address": "{\"street_address\":[\"100 Maiden Ln\"],\"city\":\"New York\",\"state\":\"NY\",\"zip_code\":\"10023\",\"country\":\"US\"}",
"dropoff_address": "{\"street_address\":[\"30 Lincoln Center Plaza\"],\"city\":\"New York\",\"state\":\"NY\",\"zip_code\":\"10023\",\"country\":\"US\"}",
"pickup_latitude": 40.7066581,
"pickup_longitude": -74.0071868,
"dropoff_latitude": 40.7725,
"dropoff_longitude": -73.9835,
"pickup_ready_dt": "2025-04-24T20:45:00.000Z",
"pickup_deadline_dt": "2025-04-24T21:00:00.000Z",
"dropoff_ready_dt": "2025-04-24T21:00:00.000Z",
"dropoff_deadline_dt": "2025-04-24T22:30:00.000Z",
"pickup_phone_number": "+15555555555",
"dropoff_phone_number": "+15555555555",
"manifest_total_value": 1000,
"external_store_id": "Test"
}
The problem comes when I try to initialize the API call in Bubble I get the following error:
The service this service just returned an error (HTTP 400). Please consult their documentation to ensure your call is setup properly. Raw error:
{"error":"failed to parse incoming request json: invalid character 'c' looking for beginning of value"}
I suspect is a problem on how Bubble is interpreting the dynamic values I use. Please let me know any suggestions or advice.
Thank you.