JUNGLEWORKS REST API

Create pickup task

NameTypeDescription
api_keystringYou can generate a key from settings(Login>Menu>Settings>API Keys) in your tookan account. Or click here to get API key
merchant_idstringThis is the unique ID given to each merchant. Enter the ID of the merchant whose task you want to create. You can get it from dashboard Menu>More>Merchant
order_idstringYour can pass this key as your own transaction number which can be used to identify tasks in tookan
job_descriptionStringThe description of the task to be done
job_pickup_phonestringThe contact number of the person from whom the pickup should be collected
job_pickup_namestring (optional)The email of the person from whom the pickup should be collected
job_pickup_emailstringThe email of the person from whom the pickup should be collected
job_pickup_addressstringThe address from which the pickup should be collected.
job_pickup_latitudestring (optional)This is the latitiude of the pickup location
job_pickup_longitudestring (optional)This is the longitude of the pickup location
job_pickup_datetimestringThis is time before which the pickup should be collected
has_pickupboolean (Fixed)For a Pickup task, this is fixed to 1
has_deliveryboolean (Fixed)For a Pickup task, this is fixed to 0
layout_typeinteger (Fixed)For a Pickup task, this is fixed to 0
tracking_linkbooleanIf this value is 1 it will return a url in the response where the driver's movement can be tracked.if not no url will be returned
timezonestringTimezone difference with UTC in minutes for e.g., For PST:+480 (PDT: +420),For MST +420 (MDT:+360) for EST: +300(EDT:+240), for AEST: -600 (AEDT: -660), for IST: -330, for CST: +360 (CDT:+300).
pickup_custom_field_templatestringThis is the custom fields template name that is pre-defined in your workflow page in the admin account and you just need to replace space in template with underscore(_).
pickup_meta_datajson arrayThis is array of object containing label and data where label defines the custom field name and data will be his value.(Provided label should be in specified template.)
team_idintegerThis is the Unique id of every team. You can get it from the dashBoard. More>teams>respective id of the team will displayed.
auto_assignmentbooleanIf this value is 1 The task will be auto assigned to the members of the specific team mentioned. or if this value is 0 it will be unassigned task created.
fleet_idstringThis is unique agent id given to each agent, if given the task will be assigned to the respective agent. You can get it from dashboard Menu>More>agents.
p_ref_imagesArrayThis is an array of strings containing links of images.
notifyintegerThis is used to enable the notifications.
geofenceintegerThis is used to enable the geofencing.
tagsstringThis is a string containing comma separated tags as filters for agents in auto assignment

POST
https://api.tookanapp.com/v2/create_task


Create delivery task

This API is used to create a Delivery Task for merchant. Request Body Parameters :

