{
"payload": [],
"message": "ok",
"code": "ok",
"time": "56ms"
}
{
"payload": [],
"message": "User not found",
"code": "user_not_found",
"time": "34ms"
}
curl -X POST \
https://api.woowup.com/apiv3/multiusers/abandoned-cart \
-H 'Accept: application/json' \
-H 'Authorization: Basic xxxxxxxxxxxxx' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"email": "email@example.com",
"external_id": "Cart-001",
"source": "web",
"recovered": false,
"recover_url": "http://www.my-store.com/my-abandoned-cart",
"createtime": "2019-07-10T19:12:53-03:00",
"products": [
{
"sku": "12345",
"quantity": 1,
"unit_price": 699.0,
"offer_price": 399.0
}
],
"total_price": 699.0
}'
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A representation of an abandoned cart",
"type": "object",
"required": ["products"],
"properties": {
"service_uid": { "type": "string" },
"email": { "type": "string" },
"document": { "type": "string" },
"total_price": { "type": "number"},
"external_id": { "type": "string" },
"source": { "type": "string" },
"recovered": { "type": "boolean" },
"recover_url": { "type": "string" },
"products": {
"type": "array",
"items": {
"type": "object",
"required": [ "sku" ],
"properties": {
"sku": { "type": "string" },
"quantity": { "type": "number" },
"unit_price": { "type": "number" },
"offer_price": { "type": "number" }
}
}
},
"createtime": { "type": "string" }
}
}