Accounts

Update Salesforce account settings

Changed on

Turn person creation, conversation logging, delivery marks or closed-won Opportunities (in ad results, to ad platforms) on or off for a connected Salesforce org, or choose whether new people become Leads or Contacts. Send at least one field; omitted fields keep their value. Settings survive reconnecting the same org.

patch/v1/accounts/{accountId}/salesforce-settings

Request

  • Base URL
    https://zernio.com/api
  • Auth
    HTTP bearer

Path parameters

accountIdstring required

Request body

syncContactsboolean

Create a Lead or Contact for an inbox contact that matches nobody by phone (any phone field) or email. A match is linked as it is and never updated.

logMessagesboolean

Log inbound and outbound inbox messages as one conversation Task per person, channel and day.

createAs'lead' | 'contact'

What a person new to Salesforce is created as. Leads get Company [not provided].

logDeliveryStatusboolean

Mark sent WhatsApp, SMS and RCS messages in the transcript as sent, delivered, read, played or failed.

useOpportunitiesInResultsboolean

Count closed-won Opportunities as sales on the ad campaign named by their Primary Campaign Source, in campaign results and ad rules. Turning it on also fills in the Opportunities won in the last 90 days, never sent to the ad platforms. Lost or reopened Opportunities stop counting.

reportOpportunitiesToAdsboolean

Send each newly closed-won Opportunity once as a Purchase event (source salesforce, event id salesforce_opp_{orgId}_{opportunityId}) to the profile's event destinations, with the email and phone of its primary contact role, else the first Contact of its Account. Opportunities won before it was turned on are not sent.

Response

Updated settings

messagestring

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      endpoint added