Customer Created

This event hook is triggered when a new customer is created in Oliver.

{
    command: ‘Callback’,
    method: ‘POST’,
    version: 1.0,
    data:   
    [
      {
        event : ‘Customer’,
        hookName: ‘customerCreated’
      }
    ]
}
{
    command: ‘Callback’,
    method: ‘POST’,
    version: 1.0,
    responseType: ‘registered’,
    Hooks:
    [
      {
         event : ‘Customer’,
         hookName: ‘customerCreated’,
         status: 200,
         message: ‘Event registered successfully’,
         error: null                
      }
    ]
}
{
    command: ‘Callback’,
    method: ‘POST’,
    version: 1.0,
    responseType: ‘triggered’,
    event: ‘Customer’,
    hookName: ‘customerCreated’,
    data: 
    {
        ID: ‘qu658fhbeiimfooogggdvu9w4’,
        email: ‘[email protected]’
    }
}
Attribute NameAttribute TypeDescriptionEnumRequired (binary)
commandstringThis is a high level command to talk to Olivernull1
methodstringIt determines the CRUD operations based upon the type of request.null1
versionstringIt determines the iteration of the command.null1
dataArray[object]It includes the event and the hook name of the event being callednull1
eventstringIt indicates the event being callednull1
hookNamestringIt indicates which hook is being triggered for the event being callednull1

Customer Deleted

{
    command: ‘Callback’,
    version: 1.0,
    method: ‘POST’,
    data:   
  [
            {
                event : ‘Customer’,
                hookName: ‘customerDeleted’
            }
  ]
}
{
    command: ‘Callback’,
    version: 1.0,
    method: ‘POST’,
    responseType: ‘registered’,
    Hooks:
    [
        {
        event : ‘Customer’,
          hookName: ‘customerDeleted’,
                status: 200,
                message: ‘Event registered successfully’,
                error: null
                
        }
    ]
}
{
    command: ‘Callback’,
    version: 1.0,
    method: ‘POST’,
    responseType: ‘triggered’,
    event: ‘Customer’,
    hookName: ‘customerDeleted’,
    data: {
            ID: ‘qu658fhbeiimfooogggdvu9w4’,
            email: ‘[email protected]’
          }
}

Customer Updated

{
  command: ‘Callback’,
  version: 1.0,
  method: ‘POST’,
  data:   
  [
    {
      event : ‘Customer’,
      hookName: ‘customerUpdated’
    }
  ]
}
{
  command: ‘Callback’,
  version: 1.0,
  method: ‘POST’,
  responseType: ‘registered’,
  Hooks:
  [
    {
      event : ‘Customer’,
      hookName: ‘customerUpdated’,
      status: 200,
      message: ‘Event registered successfully’,
      error: null               
    }
  ]
 }
{
  command: ‘Callback’,
  version: 1.0,
  method: ‘POST’,
  responseType: ‘triggered’,
  event: ‘Customer’,
  hookName: ‘customerUpdated’,
  data: 
  {
        ID: ‘qu658fhbeiimfooogggdvu9w4’,
        email: ‘[email protected]’
  }
}

Customer Added To Cart

Customer Removed from Cart