Account ('created', 'closed', 'update')

Account created subscribe example:

curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "account/created",
"target_url": "URL"
}'

Account created response example:

{
  "uid": "123456789abcdefg",
  "email": "[email protected]",
  "name": "Account 23"
}

Account updated response example:

{
  "id": "123456789abcdefg",
  "email": "[email protected]",
  "phone": "123456789",
  "address": "Tel Aviv",
  "name": "School Of Rock",
  "time_zone": "Jerusalem",
  "country_name": "Israel",
  "short_description": "Private and intimate music school for all levels and ages",
  "business_category": "school_center",
  "website_url": "https://SchoolOfRock.co.il",
  "hide_address": false,
  "logo_url": "https://c15117557.ssl.cf2.rackcdn.com/avatar/image/868656/normal_6sfv33ec8klwtc22u3w3up85x4oig7di.jpg"
}

Account closed response example:

{
  "entity_name": "account",
  "event_type": "closed",
  "data": {
    "business_id": "123456789abcdefg",
    "business_name": "School Of Rock",
    "email": "[email protected]",
    "address": "Tel Aviv, Israel",
    "created_at": "2021-08-15T11:02:48Z",
    "closed_at": "2021-08-15T11:04:46+00:00"
  }
}