Item added to Cart

This Callback hook is triggered when an item is added to cart.

Request Body:

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

Response Body:

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

Triggered Callback Response Body:

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    responseType: 'triggered',
    callbackCommand: 'Cart',
    hookName: 'itemAddedToCart',
    data: {
            ID: 'qu658fhbeiimfoo',
            type: 'composite'
             }
}

Did this page help you?