Check out the documentation available for the Master Data Retrieval API for Sourcing: https://help.sap.com/viewer/ed78e1994e424374b6d81225a0276e0c/cloud/en-US/a401d6eb8f1743abac3e245cead...
GET /entityTypes/{EntityName} method, e.g. GET /entityTypes/users. The table below shows the entities available and their corresponding API names:| Master data entity | API lookup name |
| User | users |
| Group | groups |
| UnitOfMeasure | uoms |
| LocaleID | loaleids |
| ClassificationCodeMap | classificationcodemap |
| Currency | currency |
| CurrencyConversionRate | currencyconversionrate |
| CommodityCode | commoditycodes |
| Country | countries |
| Language | languages |
| PreferredSupplierLevel | preferredsupplierlevel |
| SegmentationLevel | segmentationlevels |
| Department | s4departments |
| Region | s4regions |
GET /entityTypes/{EntityName} method, it is possible to $select fields, $expand certain fields, $filter, and do pagination with $top, $skip query parameters. Also, we can $includeInactive records, $includeFlexFields and $includeNullValues. In essence, this API kinda follows the OData system query options.This is a read-only API, it is not possible to create master data through it.
curl --location --request GET 'https://openapi.ariba.com/api/mds-search/v1/prod/entities/users?$filter=CanActAs.Name%20ne%20null&$count=true&$includeNullValues=false&$top=250&$select=UniqueName,Name,Active,TimeUpdated,CanActAs.Name&$expand=CanActAs' \
--header 'Accept-Language: en' \
--header 'X-Realm: YOURREALM-T' \
--header 'Authorization: Bearer ea97d123-1234-1234-1234-3f96b8ce1234' \
--header 'apiKey: dAAW72hKXfwTFdxCfA2JZ4Wk3o8fsWaLY'
$filter=CanActAs.Name ne null.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 178 | |
| 139 | |
| 111 | |
| 110 | |
| 68 | |
| 60 | |
| 59 | |
| 57 | |
| 46 | |
| 45 |