Cotizar entrega sin pedido

Changed on

Cotiza una entrega sin pedido para un local de la marca autorizada. fromAddress y toAddress usan la estructura de direcciones de Ordering API; API resuelve los placeIds internamente. tipAmount se agrega a priceWithTax para calcular totalAmount. No crea entregas ni pedidos ecommerce, y no reserva un precio ni produce un quoteId. El costo se calcula nuevamente al crear el despacho. Para obtener además coordenadas, distancia, duración y geometría de la ruta, usar POST /admin/deliveries/preview.

post/admin/deliveries/quote

Request

  • Base URL
    https://api.service.getjusto.com/v3
  • Auth
    none declared

Request body

storeIdstring required

ID Justo del local solicitante.

isCashboolean

Si es true, considera cobro en efectivo.

amountToPaynumber

Monto que debe cobrarse si isCash es true.

tipAmountnumber

Propina para el repartidor en moneda del local. Se suma al precio con impuestos para obtener totalAmount. Usa el mismo tipAmount al crear el despacho.

isRoundTripboolean

Si es true, considera vuelta al origen.

useCarForDeliveryboolean

Si es true, cotiza con vehículo tipo auto.

Example request

{
  "fromAddress": {
    "countryCode": "CL"
  },
  "toAddress": {
    "countryCode": "CL"
  }
}

Response

The OpenAPI spec

successboolean

Example response

{
  "success": true
}

Changes

    • warning

      added the new false enum value to the response property for the response status

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status