Update Subscriber’s External ID

The CRM / Ordering system updates a Subscriber in the OCS.io via the RESTful API. The request body contains updated Subscriber details like External ID, Custom Name, etc. The OCS.io updates the instance of the Subscriber, then returns Business Transaction containing updated Subscriber as a payload of the response. Other systems may be notified about the Business Transaction via the Streaming Platform.

Subscriber’s External ID is an attribute which is not versioned in the OCS.io. This means, that after this operation comes into effect, CRM will no longer be able to manipulate with the Subscriber using the old External ID. It is responsibility of the CRM system to version Subscribers' External IDs internally.

Primary Actor

CRM / Ordering system.

Basic Flow

Update Subscriber’s External ID Basic Flow
Step Actor Action Description

1.

CRM / Ordering

Call updateSubscriberExternalId API

CRM / Ordering system calls Update Subscriber’s External ID API exposed by OCS.io.

2.

OCS.io

Request Validations

OCS.io validates Request whether all mandatory attributes are populated, all data types are valid, ENUMs match with definition, etc.

Additionally, OCS.io validates Request against Business Logic. This typically includes, that referenced entity exists in the system, entity has proper state, etc.

3.

OCS.io

Perform Business Logic

OCS.io performs Business Logic implemented for the Use-Case.

4.

OCS.io

Publish Business Transaction

OCS.io publishes zero to many messages to Streaming Platform that impacted entities have been changed.

5.

OCS.io

Return updateSubscriberExternalId Response

OCS.io returns Response to the CRM / Ordering System.

6.

DWH

Subscribe for Business Transactions

DWH subscribes for Business Transactions to be delivered by Streaming Platform.

7.

DWH

Process Business Transactions

DWH process Business Transactions internally. This typically includes storing of changed entities, update indexes, update metrics, etc.

Request Validations

The following validations are performed when updating a subscriber’s external ID:

  • Subscriber must be provided in the request, it must be already created in the system and must not be in Deactivated State.

  • External ID must be provided in the request, it must be unique and must not be already assigned to another Subscriber even in Deactivated State.

Perform Business Logic

  1. System updates Subscriber’s External ID.

Publish Business Transaction

Following entities will be published to Streaming Platform as part of Business Transaction: