Inti Go Docs
Inti Go Docs
way.
1. Links:
The links will be composed always from two parts, the first part will be always fixed cause it will be composed from a
subdomain concatenated with the restful API base URL with the specific endpoint URL.
Example:
/adddelivery : The specific endpoint used for example to add a delivery request.
https://partner-app.intigo.tn/ api/v1/externalapi/ : The full base URL.
https://partner-app.intigo.tn/ api/v1/externalapi/adddelivery : The full API URL used to add a delivery
request. On the next parts, we will only specify the endpoint URL that you will use to send or receive
data.
2. Authentication:
Every partner has an API KEY that he can get once he connects on the dashboard and open the section "Profile" and
scroll to the end of the page.
https://my.intigo.tn/profile (PROD)
https://dev-my.intigo.tn/profile (STAGING)
So, this API Key should be always sent within the body object elements.
For example, you will send a new delivery object:
{
"apiKey":"a55561b3a4555726287aboke5035135101",
"id":153,
"pickUp":{
"address":"“54 Rue Mouawiya Ibn Abi Sofiene,Ariana",
"pickUpDate":"2021-01-21",
"fromTo":"08:00-12:00",
"city":"Béja", // pickup city
"coordinates": [ //optional
10.5420251,
36.3721756999999
cit
]
},
"paymentStatus":1,
"dropOff":{
"address":"“54 Rue Mouawiya Ibn Abi Sofiene,Ariana",
"coordinates": [ //optional
10.5420251,
36.3721756999999
]
},
"ClientName":"zaid selmi",
"ClientPhone":"--------",
"city":"Tunis",
"subDivision":"Bardo",
"additionalInfo":"test test", //optional
"descProduit":"test test" //optional
}
3. API endpoints:
Depending on the action you want to do, there is a number of fields that you should populate with the right information
to get a success result. Here is the list of all the actions allowed on our API:
Action Request type Endpoint URL
The following table represents the data that you can send for every action:
Action Field name Required Elements
Type
/O
ptional
ClientName required String ● The full client name (first name + last name)
request apiKey Required String ● Your API KEY from profile section.
infos
Filter apiKey Required String ⚫ Your API KEY from profile section.
deliveries
itemsPerPage Optional String ⚫ how many delivery you want per page
Responses:
Action Success status Failure status Response body
status: “Delivered”
}
docs : [
{
“nid”: 201,
paymentstatus: 1
}
],
“totalDocs”:2,
“limit”:50,
“totalPages”:1,
“page”:1,
“pagingCounter”:1,
“hasPrevPage”:false,
“hasNextPage”:false,
“prevPage”:null,
“nextPage”:null
}
Note:
For the pickUp and dropOff objects, the coordinates array is not required but for example if you have a fixed pickUp
points, you can create a new table on your database and add the coordinates on it and send the required one withing
your requests data.
Please get the list of cities and subdivisions to be used via this url :
[GET] https://partner-app.intigo.tn/api/deliveryrequest/regions
{
"apiKey":"a555613a455726287ab1a2azd5135101",
"itemPerPage":"50", //optional
"page":2, //optional
"ClientName":"NAAAME CLIENT", //optional
"ClientPhone":"53886427", //optional
"city": "azrabegen", //optional
"subDivision":"bangladech", //optional
"additionalInfo":"very tired here", //optional
"descProduit":"desc produit" //optional
}
example of a response from “/api/v1/externalapi/deliveries”
{
"docs": [
{
"cid": "x23DD4",
"nid": "5211",
"ClientName": "NAAAME CLIENT",
"city": "azrabegen",
"subDivision": "bangladech",
"paymentStatus": 1,
"dropOff": {
"address": "54 ADDRESS BAD, ARIANA",
"status": "En attente de livraison"
},
"pickUp": {
"address": "54 ADDRESS BAD, ARIANA",
"status": "En attente d'enlévement"
}
}
],
"totalDocs": 2,
"limit": 50,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
example of a POST request to “/api/v1/externalapi/getDelivery” {
"apiKey":"a555613a455726287aola2e505135101",
"nid":"5209"
}
example of a response from “/api/v1/externalapi/getDelivery” {
"cid": "x234",
"nid": "5209",
"ClientName": "NAAAME CLIENT",
"city": "azrabegen",
"subDivision": "bangladech",
"paymentStatus": 1,
"addInfo": "very here",
"descProduit": "desc produit",
"dropOff": {
"address": "54 ADDRESS BAD, ARIANA",
"status": "En attente de livraison"
},
"pickUp": {
"address": "54 ADDRESS BAD, ARIANA",
"status": "En attente d'enlévement"
}
}
GETTING PDF
Example
https://dev-partner-app.intigo.tn/api/v1/externalapi/bordereau/31350
Status - Livraison
status = [
{
name: 'En attente de livraison',
value: 1,
},
{
name: 'Assigné',
value: 2,
},
{
name: 'Livraison en cours',
value: 10,
},
{
name: 'Refusé par chauffeur',
value: 4,
},
{
name: 'Commencée',
value: 5,
},
{
name: 'Point Relais',
value: 18,
},
{
name: 'Commande livrée',
value: 6,
},
{
name: 'declined by admin',
value: 8,
},
{
name: 'Annulée par vendeur',
value: 14,
},
{
name: 'Retour depuis point relais',
value: 19,
},
{
name: 'Retour provisoire',
value: 15,
},
{
name: 'Retour définitif',
value: 16,
},
{
name: 'Retour vendeur',
value: 17,
},
{
name: 'Adresse non exacte',
value: 12,
},
{
name: 'Transfert en cours',
value: 20,
},
{
name: 'Retour vers dépôt',
value: 24,
},
{
name: 'En dépôt',
value: 25,
},
{
name: 'Colis perdu',
value: 21,
},];
Status - pickup
status = [
{
name: "En attente d'enlèvement",
value: 1,
},
{
name: 'Assigné',
value: 2,
},
{
name: 'Accepted',
value: 3,
},
{
name: 'Pickup assurée',
value: 10,
},
{
name: 'Refusé par chauffeur',
value: 4,
},
{
name: 'Commencé',
value: 5,
},
{
name: 'Entrée au centrale',
value: 6,
},
{
name: 'Annulée par chauffeur aprés acceptation',
value: 7,
},
{
name: 'Annulée par admin',
value: 8,
},
{
name: 'Annulée par vendeur',
value: 14,
},
{
name: 'Retour définitif',
value: 16,
},
{
name: 'Retour vendeur',
value: 17,
},
{
name: 'Colis perdu',
value: 21,
},
];