This API endpoint allows you to delete a pre-advice.

Supported Formats

json

Errors

Code Description
404 Not found.
422 Unprocessable Entity.
500 Internal Server Error.

Examples

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": "JD321",
  "purposes": []
}

Params

Param name Description
advice_number
required

Validations:

  • Must be a String