Checkout Sun

O endpoint permite a criação de um carrinho de compras no checkout, onde vários itens são adicionados e interpretados como um único item, com seus valores somados e exibidos como um total consolidado, é possível criar um carrinho contendo apenas produtos de uma mesma conta.

Changed on
post/sun/v1/cart

Request

Request body

orderIdstring required

ID do pedido

postbackUrlstring uri required

URL do webhook

returnUrlstring uri required

URL para onde será redirecionado após o pagamento

installmentsnumber required

Número de parcelas

shippingValuenumber required

Valor do frete, usado apenas em produtos físicos.

Example request

{
  "orderId": "12345",
  "postbackUrl": "https://webhook.site/3559d85c-4c65-4035-854b-e935ef9c1278",
  "returnUrl": "https://mysite.com/thanks-page",
  "items": [
    {
      "productId": "123456",
      "description": "My Product"
    }
  ],
  "customer": {
    "email": "v3.ecom@eduzzz.com",
    "name": "Teste de Usuário",
    "cellphone": "11988888888",
    "document": "67462610930",
    "address": {
      "street": "Rua da Imaginação",
      "number": "00",
      "neighborhood": "Fantasia",
      "complement": "Surpresa",
      "postalCode": "09876543",
      "state": "SP"
    }
  }
}

Response

Carrinho criado com sucesso

idstring required

ID do pedido

keystring required

Chave do pedido

orderIdstring required

ID do pedido

paymentUrlstring uri required

URL para abertura do checkout

postbackUrlstring uri required

URL do webhook

returnUrlstring uri required

URL para onde será redirecionado após o pagamento

installmentsnumber required

Número de parcelas

Example response

{
  "id": "12345",
  "key": "00000000000000000000000000000000",
  "orderId": "12345",
  "paymentUrl": "https://sun.eduzz.com/c_00000000000000000000000000000000?contentId=12345",
  "postbackUrl": "https://webhook.site/3559d85c-4c65-4035-854b-e935ef9c1278",
  "returnUrl": "https://mysite.com/thanks-page",
  "items": [
    {
      "productId": "123456",
      "description": "My Product"
    }
  ],
  "customer": {
    "email": "customer@eduzz.com",
    "name": "Foo Bar",
    "cellphone": "11988888888",
    "document": "24246858005",
    "address": {
      "street": "Av. Sorocaba",
      "number": "500",
      "neighborhood": "Fantasia",
      "complement": "AP 00",
      "postalCode": "09876543",
      "state": "SP"
    }
  }
}

Changes

    • breaking

      the request property became required

    • breaking

      the request property / became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property / became required

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property /// became required

    • breaking

      the request property /// became required

    • breaking

      the request property // became required

    • breaking

      the request property // became required

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      removed the enum value {"key":"BRL","description":"Real Brasileiro"} of the request property ///

    • breaking

      the request property type changed from url to string, and format from no format to uri

    • breaking

      the request property type changed from url to string, and format from no format to uri

    • info

      added the new BRL enum value to the request property ///

    • info

      added the new optional request property