Ordering API

Update cart preferences

Changed on

Actualiza local, tipo de entrega, horario, medio de pago, cupón y opciones de checkout como billing. La aceptación de términos debe gestionarla el integrador antes del flujo de compra.

patch/ordering/customers/{externalCustomerId}/websites/{domain}/cart/preferences

Request

  • Base URL
    https://api.service.getjusto.com/v3
  • Auth
    HTTP bearer

Path parameters

externalCustomerIdstring required

ID del customer en el sistema externo. Es independiente por app.

domainstring required

Dominio canónico del website Justo.

Request body

storeIdstring nullable

ID del local seleccionado.

deliveryType'delivery' | 'go' | 'serve' nullable

Tipo de entrega.

paymentTypestring nullable

Medio de pago seleccionado.

otherPaymentTypestring nullable

Subtipo de pago, si aplica.

couponCodestring nullable

Código de cupón aplicado.

timestring nullable

Hora seleccionada. Usa now o un value de orderPreferences.store.availableScheduleDaysOptions.

dropOffTypestring nullable

Tipo de entrega en destino.

tableNamestring nullable

Mesa o identificador de consumo en local.

cardIdstring nullable

ID de tarjeta guardada.

billingOrderingBillingInput

Datos dinámicos de facturación para el checkout. Deben seguir el schema publicado en data.options.billing.schema.

cashAmountnumber nullable

Monto declarado para pago en efectivo.

giftobject nullable

Información de regalo.

orderParamsobject nullable

Parámetros adicionales del pedido.

sessionBirthdaystring nullable

Fecha de nacimiento de sesión en formato DD-MM-AAAA.

metaobject nullable

Metadata adicional.

Example request

{
  "termSignatures": [
    {
      "termType": "termsAndConditions"
    }
  ]
}

Response

Update cart preferences

successboolean required

Example response

{
  "data": {
    "address": {
      "location": {
        "lat": -33.43219757080078,
        "lng": -70.59982299804688
      }
    },
    "store": {
      "location": {
        "lat": -33.43219757080078,
        "lng": -70.59982299804688
      }
    },
    "termSignatures": [
      {
        "termType": "termsAndConditions"
      }
    ],
    "options": {
      "billing": {
        "countryCode": "CL"
      },
      "terms": {
        "mode": "auto",
        "signatures": [
          {
            "termType": "termsAndConditions"
          }
        ]
      }
    }
  }
}

Changes

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added subschema #2 to the response property allOf list for the response status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property ////// from 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