Ordering API

Agrega un producto al carrito del customer para el website.

post/ordering/customers/{externalCustomerId}/websites/{domain}/cart/items

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

productIdstring

ID del producto.

amountnumber

Cantidad del producto. Debe ser mayor a 0.

commentstring nullable

Comentario del item.

Response

Add 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