Customer Created
Ozan avatar
Written by Ozan
Updated over a week ago


Written byOzan Yeni

Last updated 2 months ago by Ozan Yeni

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

Request Body:

JSON

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

Response Body:

JSON

{ 
command: 'registerCallback',
version: 1.0,
method: 'POST',
responseType: 'registered',
Hooks:[
{ callbackCommand : 'Customer',
hookName: 'customerCreated',
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: 'customerCreated',
data: { ID: 'qu658fhbeiimfooogggdvu9w4', email: '[email protected]' } }
Did this answer your question?