The Disposition Update API is used to communicate to the client a change in state/disposition, of a unit as it moves through the ROP and is placed in its next possible value disposition. For example, an unused, open box unit changing state from Return to Vendor to being Return to Stock as a new disposition due to Return to Vendor quotas being exceeded for that unit type.
When Optoro receives a 401 HTTP status, Optoro will request a new Authentication Token from the client’s services and retry the request.
When Optoro receives any other error (as described above and identified by a 4xx (not 401) or 5xx range http status code) Optoro will retry five times with the same message. The retries will happen at an exponential backoff cadence in order not to overload machines. If the failure persists, the message will be stored in a failure queue and Optoro will have a technical contact person reach out to client tech support to report a problem. When the problem has been resolved, Optoro can manually retry failed requests.
For Disposition Update acknowledgement, all errors are handled the same since this is not in a user facing flow. However, the differentiation of status codes will help Optoro when reporting an issue.
Client endpoint to which disposition update data is posted to.
This endpoint along with any authentication mechanisms needed must be communicated to client's account manager.
Success. Optoro recommends client APIs respond with a JSON-structured object. This is used for debugging purposes only so this guidance is technically optional.
Bad Request
Not Authorized. A new authentication token will be requested from the client's services and the request will be retried.
Validation failure
Internal Server Error
Client Server Unavailable
{- "from_disposition": "needs_testing",
- "to_disposition": "recycle",
- "timestamp": "2018-03-20T00:00:00",
- "location_identifier": "RTS-1112",
- "warehouse_identifier": "22",
- "optiturn_lp": "LPAA1234567",
- "program_identifier": "parcel_returns",
- "from_sku": "012344566700",
- "to_sku": "012344566700",
- "sku": "012344566700",
- "upc": "0123456789012",
- "from_condition": "N",
- "to_condition": "TT",
- "reference_unit_identifier": "Unit A",
- "store_identifier": "Store A",
- "user_login": "client_user_login"
}
{- "message": "Success"
}