Skip to main content

NDR Reattempt

The NDR Reattempt API Route is used to reattempt delivery for an NDR (Non-Delivery Report) shipment in Openleaf.

You must pass all required fields to initiate a reattempt. You can provide additional parameters as per your preference.

Request​

POST REQUEST
https://api.openleaf.tech/api/v1/ndr/reattempt

FieldRequiredData TypeDescription
actionYesStringAction type, must be "reattempt", "rto", "edit", "deferred"
modifiedNoArrayList of modified fields (e.g., ["phone"])
customer_detailsYesObjectUpdated customer details for reattempt
customer_details.phoneYesStringCustomer contact number
customer_details.address1YesStringPrimary address line of the customer
customer_details.address2NoStringAdditional address details (if any)
remarksNoStringRemarks or reason for reattempt
deferred_dateNoString (YYYY-MM-DD)Date when the reattempt should occur
carrierYesStringThe carrier service handling the shipment
awbnoYesStringAWB number of the shipment
Header Example
{
"Authorization": "Bearer {{your_token}}",
"Content-Type": "application/json
}
Request Example
{
"action": "reattempt",
"modified": ["phone"],
"customer_details": {
"phone": "9565488280",
"address1": "Ground floor 11-11-397 Puramsowbhagya Colony Road No 6 petkothar, ",
"address2": ""
},
"remarks": "Please re-attempt this shipment",
"deferred_date": "2025-05-27",
"carrier": "bluedart",
"awbno": "OL_80904439033"
}

Response​

FieldData TypeDescription
statusObjectObject containing the status of the request
status.messageStringMessage describing the outcome of the operation
status.status_codeIntegerStatus code (200=success, 400=error)
status.successBooleanBoolean flag indicating success or failure
Response Example
{
"status": {
"message": "NDR Action taken successfully",
"status_code": 200,
"success": true
}
}
IN CASE OF FAILURE

If validation fails or shipment is not eligible for reattempt, the request will not be processed. Please wait for 10–15 seconds before retrying to avoid latency.

Example​

Curl Command


curl --location --request POST 'https://api.openleaf.tech/api/v1/ndr/reattempt'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {{token}}'
--data-raw '{
"action": "reattempt",
"modified": ["phone"],
"customer_details": {
"phone": "9565488280",
"address1": "Ground floor 11-11-397 Puramsowbhagya Colony Road No 6 petkothar, ",
"address2": ""
},
"remarks": "Please re-attempt this shipment",
"deferred_date": "2025-05-27",
"carrier": "bluedart",
"awbno": "OL_80904439033"
}'

Output:

{
"status": {
"message": "NDR Action taken successfully",
"status_code": 200,
"success": true
}
}