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 Name

Attribute Type

Description

Enum

Required (binary)

command

string

This is a high level command to talk to Oliver

null

1

method

string

It determines the CRUD operations based upon the type of request.

null

1

version

string

It determines the iteration of the command.

null

1

data

Array[object]

It includes the event and the hook name of the event being called

null

1

event

string

It indicates the event being called

null

1

hookName

string

It indicates which hook is being triggered for the event being called

null

1

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


Did this page help you?