Ordering API

Update cart item

Changed on

Actualiza cantidad, modificadores o comentario de un item del carrito. Si cambian comentario o modificadores, el cartItemId puede cambiar; usa el item retornado en la respuesta.

patch/ordering/customers/{externalCustomerId}/websites/{domain}/cart/items/{cartItemId}

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.

cartItemIdstring required

ID del item del carrito.

Request body

productIdstring

ID del producto.

amountnumber

Cantidad del producto. Debe ser mayor a 0.

commentstring nullable

Comentario del item.

Response

Update cart item

successboolean required

Example response

{
  "data": {
    "state": {
      "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 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 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