I have a web app which I'm using to submit the payload as shown below, using an HTTP async POST request:
{
"agents": [
{
"name":"Care Five",
"shifts": [
{
"startTime":"2023-07-09T07:00:00",
"startAddress":"26 Galbraith Rd, Andover, SP11 6AZ",
"endTime":"2023-07-09T13:00:00",
"endAddress":"The Commercial Centre, Suite 205, Picket Piece, Andover, SP11 6AZ"
}
],
"capacity":[3]
},
{
"name":"Carer 2",
"shifts": [
{
"startTime":"2023-07-09T07:00:00",
"startAddress":"17 Sheraton Ave, Basingstoke, RG22 4TS",
"endTime":"2023-07-09T12:30:00",
"endAddress":"The Commercial Centre, Suite 205, Picket Piece, Andover, SP11 6AZ"
}
],
"capacity":[3]
}
],
"itineraryItems": [
{
"name":"Ameli Service",
"openingTime":"2023-07-09T07:00:00",
"closingTime":"2023-07-09T09:00:00",
"dwellTime":"00:30:00",
"priority":1,
"address":"14 Walworth Rd, Andover, SP11 6LU"
},
{
"name":"April Spring",
"openingTime":"2023-07-09T07:00:00",
"closingTime":"2023-07-09T10:00:00",
"dwellTime":"00:45:00",
"priority":1,
"address":"Walworth Rd, Andover, SP11 6LY"
},
{
"name":"Boris Beckham",
"openingTime":"2023-07-09T07:00:00",
"closingTime":"2023-07-09T10:45:00",
"dwellTime":"01:00:00",
"priority":1,
"address":"15 High St, ANdover, SP10 1LJ"
},
{
"name":"Augustus Summer",
"openingTime":"2023-07-09T08:00:00",
"closingTime":"2023-07-09T10:00:00",
"dwellTime":"01:00:00",
"priority":1,
"address":"Station Rd, Overton, RG25 3DU"
}
]
}
After the initial API response returns a status code of 200 OK, I then visit the provided callback URL using an HTTP GET request. The second API response is somewhat confusing me, as I'm getting a status code of 200 OK but there's a "Request is not completed" errorMessage like this:
{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http://dev.virtualearth.net/Branding/logo_powered_by.png","copyright":"Copyright © 2023 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":1,"resources":[{"__type":"RouteProxyAsyncResult:http://schemas.microsoft.com/search/local/ws/rest/v1","callbackInSeconds":1,"callbackUrl":"https://dev.virtualearth.net/REST/V1/Routes/OptimizeItineraryAsyncCallback?key={API_KEY}","errorMessage":"Request is not completed.","isAccepted":true,"isCompleted":false,"requestId":"d21ddc15-94f9-4008-95a8-b5dc658908fd"}]}],"statusCode":200,"statusDescription":"OK","traceId":"d8916f4300804c1cbb8aafb24128aae0|DU00002E69|0.0.0.0"}
I can revisit the callback URL several times, but I still get the same result of "Request is not completed". Where am I going wrong?