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 onRequest
- Base URLhttps://api.eduzz.com
- AuthOAuth 2Implicithttps://accounts.eduzz.com/oauth/authorizeScopessun_cart_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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
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 fromurltostring, and format from no format touri - breaking
the
request property type changed fromurltostring, and format from no format touri - info
added the new
BRLenum value to the request property///
- breaking
- info
added the new optional request property
- info