NameTypeDescription
api_keystringYou can generate a key from settings(Login>Menu>Settings>API Keys) in your tookan account. Or click here to get API key
merchant_idstringThis is the unique ID given to each merchant. Enter the ID of the merchant whose task you want to create. You can get it from dashboard Menu>More>Merchant
order_idstringYour can pass this key as your own transaction number which can be used to identify tasks in tookan
job_descriptionStringThe description of the task to be done
job_pickup_phonestringThe contact number of the person from whom the pickup should be collected
customer_emailemail(optional)This is email of the customer to whom the product should be delivered
customer_usernamestring(optional)This is the name of the customer to whom the product should be delivered
customer_usernamestring(optional)This is the name of the customer to whom the product should be delivered
customer_phonestringThis is the contact number of the customer to whom the product should be delivered
customer_addressstringThis is the address of the customer to whom the product should be delivered
latitudestring (optional)This is the latitiude of the pickup location if you have it. Otherwise leave it blank. We will get it through geocoding API
longitudestring (optional)This is the latitiude of the pickup location if you have it. Otherwise leave it blank. We will get it through geocoding API
job_delivery_datetimeDate/StringThis is time before which the product should be delivered
has_pickupboolean (Fixed)For a Pickup task, this is fixed to 1
has_deliveryboolean (Fixed)For a Pickup task, this is fixed to 0
layout_typeinteger (Fixed)For a Pickup task, this is fixed to 0
tracking_linkbooleanIf this value is 1 it will return a url in the response where the driver's movement can be tracked.if not no url will be returned
timezonestringTimezone difference with UTC in minutes for e.g., For PST:+480 (PDT: +420),For MST +420 (MDT:+360) for EST: +300(EDT:+240), for AEST: -600 (AEDT: -660), for IST: -330, for CST: +360 (CDT:+300).
pickup_custom_field_templatestringThis is the custom fields template name that is pre-defined in your workflow page in the admin account and you just need to replace space in template with underscore(_).
pickup_meta_datajson arrayThis is array of object containing label and data where label defines the custom field name and data will be his value.(Provided label should be in specified template.)
team_idintegerThis is the Unique id of every team. You can get it from the dashBoard. More>teams>respective id of the team will displayed.
auto_assignmentbooleanIf this value is 1 The task will be auto assigned to the members of the specific team mentioned. or if this value is 0 it will be unassigned task created.
fleet_idstringThis is unique agent id given to each agent, if given the task will be assigned to the respective agent. You can get it from dashboard Menu>More>agents.
p_ref_imagesArrayThis is an array of strings containing links of images.
notifyintegerThis is used to enable the notifications.
geofenceintegerThis is used to enable the geofencing.
tagsstringThis is a string containing comma separated tags as filters for agents in auto assignment

POST
https://api.tookanapp.com/v2/create_task


Create pickup and delivery task

This API is used to create a pickup and Delivery Task for merchant. Request Body Parameters :

NameTypeDescription
api_keystringYou can generate a key from settings(Login>Menu>Settings>API Keys) in your tookan account. Or click here to get API key
merchant_idstringThis is the unique ID given to each merchant. Enter the ID of the merchant whose task you want to create. You can get it from dashboard Menu>More>Merchant
order_idstringYour can pass this key as your own transaction number which can be used to identify tasks in tookan
job_descriptionStringThe description of the task to be done
job_pickup_phonestringThe contact number of the person from whom the pickup should be collected
job_pickup_namestring (optional)The email of the person from whom the pickup should be collected
job_pickup_emailstringThe email of the person from whom the pickup should be collected
job_pickup_addressstringThe address from which the pickup should be collected.
job_pickup_latitudestring (optional)This is the latitiude of the pickup location
job_pickup_longitudestring (optional)This is the longitude of the pickup location
job_pickup_datetimestringThis is time before which the pickup should be collected
customer_emailemail(optional)This is email of the customer to whom the product should be delivered
customer_usernamestring(optional)This is the name of the customer to whom the product should be delivered
customer_usernamestring(optional)This is the name of the customer to whom the product should be delivered
customer_phonestringThis is the contact number of the customer to whom the product should be delivered
customer_addressstringThis is the address of the customer to whom the product should be delivered
latitudestring (optional)This is the latitiude of the pickup location if you have it. Otherwise leave it blank. We will get it through geocoding API
longitudestring (optional)This is the latitiude of the pickup location if you have it. Otherwise leave it blank. We will get it through geocoding API
job_delivery_datetimeDate/StringThis is time before which the product should be delivered
has_pickupboolean (Fixed)For a Pickup task, this is fixed to 1
has_deliveryboolean (Fixed)For a Pickup task, this is fixed to 0
layout_typeinteger (Fixed)For a Pickup task, this is fixed to 0
tracking_linkbooleanIf this value is 1 it will return a url in the response where the driver's movement can be tracked.if not no url will be returned
timezonestringTimezone difference with UTC in minutes for e.g., For PST:+480 (PDT: +420),For MST +420 (MDT:+360) for EST: +300(EDT:+240), for AEST: -600 (AEDT: -660), for IST: -330, for CST: +360 (CDT:+300).
pickup_custom_field_templatestringThis is the custom fields template name that is pre-defined in your workflow page in the admin account and you just need to replace space in template with underscore(_).
pickup_meta_datajson arrayThis is array of object containing label and data where label defines the custom field name and data will be his value.(Provided label should be in specified template.)
meta_dataJSON arrayThis is array of object containing label and data where label defines the custom field name and data will be his value.(Provided label should be in specified template.)
auto_assignmentbooleanIf this value is 1 The task will be auto assigned to the members of the specific team mentioned. or if this value is 0 it will be unassigned task created.
fleet_idstringThis is unique agent id given to each agent, if given the task will be assigned to the respective agent. You can get it from dashboard Menu>More>agents.
p_ref_imagesArrayThis is an array of strings containing links of images.
notifyintegerThis is used to enable the notifications.
geofenceintegerThis is used to enable the geofencing.
tagsstringThis is a string containing comma separated tags as filters for agents in auto assignment
ride_typenumber0 for Non-Pool Task, 1 for Pool Task.

