API Endpoint not detecting inicialization

Response

{“status”:“SUCCESS”,“message”:“The endpoint tookan-status was sucessfully initialized”}

But Bubble is Stuck in the Detecting Popup and don’t show the detected response

any clues?

What is your initialization link

1 Like

https://dod-custom-order.bubbleapps.io/version-test/api/1.1/wf/status-tookan/initialize

Endpoint initialize
https://dod-custom-order.bubbleapps.io/version-test/api/1.1/wf/status-tookan/initialize

Post Data:

{“job_id”:98054541,“created_by”:5,“order_id”:“null”,“recurring_id”:“0”,“recurring_count”:0,“partner_order_id”:null,“team_id”:102953,“vertical”:0,“merchant_id”:0,“geofence”:0,“tags”:“”,“auto_assignment”:0,“dispatcher_id”:null,“job_hash”:“175f3b6f6bec31f1a5589734c0dbad2b”,“has_pickup”:1,“has_delivery”:0,“is_routed”:0,“pickup_delivery_relationship”:“9805454115908988506155976”,“job_description”:“Shops Beacon Lighting”,“job_pickup_datetime”:“05/31/2020 02:20 pm”,“job_pickup_name”:“Burleigh Heads”,“job_pickup_phone”:“0”,“job_delivery_datetime”:“Invalid date”,“job_pickup_latitude”:“-28.0972342”,“job_pickup_longitude”:“153.4407258”,“job_pickup_address”:“149 W Burleigh Rd, Burleigh Heads QLD 4220, Australia”,“job_pickup_email”:“”,“job_latitude”:“”,“job_longitude”:“”,“customer_username”:“Stockland Burleigh Heads”,“customer_email”:“”,“customer_phone”:“0”,“job_address”:“”,“creation_datetime”:“2020-05-31T04:20:50.000Z”,“fleet_id”:515330,“user_id”:165,“fleet_rating”:null,“customer_comment”:null,“is_customer_rated”:0,“customer_id”:23932367,“arrived_datetime”:“”,“started_datetime”:“2020-05-31 14:21:43”,“completed_datetime”:“”,“acknowledged_datetime”:“2020-05-31 14:21:26”,“job_status”:1,“is_active”:1,“job_type”:0,“completed_by_admin”:0,“open_tracking_link”:0,“timezone”:“-600”,“job_time”:“2020-05-31 02:20:0”,“job_date”:“2020-05-31T00:00:00.000Z”,“job_time_utc”:“2020-05-31T04:20:00.000Z”,“job_date_utc”:“2020-05-31T00:00:00.000Z”,“total_distance_travelled”:0,“form_id”:null,“customer_rating”:null,“driver_comment”:null,“remarks”:null,“barcode”:null,“ride_type”:0,“matched_pickup_delivery_relationship”:null,“job_vertical”:0,“days_started”:“0”,“tookan_shared_secret”:null,“distance_in”:“KM”,“access_token”:“c850f6bf78bfd8d5ac7c22c1948336052d25413c5de77a05fe581a2f38420b3af21c4234ee491fb0fdc73ff4bba0518f”,“domain”:“https://app.tookanapp.com",“agent_workflow”:0,“fleet_name”:“drive”,“fleet_email”:"caaaaa@aaaa.com”,“fleet_phone”:“+25643543”,“fleet_latitude”:“-28.061555405173507”,“fleet_longitude”:“153.42068698271495”,“transport_type”:1,“license”:“”,“transport_desc”:“”,“fleet_image”:“app/img/user.png”,“job_details_by_fleet”:515330,“external_fleet_id”:“”,“fleet_vehicle_type”:1,“fleet_vehicle_color”:“”,“fleet_vehicle_description”:“”,“task_status”:1,“promo_used”:“”,“custom_fields”:,“ref_images”:,“tracking_link”:“jngl.ml - This website is for sale! - jngl Resources and Information. May 2020 14:21”,“acknowledged_datetime_formatted”:“31 May 2020 14:21”,“job_token”:“9805454115908988506155976”,“job_time_formatted”:“31 May 2020 14:20”,“job_pickup_datetime_formatted”:“31 May 2020 14:20”,“job_delivery_datetime_formatted”:“Invalid date”,“total_distance”:“0.00 Km”,“webhook_type”:0,“format”:“application/json”,“template_key”:“AGENT_STARTED”,“is_internal”:0,“full_tracking_link”:“https://app.tookanapp.com/tracking/index.html?jobID=175f3b6f6bec31f1a5589734c0dbad2b”}

Response
{“status”:“SUCCESS”,“message”:“The endpoint status-tookan was sucessfully initialized”}

Stuck in this

When I post it after manualy creating the variables

endpoint
https://dod-custom-order.bubbleapps.io/version-test/api/1.1/wf/status-tookan

Data:

{“job_id”:98042484,“created_by”:5,“order_id”:“null”,“recurring_id”:“0”,“recurring_count”:0,“partner_order_id”:null,“team_id”:102953,“vertical”:0,“merchant_id”:0,“geofence”:0,“tags”:"",“auto_assignment”:0,“dispatcher_id”:null,“job_hash”:“5d6e195ef562ac18e7602bcfe380a567”,“has_pickup”:1,“has_delivery”:0,“is_routed”:0,“pickup_delivery_relationship”:“9804248415908967570935706”,“job_description”:“Shops Liquorland, Big W”,“job_pickup_datetime”:“05/31/2020 01:45 pm”,“job_pickup_name”:“Stockland Townsville”,“job_pickup_phone”:“0”,“job_delivery_datetime”:“Invalid date”,“job_pickup_latitude”:"-19.2999161",“job_pickup_longitude”:“146.7619927”,“job_pickup_address”:“Nathan Plaza, 310-330 Ross River Rd, Aitkenvale QLD 4814, Australia”,“job_pickup_email”:"",“job_latitude”:"",“job_longitude”:"",“customer_username”:“Stockland Townsville”,“customer_email”:"",“customer_phone”:“0”,“job_address”:"",“creation_datetime”:“2020-05-31T03:45:57.000Z”,“fleet_id”:515330,“user_id”:95165,“fleet_rating”:null,“customer_comment”:null,“is_customer_rated”:0,“customer_id”:23932367,“arrived_datetime”:“2020-05-31 14:07:53”,“started_datetime”:“2020-05-31 14:07:18”,“completed_datetime”:“2020-05-31 14:29:51”,“acknowledged_datetime”:“2020-05-31 13:46:24”,“job_status”:2,“is_active”:1,“job_type”:0,“completed_by_admin”:0,“open_tracking_link”:0,“timezone”:"-600",“job_time”:“2020-05-31 01:45:0”,“job_date”:“2020-05-31T00:00:00.000Z”,“job_time_utc”:“2020-05-31T03:45:00.000Z”,“job_date_utc”:“2020-05-31T00:00:00.000Z”,“total_distance_travelled”:53,“form_id”:null,“customer_rating”:null,“driver_comment”:null,“remarks”:null,“barcode”:null,“ride_type”:0,“matched_pickup_delivery_relationship”:null,“job_vertical”:0,“days_started”:“0”,“tookan_shared_secret”:null,“distance_in”:“KM”,“access_token”:“c850f6bf78bfd8d5ac7c22c1948336052d25413c5de77a05fe581a2f38420b3af21c4234ee491fb0fdc73ff4bba0518f”,“domain”:“https://app.tookanapp.com",“agent_workflow”:0,“fleet_name”:"",“fleet_email”:"@me.com”,“fleet_phone”:"+",“fleet_latitude”:"-28.06156307461491",“fleet_longitude”:“153.42063493109626”,“transport_type”:1,“license”:"",“transport_desc”:"",“fleet_image”:“app/img/user.png”,“job_details_by_fleet”:515330,“external_fleet_id”:"",“fleet_vehicle_type”:1,“fleet_vehicle_color”:"",“fleet_vehicle_description”:"",“task_status”:2,“promo_used”:"",“custom_fields”:[],“ref_images”:[],“tracking_link”:“https://jngl.ml/bcZMfe380",“job_report”:{“formula_fields”:{“1”:null,“2”:null,“3”:null},“total_fields”:{“1”:0,“2”:0,“3”:0}},“task_history”:[],“job_state”:“Successful”,“task_state”:“SUCCESSFUL”,“completed_datetime_formatted”:"31 May 2020 14:29”,“started_datetime_formatted”:“31 May 2020 14:07”,“arrived_datetime_formatted”:“31 May 2020 14:07”,“acknowledged_datetime_formatted”:“31 May 2020 13:46”,“job_token”:“9804248415908967570935706”,“job_time_formatted”:“31 May 2020 13:45”,“timestamp_diff”:1353000,“total_time_spent_at_task_till_completion”:“22 minutes”,“job_pickup_datetime_formatted”:“31 May 2020 13:45”,“job_delivery_datetime_formatted”:“Invalid date”,“total_distance”:“0.05 Km”,“webhook_type”:0,“format”:“application/json”,“template_key”:“SUCCESSFUL”,“is_internal”:0,“full_tracking_link”:“https://app.tookanapp.com/tracking/index.html?jobID=5d6e195ef562ac18e7602bcfe380a567”}

Response:

{“statusCode”:400,“body”:{“status”:“MISSING_DATA”,“message”:“Missing parameter for workflow status-tookan: parameter job_id”}}

Please see above

You need to add /initialize after the URL.

https://dod-custom-order.bubbleapps.io/version-test/api/1.1/wf/status-tookan/initialize

1 Like

I did. see replies

Looks like was some kind of but, Used th postman to debug and managed to get the initialisation right.

Not sure what was wrong