Customer Added To Cart
Ozan avatar
Written by Ozan
Updated over a week ago

This Callback hook is triggered when a customer is added to cart

Request Body:

JSON

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

Response Body:

JSON

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

Triggered Callback Response Body:

JSON

{ 
command: 'registerCallback',
version: 1.0,
method: 'POST',
responseType: 'triggered',
callbackCommand: 'Customer',

hookName: 'customerAddedToCart',
data: { ID: 'qu658fhbeiimfooogggdvu9w4', email: '[email protected]' } }
Did this answer your question?