This API endpoint allows you to delete a pre-advice.
Code | Description |
---|---|
404 | Not found. |
422 | Unprocessable Entity. |
500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/pre_advices/OCT1234.json" -X DELETE -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE"
{ "advice_number": "OCT1234", "truck": "TRA123", "truck_driver": { "id": 1234, "fullname": "John Doe", "license_number": "JD231", "twic": "", "number": "JD231", "active": true, "date_of_birth": null, "telephone_number": null, "email": null, "remarks": null, "trucking_company": "Blue Trucks", "allowed_until": null, "created_at": "2023-09-15T15:47:12Z", "updated_at": "2023-09-15T15:47:12Z" }, "purposes": [] }
Param name | Description |
---|---|
advice_number required |
Validations:
|