Deletes the bill of lading the same way it is deleted in Octopi. For discharge bill of ladings, the manifest movements of its cargo are deleted as well. Breakbulk and vehicles with no other movements and no dock receipt are deleted; all other cargo is kept and is no longer linked to the bill of lading. The bill of lading cannot be deleted once the tally for its manifest has started, when the manifest movements of its cargo cannot be undone, or when other records such as interchanges or dock receipts reference it. In those cases nothing is deleted and a 422 response with the reason in errors is returned.

Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Not Found.
500 Internal Server Error.

Examples

curl "https://app.octopi.co/api/v1/bill_of_ladings/123.json" -X DELETE -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=ADD TOKEN HERE"
{
  "errors": [
    "Bill of Lading cannot be deleted because the tally for its manifest has already started."
  ]
}

Params

Param name Description
id
required

The bill of lading ID.

Validations:

  • Must be a number.