Use of the Supplier Data API searchSupplier Endpoint to Retrieve Supplier Data
The Supplier Data API searchSupplier endpoint uses a POST request that specifies authentication in the header and filters and output formats in the body.
{{runtime_URL}}/searchsupplier
You do not pass any parameters in Supplier Data API URLs.
|
Authorization:Bearer |
Your authorization token. |
|
apiKey |
Your application key. This key is automatically generated when you create a new application on the SAP Ariba Developer Portal, and is visible when you select your application in the Manage Applications area. |
Specification of Output Format and Filters in the Request Body
If you do not filter the result set, the API returns all data for all suppliers. The request body lets you filter the result set as well as specifying the output format.
{
"businessUnitList": [
"{departmentID}"
],
"categoryList": [
"{categoryID}"
],
"outputFormat": "{CSV | JSON}",
"withQuestionnaire": "TRUE",
"preferredLevelList": [
{preferredLevel}
],
"qualificationStatusList": [
"{qualificationStatus}"
],
"regionList": [
"{regionCode}"
],
"registrationStatusList": [
"{registrationStatus}"
]
}
{
"outputFormat": "CSV",
"preferredLevelList": [
1
]
}
This request returns a row for each level 1 preferred designation, including the commodities, regions, and departments associated with each preferred designation..
{
"categoryList": [
"47",
]
"outputFormat": "JSON",
"withQualification": "TRUE",
"qualificationStatusList": [
"Qualified"
],
"regionList": [
"CA,AZ"
]
}
This request returns rows for each supplier with status Qualified in the specified categories and regions, including any departments that are also associated with the qualifications. It also returns the ID, and title, and project type of each questionnaire associated with each supplier in the results.
Request Filter and Output Values
|
Name/value pair or array |
Valid values |
|---|---|
|
businessUnitList |
One or more of the business unit or department IDs loaded in your site as master data and used in supplier management projects, separated by commas. |
|
categoryList |
One or more of the category IDs loaded in your site as master data and used in supplier management projects, separated by commas. |
|
outputFormat |
Either CSV or JSON. |
|
withQuestionnaire |
TRUE to include the titles, IDs, and types of any questionnaires associated with the suppliers returned in results; otherwise, FALSE. |
|
smVendorIds |
One or more valid SM vendor IDs for suppliers in your site, separated by commas. |
|
preferredLevelList |
One or more numbers between 1 and 5, separated by commas. 1 is the highest preferred level and 5 is the lowest. |
|
qualificationStatusList |
One or more of the following values, separated by commas: Unknown, QualificationRejected, Disqualified, InDisqualification, PendingDisqualificationApproval, QualificationExpired, NotQualified, QualificationStarted, InQualification, PendingQualificationApproval, PendingQualificationResubmit, QualificationRestricted, QualifiedForSome, QualifiedWithException, Qualified, None |
|
regionList |
One or more of the region codes loaded in your site as master data and used in supplier management projects, separated by commas. |
|
registrationStatusList |
One or more of the following values, separated by commas: Unknown, RegistrationDenied, PhasedOut, InCreation, InExternalApprovalForCreation, NotInvited, Invited, InRegistration, PendingApproval, PendingResubmit, Registered |
Output Fields
The response for a vendorDataRequests requests includes anchor fields, which are included in every response, and optional output fields that can be configured in your site, in the specified JSON or CSV format.
|
Field |
Anchor Field? |
Notes |
|---|---|---|
|
Supplier Name |
Yes |
|
|
ERP Vendor ID |
Yes |
|
|
SM Vendor ID |
Yes |
|
|
An Id |
Yes |
|
|
ACM ID |
Yes |
|
|
Registration Status |
Yes |
|
|
Qualification Status |
Yes |
Qualification status can be from either a supplier disqualification or a process disqualification. |
|
Integrated to ERP |
Yes |
|
|
Duplicate SM Vendor Id |
No |
|
|
Last Integration State |
No |
|
|
Last Confirmation State |
No |
|
|
Source System |
No |
|
|
Master Vendor Id |
No |
|
|
Form of Address Code |
No |
|
|
name2 |
No |
|
|
name3 |
No |
|
|
name4 |
No |
|
|
Duns Id |
No |
|
|
Industry Code |
No |
|
|
Record Created Date |
No |
|
|
Creator |
No |
|
|
Blocked Status |
No |
|
|
Last Review Date |
No |
|
|
Last Update Date |
No |
|
|
Last Status Change Date |
No |
|
|
Primary Supplier Manager |
No |
|
|
Relationship Established |
No |
|
|
Alternate Supplier Manager |
No |
|
|
Approved |
No |
|
|
Transactional Supplier |
No |
|
|
Transactional Supplier Request Status |
No |
|
|
Main Vendor Type |
No |
|
|
Address - Line1 |
Yes |
|
|
Address - City |
Yes |
|
|
Address - Country Code |
Yes |
|
|
Address - Region Code |
Yes |
|
|
Address - Postal Code |
Yes |
|
|
Primary contact first name |
No |
|
|
Primary contact middle name |
No |
|
|
Primary contact last name |
No |
|
|
Primary contact email |
No |
|
|
qualifications |
No |
qualifications covers both qualifications (either supplier qualifications or process qualifications) and preferred category statuses and includes:
For process qualifications, the Process Type field includes the type of the qualification process as defined by process type data in your site. |
|
questionnaires |
No |
The fields related to questionnaires are included in JSON output if your request specifies "withQuestionnaire" : "TRUE". They are:
|
|
genericCustomFields |
No |
Custom fields are included in JSON output if your request specifies "withGenericCustomFields" : "TRUE". |
-
Supplier Name
-
ERP Vendor ID
-
SM Vendor ID
-
An Id
-
Acm Id
-
Registration Status
-
Integrated to ERP
-
Address - Line 1
-
Address - Line 2
-
Address - Line 3
-
Address - City
-
Address - Country Code
-
Address - Region Code
-
Address - PO Box
-
Address - Postal Code
-
Qualification Status
-
Preferred Status
-
Category
-
Region
-
Business Unit
For both types of output, values for registration and qualification statuses are the unique names for those statuses. The supported values for preferred levels are the numbers 1-5. Output that uses your company's customized labels for these statuses and levels is not currently supported. The output uses the same values as the request filters.