Ordering API

Crea una orden marketplace para el customer y website usando el estado guardado por Ordering API. El único body param es idempotencyKey; local, entrega, horario y pago salen de OrderPreferences, y billing, propina, cashAmount, orderParams, gift y meta salen de PATCH /cart/preferences. Si el medio de pago es online (paymentTypeIsIntegration), la respuesta incluye paymentGatewayUrl para que el cliente complete el pago.

post/ordering/customers/{externalCustomerId}/websites/{domain}/orders

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

idempotencyKeystring required

Key estable para reintentos del mismo checkout.

Response

Create order

successboolean required

Example response

{
  "data": {
    "_id": "ord-123",
    "code": "123",
    "fullCode": "C#123",
    "createdAt": "2020-01-01T00:00:00.000Z",
    "address": {
      "address": "Av. Apoquindo 3000",
      "addressLine2": "Depto 1201",
      "location": {
        "lat": -33.4489,
        "lng": -70.6693
      }
    },
    "deliverAt": "2020-01-01T00:00:00.000Z",
    "items": [
      {
        "product": {
          "name": "Hamburguesa"
        },
        "unitPrice": 5990,
        "baseUnitPrice": 5990,
        "productPrice": 5990,
        "baseProductPrice": 5990,
        "amount": 2,
        "description": "Bebida: Coca Zero - Comentario: \"Sin cebolla\"",
        "modifiers": [
          {
            "name": "Agregados",
            "options": [
              {
                "name": "Queso",
                "price": 1000
              }
            ]
          }
        ]
      }
    ],
    "deliveries": [
      {
        "price": 2500,
        "driverPassword": "5366",
        "fromLocation": {
          "lat": -33.4489,
          "lng": -70.6693
        },
        "toLocation": {
          "lat": -33.4489,
          "lng": -70.6693
        },
        "activatesAt": "2020-01-01T00:00:00.000Z",
        "createdAt": "2020-01-01T00:00:00.000Z",
        "forDate": "2020-01-01T00:00:00.000Z",
        "nearStoreAt": "2020-01-01T00:00:00.000Z",
        "pickupAt": "2020-01-01T00:00:00.000Z",
        "nearClientAt": "2020-01-01T00:00:00.000Z",
        "completedAt": "2020-01-01T00:00:00.000Z",
        "canceledAt": "2020-01-01T00:00:00.000Z",
        "deliveryExpectedAt": "2020-01-01T00:00:00.000Z",
        "estimatedArrivalAtStoreAt": "2020-01-01T00:00:00.000Z",
        "driverReceivedAt": "2020-01-01T00:00:00.000Z"
      }
    ],
    "paymentGatewayUrl": "https://payments.getjusto.com/pay/ppay-123?authorizationToken=abc"
  }
}

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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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