Product type opened
Ozan avatar
Written by Ozan
Updated over a week ago

The Callback hook is triggered when a product type is opened.

Request Body:

JSON

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

Response Body:

JSON

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

Triggered Callback Response Body:

JSON

{ 
command: 'registerCallback',
version: 1.0,
method: 'POST',
responseType: 'triggered',
callbackCommand: 'Product',
hookName: 'productTypeOpened',
data: { productID: 'ge4538hfcvsrg3iebvc', productType: 'composite' } }
Did this answer your question?