curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/{jobId}/tasks/{taskId}/delivery_incident \
--header 'Content-Type: application/json' \
--data '{
"raiseIncident": true,
"incidentNotes": "<string>",
"incidentType": "COURIER_NOTES",
"incidentSubtype": "arrived_late",
"incidentFileUrl": "<string>",
"incidentFileUrls": [
"<string>"
]
}'
{
"jobId": "<string>",
"taskId": "<string>",
"raiseIncident": true,
"incidentNotes": "<string>",
"incidentType": "<string>",
"incidentSubtype": "<string>",
"incidentFileUrl": "<string>",
"incidentFileUrls": [
"<string>"
],
"refundRequestId": "<string>"
}
Create a new delivery incident for a task
curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/{jobId}/tasks/{taskId}/delivery_incident \
--header 'Content-Type: application/json' \
--data '{
"raiseIncident": true,
"incidentNotes": "<string>",
"incidentType": "COURIER_NOTES",
"incidentSubtype": "arrived_late",
"incidentFileUrl": "<string>",
"incidentFileUrls": [
"<string>"
]
}'
{
"jobId": "<string>",
"taskId": "<string>",
"raiseIncident": true,
"incidentNotes": "<string>",
"incidentType": "<string>",
"incidentSubtype": "<string>",
"incidentFileUrl": "<string>",
"incidentFileUrls": [
"<string>"
],
"refundRequestId": "<string>"
}
OK
The response is of type object
.