Release notes v2.10.2 | October 27, 2020
over 4 years ago by Zachary Speltz
Ticket API
-
Points will no longer be double counted when making a payment through the external ticket API. Customers will now only earn points when a ticket is marked as completed and not when the ticket is paid for in Treez.
-
Partners now have the ability to include additional data about the delivery route with the Create and Update Ticket API endpoints. Using the Delivery_Route array, you’re enabled to populate more granular data about the delivery itself, including information regarding the vehicle, delivery driver, estimated delivery times, and delivery route. Check below for all of the additional fields now available through the Ticket API:
"delivery_route": {
"driver_name": "John Doe",
"driver_occupational_license_number": "42523451",
"driver_vehicle_license_number": "F1214231234",
"phone_number_for_questions": "9252818913",
"vehicle_make": "Honda",
"vehicle_model": "Civic",
"vehicle_license_plate_number": "45HG29”,
"estimated_departure_datetime": "2020-10-24T11:00:00.000",
"estimated_arrival_datetime": "2020-10-24T13:00:00.000",
"planned_route":{
"legs": [{
"steps": [ {
"html_instructions": "Head \u003cb\u003enorth\u003c/b\u003e on \u003cb\u003eS Morgan St\u003c/b\u003e toward \u003cb\u003eW Cermak Rd\u003c/b\u003e",
"distance": {
"text": "0.1 mi"
}
} ],
"steps": [{additional steps of this leg
}]
}],
"legs": [{additional legs of this route
}]
},
"vin": "123123SDSSDFSDSFSF"
}