11 Appendix A — External System References used by the Accelerator

Mapping Structure

  1. ERP Customer/Party : OPERA Company Profile

    1. ERP (Table.Field) – HZ_PARTIES.PARTY_ID

    2. OPERA – Company Profile ‘ProfileId’ to be extracted via a report from OPERA

  2. ERP Account Site ID : AR Address ID

    1. ERP (Table.Field) – HZ_CUST_ACCT_SITES_ALL.CUST_ACCT_SITE_ID

    2. OPERA – to extract AR Address ID from OPERA, use the Get Company Profile API.

      1. URL Sample: GET {{OHIP-HostName}}/crm/v1/profiles/{{ProfileId}}?fetchInstructions=ADDRESS

      2. Request headers: x-app-key, x-hotelid

      3. profileDetails > addresses > address > id

  3. ERP Account ID : Concatenated value of ERP BU ID, OPERA Account ID, and associated OPERA Property.

    1. ERP (Table.Field) - HZ_CUST_ACCOUNTS.CUST_ACCOUNT_ID

    2. OPERA – to extract AR Account ID from OPERA, use the Get AR Account API.

      1. URL Sample: GET {{OHIP-HostName}}/crm/v0/profiles/{{ProfileId}}/accounts?idContext=OPERA&type=Profile

      2. Request headers: x-app-key, x-hotelid

      3. accounts > accountId > id

Note:

The Hotel-ID used in the request header retrieves the accounts under that specific hotel-id for a company profile from OPERA.

Creating External Reference in ERP (SOAP Service)

The Original System References are expected to follow a pattern. A sample request is shown below.

  1. For Customer/Party:

    1. <Orig System As created>

    2. <OPERA ProfileId>

    3. HZ_PARTIES

    4. <ERP Party ID>

  2. For Account Site:

    1. <Orig System As created>

    2. <OPERA Address ID>

    3. HZ_CUST_ACCT_SITES_ALL

    4. <ERP Account Site ID>

  3. For Account:

    1. <Orig System As created>

    2. Concatenation of <ERP BU ID>-<OPERA AR Account ID>_<OPERA_HOTEL_ID>

    3. HZ_CUST_ACCOUNTS

    4. <ERP Account ID>

  4. API Name: Create Original System Reference

  5. SOAP service WSDL:

    1. {{ERP-HostName}}/foundationParties/OriginalSystemReferenceService?WSDL

    2. Operation: createOriginalSystemReference

Creating External Reference in OPERA

  1. Add ERP PARTY_ID to Company Profile

  2. API Name: Update Company Profile

    1. URL Sample: {{OHIP-HostName}}/crm/v1/profiles/{{ProfileId}}

  3. Request headers: x-app-key, x-hotelid

Note:

The request payload contents can be obtained using the “Get Company Profile” as mentioned in the Mapping Structure Point 2b of this Appendix. Add the “externalReferences” section to the payload per OHIP documentation for the API.