About Adding (Inviting) Suppliers to Events with the Event Management API

You can add (invite) or remove suppliers from an event or specific items in an event using the Event Management API.

To invite suppliers when creating an event (using the POST /events endpoint) or to add suppliers to an event (using the /events/{eventId}/supplierInvitations endpoint), the request body must contain a supplierInvitations array. Each entry in the array must contain information that the web service can use to find the supplier user (contact) or supplier entity (organization) in one of the SAP Ariba Supplier Management solutions.
  • To add a supplier user to an event, a supplierInvitations entry must specify at a minimum the uniqueName and passwordAdapter for the supplier user. For example:
    {
     "contacts": [ {
         "uniqueName": "sup_aaa",
         "passwordAdapter": "SourcingSupplierUser"
                  } ]
     }
  • To add a supplier organization to an event, a supplierInvitations entry must specify at a minimum an organization object with at least one organization ID. The organization ID can be any ID configured for the supplier organization, including the ID assigned by SAP Ariba (systemID), ERP ID (erpVendorID), supplier management ID (smVendorID), or SAP Business Network ID (networkid). For a list of all supported ID types, refer to the Organization model in the API specification.

    For example:
    {
     "organization": {
         "systemID": "sid808" }
     }

If you specify a supplier organization without any contacts, all supplier users for the organization are added.

To add a new supplier user to an existing organization (or to add a new contact to an existing supplier), you must:
  • Ensure that the event is in an editable state

  • Include the query parameter createContactIfNotExist=true in the endpoint

  • Include the following child elements in the supplierInvitations element of the request body:

    • uniqueName

    • name

    • emailAddress

    • phone

    • organization object with at least one organization ID

In the organization object, you can optionally specify the unique tax identifier for the organization (taxID).

For example:

PUT {{runtime_URL}}/events/DOC4567/supplierInvitations?user=myUser&passwordAdapter=PasswordAdapter1&realm=mySite&createContactIfNotExist=true
Use the following data model for the request body to add a new supplier user to an existing organization (or to add a new contact to an existing supplier):
[
    {
            "contacts": [
                {
                    "uniqueName": "jamie",
                    "passwordAdapter": "SourcingSupplierUser",
                    "name": "Jamie Soni",
                    "emailAddress": "jamie@ariba.com",
                    "phone": "080 44444",
                    "organization": "XYZ Motors",
                    "orgName": "XYZ Motors",
                    "timeZoneID": "Asia/Calcutta",
                    "localeID": "en_US",
                    "isRecommended": false
                }
            ],
            "organization": {
                "name": "XYZ Motors",
                "systemID": "ACM_78107",
                "smVendorID": null,
                "erpVendorID": null,
                "taxID": "xxxxx",
                "organizationIDs": [
                    {
                        "domain": "buyersystemid",
                        "value": "acm_78107"
                    }
                ],
                "address": {
                    "phone": "",
                    "fax": "",
                    "city": "BENGALURU",
                    "state": "",
                    "postalCode": "560036",
                    "country": "IN"
                }
            }
        }
    
]
When you add suppliers to an event, the response contains an entry in the supplierInvitations array for each added supplier user with a unique invitationId. You can use the invitationId to:
  • Add (invite) the supplier user for an item (POST /events/{eventId}/items/{itemId}/supplierInvitations), or remove the supplier user from an item (DELETE /events/{eventId}/items/{itemId}/supplierInvitations). Note that by default, all supplier users in an event are invited to bid on an item (by default, the item field invitedSuppliers is an empty array, which denotes that all supplier users in the event are invited for the item).

  • Determine the supplier user in a supplier bid or response.

  • Determine the participation status and last submission time for each supplier (GET /events/{eventId}/supplierInvitations&$select=supplierBidStatus,submissionDate).

  • Retrieve all responses in the event from a specific supplier user (GET /events/{eventId}/supplierBids/{invitationId}).

  • Retrieve information about the supplier user and the supplier user's organization, such as address and contact information (GET /events/{eventId}/supplierInvitations/{invitationId}).

  • Resend the event invitation (POST /jobs endpoint with "resourceType": "SUPPLIER_INVITATIONS" and "actionName": "RESEND_INVITATION_EMAIL" in the body)

  • Lock or unlock the supplier from an event (POST /jobs endpoint with "resourceType": "SUPPLIER_INVITATIONS" and "actionName": "TOGGLE_LOCK" in the body)

Adding a Supplier to a Specific Item

By default, all suppliers invited to an event are invited (added) to all items in the event and can submit responses for all items. You may want to add a supplier back to an item if you previously removed (uninvited) the supplier from the item.

To invite (add) a supplier user in an event to a specific item, use the POST /events/{eventId}/items/{itemId}supplierInvitations endpoint.

In the request body, specify the invitation ID of the supplier user you want to add for the item. For example:

{
  "invitationId" : "sup_aaa"
} 

Adding Multiple Suppliers to Multiple Items

You can add multiple supplier users in an event to multiple items using the POST /events/{eventId}/items/supplierInvitations endpoint. Requests for this endpoint contain a ItemSupplierInvitationMap, which consists of the following objects:
  • invitedSuppliersMap: Each entry defines a supplier map key and maps it to a supplier user, specified by contacts.

  • itemSuppliersMap: Each entry uses an item ID as a key with an array of supplier map keys.

In the following example, the supplier users identified by the supplier contacts sup_aaakey and sup_bbbkey are added to item 17559120. The supplier users for supplier contacts sup_aaakey are also added to item 17605616:
{
    "invitedSuppliersMap": {
        "sup_aaaKey": {
            "contacts": [
                {
                    "uniqueName": "sup_aaa",
                    "passwordAdapter": "SourcingSupplierUser"
                }
            ],
            "organization": {
                "systemID": "sid808"
            }
        },
        "supp_bbbKey": {
            "contacts": [
                {
                    "uniqueName": "supp_bbb",
                    "passwordAdapter": "SourcingSupplierUser"
                }
            ],
            "organization": {
                "systemID": "sid503"
            }
        }
    },
    "itemSuppliersMap": {
        "17559120": [
            "sup_aaaKey",
            "supp_bbbKey"
        ],
        "17605616": [
            "sup_aaaKey"
        ]