Cart
Cart event
POST /v1/integration/cart
This request is sent when a cart event occurs. It can recieve multiple embedded payment events and multiple cart items.
Sample Request for a cart update
{
"amount": 100.0,
"bonus_code": "",
"cart_id": 1,
"discount_amount": 10.00,
"status": "Successful",
"timestamp": "2015-03-02T8:27:58.721607+06:00",
"type": "Checkout",
"user_id": "abc1234",
"currency": "EUR",
"device_type": "mobile",
"exchange_rate": 1.00,
"origin": "sub.example.com" ,
"payments": [
{
"type": "Wallet",
"amount": 70.00,
"meta": {}
},
{
"type": "Deposit",
"amount": 20.00,
"meta": {}
},
{
"type": "VirtualCurrency",
"amount": 0.00,
"meta": {}
}
],
"items": [
{
"id": 1,
"type": "Scratch",
"name": "Scratch And Win",
"description": "Win this summers biggest prize",
"amount": 10.00,
"discount_amount": 0.00,
"bonus_code": "",
"meta": {}
},
{
"id": 2,
"type": "Lottery",
"name": "Mega Millions",
"description": "Weekend Lottery Lines",
"amount": 90.00,
"discount_amount": 0.00,
"bonus_code": "",
"meta": {}
}
],
"meta":{
"key1": 10.00,
"key2": "some string",
"key3": false
}
}