Mark as Received
Mark a recovery box as received for non–Unduit-managed returns.
POST
/api/v1/recoveries/{recovery_number}/mark-as-receivedDescription
Same action as Receive Box in the Recover app. Sets the recovery to Box Received when the campaign uses a custom return address (not Unduit-managed returns).
Allowed when the recovery is in Boxes Shipped, Delivered, Pickup Requested, Pickup Scheduled, Return Shipped, Not Responsive, Recovery Failed, Delivery Failed, or Already Returned. Cancelled and Unduit-managed recoveries are rejected (including when already Box Received). Repeating the request when already Box Received returns success with message "Recovery is already marked as Box Received" and does not create duplicate history.
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <access_token> | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| recovery_number | string | Yes | Recovery code. |
Response
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the status update succeeded. |
| message | string | Human-readable result. "Status updated successfully" when status changes; "Recovery is already marked as Box Received" when already Box Received (idempotent). |
| data | object | Updated recovery payload. |
| data.recovery_number | string | Recovery code. |
| data.status | string | Updated workflow status. Always "Box Received" on success. |
| data.device_received_date | integer | Unix timestamp when the box was marked received. |
Related Endpoints
Did this page help you?
Request
curl -X POST https://dev-api.unduit.com/api/v1/recoveries/REC-2026-001/mark-as-received \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"Success Response
{
"success": true,
"message": "Status updated successfully",
"data": {
"recovery_number": "REC-2026-001",
"status": "Box Received",
"device_received_date": 1793089950
}
}Error Responses
404 Not Found
{
"message": "Recovery not found"
}422 Unduit-managed returns
{
"message": "Mark as received is only allowed for non-Unduit-managed returns."
}422 Status not allowed
{
"message": "Recovery status does not allow mark as received."
}422 Cancelled
{
"message": "Cancelled recoveries cannot be marked as received."
}