Create Preferred Partner

Create a preferred partner for business.

Parameters
  • dataformData, objectRequired

    Form Data needed when creating a new Preferred Partner for business.

    • typestringRequired

      Provide Preferred Partner type. Current selection is only partners.

    • relationshipsformData, objectRequired

      Relationships object with business object.

      • businessformData, objectRequired

        Add a Business relationships link.

        • idstringRequired

          Related Business id.

      • partnerformData, objectRequired

        Add a Partner relationships link.

        • idstringRequired

          Related Partner id.

        • typestringRequired

          Partner type; partner.

POST/api/v1/preferred_partners

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

  const data = await res.json();
}

RESPONSE


Delete Preferred Partner

Delete a preferred partner for business.

Parameters
  • dataformData, objectRequired

    Form Data needed when deleting a new Preferred Partner for business.

    • typestringRequired

      Provide Preferred Partner type. Current selection is only partners.

    • relationshipsformData, objectRequired

      Relationships object with business object.

      • businessformData, objectRequired

        Add a Business relationships link.

        • idstringRequired

          Related Business id.

      • partnerformData, objectRequired

        Add a Partner relationships link.

        • idstringRequired

          Related Partner id.

        • typestringRequired

          Partner type; partner.

DELETE/api/v1/preferred_partners

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