Business intergrations

Connect given business to Review Management Tool.

If any erros occur you can access the errors guide.

Parameters
  • idpath integerRequired

    Connect specific business to Review Management Tool with provided business id.

POST/api/v1/businesses/{id}/integrations/partoo

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

RESPONSE

{
  "data": {
      "id": "50404d91-bc45-43b2-8360-47f26b5ddc33",
      "type": "partoo_integrations",
      "attributes": {
          "partoo_key": "63be7f4647f3875ac003e464"
      }
  }
}

Update Business

Update given business on Review Management Tool.

Parameters
  • idpath integerRequired

    Update specific business to Review Management Tool with provided business id.

POST/api/v1/businesses/{id}/integrations/partoo

{
  const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/integrations/partoo`, {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json'
    },
    body: null});

  const data = await res.json();
}

RESPONSE

{
  "data": {
      "id": "50404d91-bc45-43b2-8360-47f26b5ddc33",
      "type": "partoo_integrations",
      "attributes": {
          "partoo_key": "63be7f4647f3875ac003e464"
      }
  }
}

Disconnect Business

Disconnect the business from Review Management Tool.

Parameters
  • idpath integerRequired

    Disconnect specific business from Review Management Tool with provided business id.

DELETE/api/v1/businesses/{id}/integrations/partoo

{
  const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/integrations/partoo`, {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json'
    }});

  const data = await res.json();
}

RESPONSE

{
  "data": {
      "id": "50404d91-bc45-43b2-8360-47f26b5ddc33",
      "type": "partoo_integrations",
      "attributes": {
          "partoo_key": null
      }
  }
}