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
| Field | Required | Data Type | Description |
|---|---|---|---|
| action | Yes | String | Action type, must be "reattempt", "rto", "edit", "deferred" |
| modified | No | Array | List of modified fields (e.g., ["phone"]) |
| customer_details | Yes | Object | Updated customer details for reattempt |
| customer_details.phone | Yes | String | Customer contact number |
| customer_details.address1 | Yes | String | Primary address line of the customer |
| customer_details.address2 | No | String | Additional address details (if any) |
| remarks | No | String | Remarks or reason for reattempt |
| deferred_date | No | String (YYYY-MM-DD) | Date when the reattempt should occur |
| carrier | Yes | String | The carrier service handling the shipment |
| awbno | Yes | String | AWB 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
| Field | Data Type | Description |
|---|---|---|
| status | Object | Object containing the status of the request |
| status.message | String | Message describing the outcome of the operation |
| status.status_code | Integer | Status code (200=success, 400=error) |
| status.success | Boolean | Boolean 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
}
}