Ordering API

Obtiene preferencias, dirección, local, horarios, medios de pago, términos publicados y carrito calculado. El integrador debe pedir aceptación de los términos antes de iniciar el flujo de compra.

get/ordering/customers/{externalCustomerId}/websites/{domain}/cart

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.

Response

Get cart state

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 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