Eliminar vehículo, operador o ubicación
Elimina un dato de transporte de la carta porte, indicado con kind (vehicle, figure o location) e id. Los documentos que ya lo usaron conservan sus datos. Devuelve {deleted: true}. Errores: not_found, invalid_input, forbidden.
Alcance (scope): cefidia:write · Características: Destructiva, Idempotente
Parámetros¶
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
taxpayer |
texto | No | Nombre o RFC del contribuyente. Se puede omitir si solo hay uno. |
kind |
texto | Sí | vehicle, figure o location: el tipo del dato. |
id |
texto | Sí | Id del dato a eliminar. |
Esquema de entrada (JSON Schema)¶
{
"additionalProperties": false,
"properties": {
"taxpayer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Nombre o RFC del contribuyente. Se puede omitir si solo hay uno.",
"title": "Taxpayer"
},
"kind": {
"description": "vehicle, figure o location: el tipo del dato.",
"enum": [
"vehicle",
"figure",
"location"
],
"title": "Kind",
"type": "string"
},
"id": {
"description": "Id del dato a eliminar.",
"format": "uuid",
"title": "Id",
"type": "string"
}
},
"required": [
"kind",
"id"
],
"title": "DeleteWaybillPartInput",
"type": "object"
}