Item updated in Cart
Ozan avatar
Written by Ozan
Updated over a week ago

This Callback hook is triggered when an item is updated in cart.

Request Body:

JSON

{ 
command: 'registerCallback',
version: 1.0,
method: 'POST',
data: [ { callbackCommand : 'Cart', hookName: 'itemUpdatedInCart' } ] }

Response Body:

JSON

{ 
command: 'registerCallback',
version: 1.0,
method: 'POST',
responseType: 'registered',
Hooks: [ { callbackCommand : 'Cart',
hookName: 'itemUpdatedInCart',
status: 200, message: 'Event registered successfully', error: null } ] }

Triggered Callback Response Body:

JSON

{ 
command: 'registerCallback’,
version: 1.0,
method: 'POST',
responseType: 'triggered',
callbackCommand: 'Cart',
hookName: 'itemUpdatedInCart',
data: { ID: 'qu658fhbeiimfoo', type: 'composite' } }
Did this answer your question?