Page 1 of 1

Jobs not going to simpro

Posted: Mon Aug 31, 2020 5:28 pm
by rajeshbogoju
Hi Team,
I'm trying to add my jobs in simpro by using API

here is my api call which i'm sending jobs dynamically

unirest
.post('https:XXXXXXX/'/api/v1.0/companies/companyID/jobs/')
.headers({
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
})
.send({
Type: 'Service',
Customer: parseInt(integrationCustomerId), // 12345
Site: parseInt(integrationSiteId) // 67890
})
.end(function (data) {
cb(data.body);
})



But i'm getting error that few jobs are going to simpro and few are failing to go to simpro

i'm sending 6 jobs continuously to simpro in that 6 jobs only 2 or 3 jobs gng to simpro end remaining jobs are failure..

Thanks in advance