Cart Value Updated
This Callback hook is triggered when the cart value is updated.
Request Body:
{
command: 'registerCallback',
version: 1.0,
method: 'POST',
data:
[
{
event : 'Cart',
hookName: 'cartValueUpdated'
}
]
}
Response Body:
{
command: 'registerCallback',
version: 1.0,
method: 'POST',
responseType: 'registered',
Hooks:
[
{
callbackCommand : 'Cart',
hookName: 'cartValueUpdated',
status: 200,
message: 'Event registered successfully',
error: null
}
]
}
Triggered Callback Response Body:
{
command: 'registerCallback',
version: 1.0,
method: 'POST',
responseType: 'triggered',
callbackCommand: 'Cart',
hookName: 'cartValueUpdated',
data: {
tenderAmount: 69.00,
discount: 21,
//discountType can either be ‘percentage’ or ‘amount’
discount type: 'percentage',
Balance: 256.00
}
}
Updated over 1 year ago