> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Create an abandoned cart item
> Create an abandoned cart item
Supply the item as a JSON request body; only userEmail is a query parameter. productSKU, timestamp and productPrice are mandatory and must be non-blank. size is optional.
Request body example:
{
"productSKU": "2022-01-13-2",
"timestamp": "2022-01-14T17:25:43.511Z",
"productPrice": "1",
"size": "1"
}
## OpenAPI
````json POST /ecommerce/createAbandonedCartItem
{
"openapi": "3.0.4",
"info": {
"title": "Engage public API",
"version": "1"
},
"servers": [
{
"url": "https://your-engage-domain.com/api/rest"
}
],
"tags": [
{
"name": "Address Attributes"
},
{
"name": "Async"
},
{
"name": "Audit Log"
},
{
"name": "Automation"
},
{
"name": "Blacklist"
},
{
"name": "CMS"
},
{
"name": "Contact"
},
{
"name": "Content"
},
{
"name": "Coupon"
},
{
"name": "Draft Message"
},
{
"name": "Ecommerce"
},
{
"name": "Group"
},
{
"name": "Group Attributes"
},
{
"name": "Landing Page"
},
{
"name": "Member Attributes"
},
{
"name": "Membership"
},
{
"name": "Message"
},
{
"name": "Meta"
},
{
"name": "Mobile Push"
},
{
"name": "Prepared Message"
},
{
"name": "Process"
},
{
"name": "Profile Attributes"
},
{
"name": "Related Data"
},
{
"name": "Segmentation"
},
{
"name": "System"
},
{
"name": "System User"
},
{
"name": "Usage Statistics"
},
{
"name": "User"
},
{
"name": "Whiteboard"
}
],
"paths": {
"/ecommerce/createAbandonedCartItem": {
"post": {
"tags": [
"Ecommerce"
],
"summary": "Create an abandoned cart item",
"description": "Create an abandoned cart item{
\"productSKU\": \"2022-01-13-2\",
\"timestamp\": \"2022-01-14T17:25:43.511Z\",
\"productPrice\": \"1\",
\"size\": \"1\"
}",
"operationId": "createAbandonedCartItem",
"parameters": [
{
"name": "userEmail",
"in": "query",
"description": "Email of the user",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"description": "Abandoned cart item as JSON. Required non-blank fields: productSKU, timestamp, productPrice. Optional field: size.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EcommerceItem"
}
}
},
"required": true,
"x-bodyName": "body"
},
"responses": {
"200": {
"description": "",
"content": {
"application/octet-stream": {}
}
},
"400": {
"description": "Required parameters are missing or incorrect.",
"content": {
"application/octet-stream": {}
}
}
}
}
}
},
"components": {
"schemas": {
"EcommerceItem": {
"type": "object",
"properties": {
"productSKU": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"productPrice": {
"type": "string"
},
"size": {
"type": "string"
}
}
}
}
}
}
````