---
title: "Cancelar entrega sin pedido"
method: POST
path: "/admin/deliveries/{deliveryId}/cancel"
---

# Cancelar entrega sin pedido

`POST /admin/deliveries/{deliveryId}/cancel`

## Request

- Base URL: `https://api.service.getjusto.com/v3`
- URL: `https://api.service.getjusto.com/v3/admin/deliveries/{deliveryId}/cancel`
- Auth: none declared

Cancela una entrega sin pedido de la marca y los locales autorizados, sujeto al estado y reglas vigentes. Afecta solo el despacho de Justo Delivery; no cancela pedidos de Justo Ecommerce porque estas entregas no tienen un pedido ecommerce asociado. Si existe cargo asociado sin payout, se anula en finanzas.

## Path parameters

- `deliveryId` string, required

## Response `200`

The OpenAPI spec

- object
  - `success` boolean
  - `data` ApiDeliveryWithoutOrder: Entrega de Justo Delivery creada sin un pedido de Justo Ecommerce asociado. Se usa para despachos manuales o integraciones externas que necesitan logística fuera del checkout de Justo.
    - `_id` string: ID Justo de la entrega.
    - `websiteId` string: ID de la marca autorizada.
    - `storeId` string: ID Justo del local que solicita la entrega.
    - `orderId` string: Siempre null para entregas sin pedido.
    - `partner` string: Partner logístico usado para la entrega.
    - `status` 'active' | 'canceled' | 'done' | 'error' | 'pending' | 'scheduled' | 'delivering' | 'waiting' | 'unconfirmed': Estado actual de la entrega.
    - `specialCode` string: Código corto de entrega especial.
    - `externalId` string: Identificador externo opcional enviado por la integración.
    - `price` number: Precio del despacho con impuestos, sin propina.
    - `priceWithoutTax` number: Precio sin impuestos.
    - `tipAmount` number: Propina registrada para el repartidor, en moneda del local.
    - `receiveProofImage` string, uri, nullable: URL de la imagen de evidencia del retiro. Null si no hay una imagen registrada.
    - `deliverProofImage` string, uri, nullable: URL de la imagen de evidencia de la entrega. Null si no hay una imagen registrada.
    - `isCash` boolean: Indica si el repartidor debe cobrar efectivo.
    - `isRoundTrip` boolean: Indica si el repartidor debe volver al origen.
    - `instructions` string: Instrucciones operativas para el repartidor.
    - `fromName` string: Nombre de contacto en origen.
    - `toName` string: Nombre de contacto en destino.
    - `fromPlaceId` string: Place ID de origen.
    - `toPlaceId` string: Place ID de destino.
    - `fromAddressLine2` string: Complemento de dirección de origen.
    - `toAddressLine2` string: Complemento de dirección de destino.
    - `fromLocation` ApiDeliveryLocation: Punto de origen o destino de una entrega sin pedido.
      - `address` string: Dirección principal.
      - `addressSecondary` string: Comuna, ciudad o referencia secundaria.
      - `placeId` string: ID del lugar.
      - `streetAddress` string: Calle y número.
      - `extendedAddress` string: Departamento, oficina o referencia.
      - `contactPhone` string: Teléfono de contacto del punto.
      - `contactName` string: Nombre de contacto del punto.
      - `lat` number: Latitud.
      - `lng` number: Longitud.
    - `toLocation` ApiDeliveryLocation: Punto de origen o destino de una entrega sin pedido.
      - `address` string: Dirección principal.
      - `addressSecondary` string: Comuna, ciudad o referencia secundaria.
      - `placeId` string: ID del lugar.
      - `streetAddress` string: Calle y número.
      - `extendedAddress` string: Departamento, oficina o referencia.
      - `contactPhone` string: Teléfono de contacto del punto.
      - `contactName` string: Nombre de contacto del punto.
      - `lat` number: Latitud.
      - `lng` number: Longitud.
    - `location` object, nullable: Última ubicación del repartidor. Disponible al consultar el detalle mientras está en retiro, en camino o en espera; null en los demás estados.
      - `lat` number, required: Latitud del repartidor.
      - `lng` number, required: Longitud del repartidor.
      - `updatedAt` string, date-time: Fecha del reporte GPS; no es la hora de consulta.
    - `driverInformation` object, nullable: Información del repartidor asignado, si está disponible.
      - `name` string: Nombre del repartidor.
      - `code` string: Código del repartidor.
      - `type` string: Tipo de vehículo.
    - `driverPassword` string: Código de verificación del repartidor, si aplica.
    - `trackingURL` string: URL de tracking público de la entrega.
    - `createdAt` string, date-time: Fecha de creación.
    - `forDate` string, date-time: Fecha programada de la entrega.
    - `canceledAt` string, date-time: Fecha de cancelación.
    - `completedAt` string, date-time: Fecha de término.

## Other responses

- `400`: Solicitud rechazada por validación, autorización o reglas de la operación. Los problemas de pago y deuda reconocidos incluyen información para resolverlos.
- `500`: Error al procesar la solicitud. Un error o timeout de creación no garantiza que el despacho no se haya creado.

## Changes

- **2026-11-01** `4b46b8f3312f`: 1 warning, 7 info
  - added the new `false` enum value to the `success` response property for the response status `400`
  - added the non-success response with the status `500`
  - added the optional property `error/details` to the response with the `400` status
  - added the optional property `resolutionCode` to the response with the `400` status
  - …4 more
- **2026-10-31** `4ad06bd631ce`: 5 info
  - added the optional property `data/deliverProofImage` to the response with the `200` status
  - added the optional property `data/driverInformation` to the response with the `200` status
  - added the optional property `data/location` to the response with the `200` status
  - added the optional property `data/receiveProofImage` to the response with the `200` status
  - …1 more
- **2026-06-02** `dd70866e9669`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getjusto/apis/justo-api/changes/admin/deliveries/:deliveryId/cancel/post.md)

---

[API](https://skmtc.dev/getjusto/apis/justo-api.md) - [All operations](https://skmtc.dev/getjusto/apis/justo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getjusto/apis/justo-api/revisions/c810bd8246fd?raw)
