Here is the full example of the event that Radaro sends out when Confirmation codes are passed.
Token in body
{
"new_values": {
"completion_codes": [
{
"code": 201,
"name": "Success #1",
"type": "success"
},
{
"code": 202,
"name": "Success #2",
"type": "success"
}
],
"completion_comment": "Test"
},
"old_values": {
"completion_codes": [],
"completion_comment": null
},
"order_info": {
"external_id": "external-job-000",
"deliver_before": "2021-09-03T12:30:13.103311+10:00",
"manager": {
"member_id": 79615228,
"email": "[email protected]",
"first_name": "Henry",
"last_name": "Morrison",
"avatar": null,
"is_online": false,
"work_status": "not_working",
"phone": "+61499902001",
"thumb_avatar_100x100": null,
"can_make_payment": false,
"merchant_position": "Manager",
"full_name": "Henry Morrison",
"role": "Manager"
},
"customer": {
"id": 1,
"email": "[email protected]",
"name": "John Smith",
"phone": null
},
"deliver_address": {
"id": 43157,
"address": "4/433 Nepean Hwy, Frankston VIC 3199, Australia",
"raw_address": "",
"location": "-38.1422402, 145.1220692",
"description": ""
},
"deliver_address_2": "",
"pickup_after": null,
"pickup_before": null,
"pickup_address": {
"id": 1,
"address": "395 Ballarto Rd, Skye VIC 3977, Australia",
"raw_address": "",
"location": "-38.117559, 145.200953",
"description": ""
},
"pickup": {
"name": "Warehouse 2",
"email": "[email protected]",
"phone": ""
},
"confirmation_signature": null,
"geofence_entered_at": null,
"geofence_exited_at": null,
"title": "Job: ID 179736047",
"title_2": "",
"title_3": "",
"comment": "",
"started_at": null,
"picked_up_at": null,
"pick_up_distance": null,
"order_distance": null,
"status": "delivered",
"order_id": 179736047,
"starting_point": {
"id": 1,
"address": "179 Hall Rd, Carrum Downs VIC 3201, Australia",
"raw_address": "",
"location": "-38.101827, 145.193179",
"description": ""
},
"confirmation_comment": null,
"updated_at": "2020-06-15T21:38:16.440763+10:00",
"created_at": "2020-06-15T21:38:16.440787+10:00",
"rating": null,
"customer_comment": null,
"pending_comment": null,
"customer_review_opt_in": false,
"duration": null,
"deadline_passed": false,
"driver": 12345678,
"merchant": 1,
"description": "",
"sub_branding": 1,
"label": null,
"labels": [],
"error_code": null,
"error_comment": "Test",
"completion_code": {
"code": 201,
"type": "success",
"name": "Success #1"
},
"completion_codes": [
{
"code": 201,
"type": "success",
"name": "Success #1"
},
{
"code": 202,
"type": "success",
"name": "Success #2"
}
],
"completion_comment": "Test",
"customer_tracking_url"https://rtra.cc/pFIEJ",
"is_confirmed_by_customer": false,
"order_confirmation_photos": [],
"pre_inspection_comment": null,
"pre_inspection_signature": null,
"pre_inspection_photos": [],
"driver_checklist": null,
"pre_confirmation_photos": [],
"pre_confirmation_signature": null,
"pre_confirmation_comment": null,
"delivery_interval": null,
"skill_sets": [],
"barcodes": [],
"wayback_point": null,
"wayback_hub": null,
"pickup_geofence_entered_at": null,
"pickup_geofence_exited_at": null,
"pick_up_confirmation_photos": null,
"pick_up_confirmation_signature": null,
"pick_up_confirmation_comment": null,
"capacity": null,
"optimisation_id": null,
"enable_rating_reminder": true,
"custom_redirect_url": true,
"concatenated_order": null,
"orders": null,
"is_concatenated_order": false
},
"updated_at": "2020-06-15T21:38:16.725914+10:00",
"event_type": "updated",
"token": "ZUxfNqDzEx0BtcA3m_R7wA",
"topic": "job.completion_codes_accepted"
}
Token in headers
{
"Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}
Body
{
"new_values": {
"completion_codes": [
{
"code": 201,
"name": "Success #1",
"type": "success"
},
{
"code": 202,
"name": "Success #2",
"type": "success"
}
],
"completion_comment": "Test"
},
"old_values": {
"completion_codes": [],
"completion_comment": null
},
"order_info": {
"external_id": "external-job-000",
"deliver_before": "2021-09-03T12:30:13.103311+10:00",
"manager": {
"member_id": 79615228,
"email": "[email protected]",
"first_name": "Henry",
"last_name": "Morrison",
"avatar": null,
"is_online": false,
"work_status": "not_working",
"phone": "+61499902001",
"thumb_avatar_100x100": null,
"can_make_payment": false,
"merchant_position": "Manager",
"full_name": "Henry Morrison",
"role": "Manager"
},
"customer": {
"id": 1,
"email": "[email protected]",
"name": "John Smith",
"phone": null
},
"deliver_address": {
"id": 43157,
"address": "4/433 Nepean Hwy, Frankston VIC 3199, Australia",
"raw_address": "",
"location": "-38.1422402, 145.1220692",
"description": ""
},
"deliver_address_2": "",
"pickup_after": null,
"pickup_before": null,
"pickup_address": {
"id": 1,
"address": "395 Ballarto Rd, Skye VIC 3977, Australia",
"raw_address": "",
"location": "-38.117559, 145.200953",
"description": ""
},
"pickup": {
"name": "Warehouse 2",
"email": "[email protected]",
"phone": ""
},
"confirmation_signature": null,
"geofence_entered_at": null,
"geofence_exited_at": null,
"title": "Job: ID 179736047",
"title_2": "",
"title_3": "",
"comment": "",
"started_at": null,
"picked_up_at": null,
"pick_up_distance": null,
"order_distance": null,
"status": "delivered",
"order_id": 179736047,
"starting_point": {
"id": 1,
"address": "179 Hall Rd, Carrum Downs VIC 3201, Australia",
"raw_address": "",
"location": "-38.101827, 145.193179",
"description": ""
},
"confirmation_comment": null,
"updated_at": "2020-06-15T21:38:16.440763+10:00",
"created_at": "2020-06-15T21:38:16.440787+10:00",
"rating": null,
"customer_comment": null,
"pending_comment": null,
"customer_review_opt_in": false,
"duration": null,
"deadline_passed": false,
"driver": 12345678,
"merchant": 1,
"description": "",
"sub_branding": 1,
"label": null,
"labels": [],
"error_code": null,
"error_comment": "Test",
"completion_code": {
"code": 201,
"type": "success",
"name": "Success #1"
},
"completion_codes": [
{
"code": 201,
"type": "success",
"name": "Success #1"
},
{
"code": 202,
"type": "success",
"name": "Success #2"
}
],
"completion_comment": "Test",
"customer_tracking_url"https://rtra.cc/pFIEJ",
"is_confirmed_by_customer": false,
"order_confirmation_photos": [],
"pre_inspection_comment": null,
"pre_inspection_signature": null,
"pre_inspection_photos": [],
"driver_checklist": null,
"pre_confirmation_photos": [],
"pre_confirmation_signature": null,
"pre_confirmation_comment": null,
"delivery_interval": null,
"skill_sets": [],
"barcodes": [],
"wayback_point": null,
"wayback_hub": null,
"pickup_geofence_entered_at": null,
"pickup_geofence_exited_at": null,
"pick_up_confirmation_photos": null,
"pick_up_confirmation_signature": null,
"pick_up_confirmation_comment": null,
"capacity": null,
"optimisation_id": null,
"enable_rating_reminder": true,
"custom_redirect_url": true,
"concatenated_order": null,
"orders": null,
"is_concatenated_order": false
},
"updated_at": "2020-06-15T21:38:16.725914+10:00",
"event_type": "updated",
"topic": "job.completion_codes_accepted"
}