POST
https://api.tookanapp.com/v2/create_task


Create appointment task

This API is used to create a appointment Task for merchant. Request Body Parameters :

NameTypeDescription
api_keystringYou can generate a key from settings(Login>Menu>Settings>API Keys) in your tookan account. Or click here to get API key
merchant_idstringThis is the unique ID given to each merchant. Enter the ID of the merchant whose task you want to create. You can get it from dashboard Menu>More>Merchant
order_idstringYour can pass this key as your own transaction number which can be used to identify tasks in tookan
customer_emailemail(optional)This is email of the customer to whom the product should be delivered
customer_usernamestring(optional)This is the name of the customer to whom the product should be delivered
customer_usernamestring(optional)This is the name of the customer to whom the product should be delivered
customer_phonestringThis is the contact number of the customer to whom the product should be delivered
customer_addressstringThis is the address of the customer to whom the product should be delivered
latitudestring (optional)This is the latitiude of the pickup location if you have it. Otherwise leave it blank. We will get it through geocoding API
longitudestring (optional)This is the latitiude of the pickup location if you have it. Otherwise leave it blank. We will get it through geocoding API
job_pickup_datetimeDate/StringThis is the start time of the appointment.
job_delivery_datetimeDate/StringThis is time before which the product should be delivered
timezonestringTimezone difference with UTC in minutes for e.g., For PST:+480 (PDT: +420),For MST +420 (MDT:+360) for EST: +300(EDT:+240), for AEST: -600 (AEDT: -660), for IST: -330, for CST: +360 (CDT:+300).
has_pickupboolean (Fixed)For a Pickup task, this is fixed to 1
has_deliveryboolean (Fixed)For a Pickup task, this is fixed to 0
layout_typeinteger (Fixed)For a Pickup task, this is fixed to 0
tracking_linkbooleanIf this value is 1 it will return a url in the response where the driver's movement can be tracked.if not no url will be returned
custom_field_templatestringThis is the custom fields template name that is pre-defined in your workflow page in the admin account and you just need to replace space in template with underscore(_).
meta_datajson arrayThis is array of object containing label and data where label defines the custom field name and data will be his value.(Provided label should be in specified template.)
team_idintegerThis is the Unique id of every team. You can get it from the dashBoard. More>teams>respective id of the team will displayed.
auto_assignmentbooleanIf this value is 1 The task will be auto assigned to the members of the specific team mentioned. or if this value is 0 it will be unassigned task created.
fleet_idstringThis is unique agent id given to each agent, if given the task will be assigned to the respective agent. You can get it from dashboard Menu>More>agents.
ref_imagesArrayThis is an array of strings containing links of images.
notifyintegerThis is used to enable the notifications.
geofenceintegerThis is used to enable the geofencing.
tagsstringThis is a string containing comma separated tags as filters for agents in auto assignment
POST
https://api.tookanapp.com/v2/create_task