Extras
Note that the actions need to be triggered in this order
ASSIGNED
PICKUP
PICKEDUP
DROPOFF
DROPEDOFF
ENDED
Query parameters
app_keystringRequired
Body
delivery_codestringRequiredDefault:
The delivery code from the delivery that you want to simulate the action for. The delivery should already be created for this to happen
simulate_statusstring · enumRequiredPossible values:
- PENDING - The initial state of a delivery after creation - GROUPED - The delivery has been added to a group/trip - AGENCY_ASSIGNED - The delivery has been assigned to an agency - ASSIGNED - The delivery has been assigned to a rider - ONHOLD - The delivery is on hold due to low funds or some other reason - PICKUP - The rider is on the way to pick up the items - PICKEDUP - The rider has picked up the items - DROPOFF - The rider is on the way to drop off the items - DROPEDOFF - The rider has dropped off the items - ENDED - The delivery is commpleted - CANCELLED - The delivery has been cancelled
secret_codestringRequired
delivery secret code to be used in triggering ENDED status
Responses
200
Success Responses On Delivery Simulation
application/json
Responseall of
400
Validation Error
application/json
500
Simulate acction failed
post
POST /delivery/simulate-action HTTP/1.1
Host: test.swooveapi.com
Content-Type: application/json
Accept: */*
Content-Length: 205
{
"delivery_code": "The delivery code from the delivery that you want to simulate the action for. The delivery should already be created for this to happen",
"simulate_status": "ASSIGNED",
"secret_code": "text"
}
{
"success": true,
"code": 200,
"message": "text",
"responses": "text"
}
Was this helpful?