Business Direct Service Click

Creates a click event for business direct service.

Parameters
  • idpath integerRequired

    Creates a click event for business direct service by specific business id. You can retrieve this id from ...

  • data[type]formData string

    Provide direct service type. Current selection is only direct_service_click_events.

  • data[relationships][business][data][type]formData string

    Provide Business type. Current selection is only businesses.

  • data[relationships][business][data][id]formData string

    Related Business id.

POST/api/v1/businesses/{id}/direct_service_click

{
  const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/direct_service_click`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)});
  const data = await res.json();
}

RESPONSE