Publishing an Event Using the Discovery RFx Publication from External Marketplace API

Use this procedure to publish an event using the Discovery RFx publication from external marketplace API.

Context

This section describes how to use the Discovery RFX publication FROM external marketplace API to post an event on SAP Business Network Discovery from an external marketplace.

Once you have a valid ANID and all necessary services and certificates have been set up, you can create an application to post an event on SAP Business Network Discovery from an external marketplace, as follows:

Procedure

  1. Use the /{Marketplace_ANID}/buyer endpoint to create an SAP Business Network Discovery user that will represent your company:
    POST {{runtime_url}}/{{Marketplace_ANID}}/buyer
    					
    Sample Request Body:
    	{
    		"marketplaceOrgId":"123456",
    		"orgEmail":"companyDefault@mycompany.com",
    		"marketplaceUserId":"987654",
    		"userEmail":"jsmith@mycompany.com",
    		"orgName":"My Company",
    		"firstName": "Joe",
    		"lastName": "Smith",
    		"orgAddress": {
    			"street1": "123 Fourth St",
    			"cityName": "Las Vegas",
    			"stateCode": "NV",
    			"postalCode": "89109",
    			"countryCode": "USA"
    		}
    	}
    				
    Marketplace_ANID
    your company’s Ariba Network ID, created before step 1.
    marketplaceOrgId
    your company’s unique external-marketplace-side ID, which SAP Business Network Discovery can map to your ANID
    For each person who will be eligible to connect to SAP Business Network Discovery via SSP and post events, provide marketplaceUserId, userEmail, firstName, and lastName:
    firstName and lastName
    the name of the user being created
    marketplaceUserId
    the user ID of the user being created
    userEmail
    the email address of the user being created
    The value of countryCode must conform to the 3-letter ISO country code standard. For example, "USA" not "US" or "America."
  2. Post quote request cXML to create an event on SAP Business Network Discovery. For details about using cXML for quote request, see cXML Reference Guide. You will need the following additional elements and values:
    • From and To blocks contain your marketplace ANID that was included in the response to the API call in the previous step.

      <From>
      <Credential domain="NetworkID”>
        <Identity>AN03000013780</Identity>
      </Credential>
      </From>   
      <To>
      <Credential domain="NetworkID">
        <Identity>AN03000013780</Identity>
      </Credential>
      </To>
      
    • The Sender block contains the ANID of the marketplace as provisioned by SAP Ariba.

      <Sender>
      <Credential domain="NetworkID">
        <Identity>AN02000022780</Identity>
        <SharedSecret>s:{password}</SharedSecret>
      </Credential>
      <UserAgent>
        Third party Marketplace RFQ
      </UserAgent>
      </Sender>
      
    • An extrinsic uniquePostingId block provides a partner-generated GUID, maximum length 256 characters.

      Use this posting ID to construct the target URL to view the posting when the user connects via SSO to SAP Business Network Discovery.

      <QuoteRequest>
      <QuoteRequestHeader>
        <Extrinsic name=”uniquePostingId”>
          {uniquePostingId}
        </Extrinsic>
        . . .
      <QuoteRequestHeader>
      . . .
      <QuoteRequest>
      
  3. In the marketplace from which you wish to create an event, include the following legal language in your UI:
    • The publisher instructs OMX to send his/her name, email address and posting information to SAP Ariba. SAP Ariba will not publish your posting to the supplier community on SAP Ariba Discovery until you accept the SAP Ariba Privacy Statement and Terms of Use. If you have not consented to the Ariba terms within 14 days, SAP Ariba will delete your posting and delete or render unreadable the temporary profile information created on the SAP Ariba system.

  4. Once the quote request cXML is posted, the URL where a SSO user can view the posting on SAP Business Network Discovery can be constructed as follows:
    https://discovery.ariba.com/Discovery.aw/ad/viewRFX?extPostingId={uniquePostingId}
                   
    The value of exPostingId passed in this URL is the value provided in the extrinsic uniquePostingId element in the quote request cXML.
  5. Optionally, you can check the status of the event using the /events endpoint, as follows:
     
    GET
    {{runtime_url for *Discovery RFX Publication TO External Marketplace* API}}/events?rsqlfilter=(select==”status”;ids==”{comma-separated list of GUIDs}”)
    
    The value of ids is a comma-separated list of the unique IDs of the events whose status you seek to check. In most cases, this will be the GUID corresponding to the uniquePostingId extrinsic field in the quote request cXML. This API can accept a maximum of 45 GUIDs in a single call.
  6. To enable single sign on for the newly created user so they can view responses and grants awards, use URL exchange based on the SAML standard. The external marketplace must provide the IDP metadata file containing the URL endpoint of the service provider and the certificate to authenticate calls.