Creating Multi-Currency Events by Using the Event Management API
This procedure describes how to use the Event Management API to create multi-currency events.
Prerequisites
-
To create an application and request access to use the SAP Ariba APIs relevant to this feature, you must have access to the SAP Ariba Developer Portal. For details refer to Steps to Start Using the SAP Ariba APIs in Help for the SAP Ariba Developer Portal.
-
All queries made to this API must be authenticated using OAuth authentication. For details refer to SAP Ariba Developer Portal Authentication in Help for the SAP Ariba Developer Portal.
-
The event must be created from a template with the Allow participants to select bidding currency rule set to Yes or Delegated.
Context
The POST /events endpoint of the Event Management API enables you to create multi-currency events.
Procedure
Example:
POST {{runtime_URL}}/events?user=myUser&passwordAdapter=PasswordAdapter1&realm=mySite
-
user: It is the ID of the user for whom the Event Management API will perform the action. This is a required parameter.
-
passwordAdapter: It is the password for authenticating the user, such as PasswordAdapter1. This is a required parameter.
-
realm: It is your site name. This is a required parameter.
-
isMulticurrencyEnabled=true
-
The currencyConversionRateSet entry must include the following fields:
-
name: The name for the currency exchange rate set. For example: System Currency Conversion Rates
-
uniqueName for fromCurrency: The unique name for the currency (currency code). For example: USD or JPY
-
uniqueName for toCurrency: The unique name for the currency (currency code). For example: BRL or EUR
-
-
setId: The unique ID for the currency conversion rate set. For example: CCRS1486
-
name: The name for the currency conversion rate set. For example: BRL:USD, ARS:USD, AUD:USD, NZD:USD.
-
rate: The currency conversion rate as a decimal value. For example, 0.6924 or 1.916.
-
name for fromCurrency: The name of the currency from which the monetary value is converted. For example: Brazilian Real or Euro.
-
name for toCurrency: The name for the currency to which the monetary value is converted. For example: US Dollar or Japanese Yen.
Use the following data model for the request body to create the multi-currency event:
{
"title":"Multicurrency API event",
"description":"It is a Multicurrency API event",
"currency":"USD",
"status":"Draft",
"eventTypeName":"RFP",
"isTest":false,
"templateDocumentInternalId":"WS5783051",
"isMulticurrencyEnabled": true,
"currencyConversionRateSet":
{
"name": "Test Name",
"setId": "CCRS1",
"customCurrencyConversionRates": [
{
"fromCurrency": {
"uniqueName": "BRL"
},
"rate": 0.75,
"toCurrency": {
"uniqueName": "USD"
}
},
{
"fromCurrency": {
"uniqueName": "EUR"
},
"rate": 0.90,
"toCurrency": {
"uniqueName": "USD"
}
}
]
}
}
The Event Management API returns the details of the multi-currency event.
For example:
{
{
"title": "Multicurrency API event",
"description": "It is a Multicurrency API event",
"internalId": "Doc5903374",
"currency": "USD",
"status": "Draft",
"baseLanguage": "en",
"eventTypeName": "RFP",
"eventStateName": "NewState",
"owner": {
"uniqueName": "customersupportadmin",
"passwordAdapter": "PasswordAdapter1",
"name": "Customer Support Admin",
"isRecommended": false
},
"requestId": "",
"documentVersion": 1,
"hasAward": false,
"eventOrigin": "3",
"templateProjectInternalId": "WS5783051",
"templateEventInternalId": "Doc5783054",
"regions": [],
"departments": [],
"commodities": [],
"sourcingProjectCustomFields": [],
"compositeEventStateName": "NewState",
"parentProjectId": "WS5903371",
"supplierInvitations": [],
"teams": [
{
"uniqueName": "PG5903373",
"name": "Project Owner",
"isGlobal": false,
"isDeletable": false,
"isOwner": true,
"isEditable": true,
"roles": [
{
"uniqueName": "ProjectManager",
"name": "Project Owner"
}
],
"childGroups": null,
"users": [
{
"uniqueName": "customersupportadmin",
"passwordAdapter": "PasswordAdapter1",
"name": "Customer Support Admin",
"emailAddress": "aribacustomersupportadmin@sap.com",
"organization": "Canonical Realm: BASF ",
"orgName": "Canonical Realm: BASF ",
"timeZoneID": "US/Pacific",
"localeID": "en_US",
"isRecommended": false,
"orgANId": "AN02002584076"
}
]
}
],
"items": [
{
"itemId": "535910",
"title": "Totals",
"itemType": 1,
"section": true
},
{
"itemId": "535911",
"title": "Requirement",
"terms": [
{
"title": "Requirement title",
"fieldId": "RQASTRING",
"valueTypeName": "MultilineFreeText",
"isMultiValue": false,
"acceptableValues": "AnyValue",
"precision": 2,
"isRequirement": true,
"requiredType": 0,
"enableParticipantComments": false,
"rollup": false,
"historicValueProperty": 0,
"reserveValueProperty": 0,
"participantVisibility": 0,
"isFormula": false,
"formulaCurrentAlias": "Demo_Requirement_at_Event_Level",
"references": [],
"value": {
"simpleValue": "Requirement value"
},
"isEditable": true,
"isDeleteable": true,
"canChangeValidValues": true,
"columnDisplay": false,
"rankOrder": 0,
"sourceType": 3,
"requiredTypeValidChoices": {
"Yes, Owner Required": 2,
"No, Owner Optional - Participant Cannot Respond": 8,
"Yes, Owner Required - Participant Optional": 6,
"Not Required": 0,
"Yes, Participant Required": 1
},
"prerequisiteReviewStatus": 0,
"hasParticipantSpecificValues": false,
"allowParticipantOtherValue": false,
"hideResponseFromEachOther": true,
"teamAccessControl": [],
"additionalEditorGroups": []
}
],
"supplierDisplayNumber": "1.0",
"buyerDisplayNumber": "1.0",
"itemType": 3,
"parentItem": "535910",
"numbering": 1,
"isRequirement": true,
"competitiveTermFieldId": "",
"isCompetitiveTermEditable": true,
"externalSystemCorrelationId": "Retail_1QUE116128_Event",
"currency": {
"uniqueName": "USD",
"name": "US Dollar"
},
"currencyConversionRateSet": {
"setId": "CCRS1486",
"name": "System Currency Conversion Rates",
"customCurrencyConversionRates": [
{
"name": "BRL:USD",
"rate": 0.75,
"fromCurrency": {
"uniqueName": "BRL",
"name": "Brazilian Real"
},
"toCurrency": {
"uniqueName": "USD",
"name": "US Dollar"
}
},
{
"name": "EUR:USD",
"rate": 0.90,
"fromCurrency": {
"uniqueName": "EUR",
"name": "European Union Euro"
},
"toCurrency": {
"uniqueName": "USD",
"name": "US Dollar"
}
}
]
},
"weight": 0,
"teamAccessControl": [],
"additionalEditorGroups": [],
"invitedSuppliers": [],
"hasItemInvitees": false,
"question": true,
"bidOnUnit": true
},
...
],
"timingMultiple": 30,
"timingUnit": 0,
"timingPublishType": 0,
"isTest": false,
"awardApprovalRequired": false,
"isVersionPinned": false,
"lastModified": "2023-10-11T21:11:05.640+0000",
"createDate": "2023-10-11T21:10:40.344+0000",
"isMulticurrencyEnabled": true,
"gbProjectUrl": "",
"buyerSystemID": "",
"autoPublish": false,
"webJumperURL": "{{runtime_URL}}",
"webJumperURLForSupplier": "{{runtime_URL}}",
"availableExternalSystemIntegrationTypes": [],
"currencyConversionRateSet": {
"setId": "CCRS1486",
"name": "System Currency Conversion Rates",
"customCurrencyConversionRates": [
{
"name": "BRL:USD",
"rate": 0.75,
"fromCurrency": {
"uniqueName": "BRL",
"name": "Brazilian Real"
},
"toCurrency": {
"uniqueName": "USD",
"name": "US Dollar"
}
},
{
"name": "EUR:USD",
"rate": 0.90,
"fromCurrency": {
"uniqueName": "EUR",
"name": "European Union Euro"
},
"toCurrency": {
"uniqueName": "USD",
"name": "US Dollar"
}
}
]
},
"isSupplierAnonymizationActive": false,
"isManualInterventionActive": false,
"externalIntegrationSupported": false,
"subProject": true
},
"messages": [
"Event creation succeeded. "
]
}
To troubleshoot your queries to the Event Management API, refer to Error Messages Returned by the Event Management API.