Persons and Companies

Use Customer Data Platform to extend Identities.

To start using Persons and Companies profiles you must enable Infobip CDP Extension.

Fields mapping

After enabling Infobip CDP Extension you can start using fields identity.person and identity.company.

Orangepill Identity field
Infobip CDP field

person

id

company

companyId

id

externalId

Synchronize Orangepill and Infobip CDP

Two-way Identities and Persons syncronization process is executing in 3 steps.

Step 1

Updating orphan Orangepill Identities with Infobip Persons.

Step 2

Updating orphan Infobip Persons with Orangepill Identities.

Step 3

Creating new Orangepill Identities.

Persons Sync results are sent to user.channel.email of User which started the process.

To start Persons Sync process use endpoint POST /v1/identities/persons/sync.

Optional parameters

Scope
Parameter
Description

orangepill

country

Default country for new Identities. If not set realm.country is used.

orangepill

currency

Default currency for new Identities. If not set realm.currency is used.

infobip

limit

Number of results.

infobip

page

Results page number.

infobip

filter

Additional filter. Consult Infobip documentation for details.

in response are queued task details.

List Infobip CDP Persons

Use endpoint GET /v1/identities/persons?parameters to retrieve list of Infobip CDP persons.

Use Infobip URL parameters to filter results.

Create Person and Identity

Use Infobip Portal to create additional custom attributes and tags for Person profiles.

Use endpoint POST /v1/identities/person to create new Infobip Person and Orangepill Identity.

in response is new person Identity.

Get Person

You can retrieve Person data either by calling GET /v1/identities/:id/person or by populating person field of Identity object using GET /v1/identities/:id?populate=person.

in response is person Identity.

Create Person for existing Identity

Use endpoint POST /v1/identities/:id/person to create new Person and assign it to existing identity.

in response is new person Identity.

Assign existing Person to existing Identity

Use endpoint PATCH /v1/identities/:id/person/:person/assign to map existing Person from Infobip CDP to existing Orangepill Identity.

in response is person Identity.

Unassign Person of Identity

Use endpoint PATCH /v1/identities/:id/person/unassign to unmap Infobip Person of Orangepill Identity.

in response is person Identity.

Update Person

Use endpoint PATCH /v1/identities/:id/person to update Person profile.

in response is person Identity.

Delete Person

Use endpoint DELETE /v1/identities/:id/person to delete Person profile from Infobip People CDP.

in response is person Identity.

List Infobip CDP Companies

Use endpoint GET /v1/identities/companies?parameters to retrieve list of Infobip CDP companies.

Use Infobip URL parameters to filter results.

Create Company

Use Infobip Portal to create additional custom attributes and tags for Company profiles.

Use endpoint POST /v1/identities/company to create new Company.

in response is Company.

Assign Company to Identity

Use endpoint PATCH /v1/identities/:id to assign Company to Orangepill Identity.

in response is person Identity.

Unassign Person of Identity

Use endpoint PATCH /v1/identities/:id with null value in company field to unassign Company to Orangepill Identity.

in response is person Identity.

Get Company

You can retrieve Company data either by calling GET /v1/identities/:id/company or by populating company field of Identity object using GET /v1/identities/:id?populate=company.

in response is person Identity.

Update Company

Use endpoint PATCH /v1/identities/companies/:id to update Company profile.

in response is updated Company.

Delete Company

Use endpoint DELETE /v1/identitites/companies/:id to delete Company profile from Infobip People CDP.

in response is empty array.

Send Custom Person Events

Use endpoint POST /v1/identitites/:id/person/event/:event to send custom event to Infobip People CDP.

in response are event details.

Last updated

Was this helpful?