Use of the Supplier Data API with Pagination vendors Endpoint

The Supplier Data API with Pagination vendors endpoint uses the PATCH method to send qualification and preferred category status update requests to your site in JSON format. You can use it to qualify, disqualify, and set preferred category statuses for suppliers.

The JSON request specifies authentication in the header and status update information in the body.

Method

Endpoint

Description

PATCH

{{runtime_url}}/supplierdatapagination/v4/prod/vendors

Updates qualification or preferred category status for the specified combination of commodities, regions, and departments for the specified suppliers.

The JSON requests that the vendors endpoint sends to your site include statusList arrays with statusType of either Preferred or Qualification. statusList arrays include the following name/value pairs or arrays:

Name/Value Pair or Array

Valid Values

Required?

active

TRUE or FALSE. Specifying FALSE deactivates the status record.

Yes

businessUnit

One or more of the business units or department IDs loaded in your site as master data and used in supplier management projects, separated by semicolons.

Yes, if departments are enabled in your site.

category

One or more of the category IDs loaded in your site as master data and used in supplier management projects, separated by semicolons.

Yes

endDate

The end date for the status in ISO format.

No

erpVendorId

The ERP vendor ID of the supplier.

Yes

region

One or more of the region codes loaded in your site as master data and used in supplier management projects, separated by semicolons.

Yes

requalificatoinEligibleDate

The requalification eligibility date for a qualification status in ISO format.

No

sourceSystem

The source system associated with the erpVendorId

Yes

startDate

The start date for the status in ISO format.

No

status

The status, which can be one of the following values:

  • Qualification statuses:

    • NotQualified

    • QualificationStarted

    • InQualification

    • PendingQualificationApproval

    • PendingResubmit

    • QualificationRestricted

    • QualificationRejected

    • Disqualified

    • Qualified

    • Expired

    • Cancelled

    If you use display mappings to customize what statuses are called in your site, you must still use these values to update qualification statuses.

  • Preferred category statuses: numbers 1 through 5, where 1 represents the highest level of preferment.

Yes

statusQualifier

A string that provides additional information about the status.

No

Every time the vendors endpoint is called, a new statusType array is created. The vendors endpoint can also send multiple statusList arrays with statusType of either Preferred or Qualification consolidated in a JSON request. It is recommended to send the details in a consolidated operation for sending multiple supplier details. A maximum of 1000 statusType arrays in a single PATCH operation. The following example shows a status request body that sets a qualification status for a supplier for all commodities, regions, and departments:
{ 
   "statusList":[ 
      { 
         "active":true,
         "erpVendorId":"1234567",
         "sourceSystem":"SAP",
         "status":"Qualified"
      },
      { 
          "active":true, 
          "erpVendorId":"1234568", 
          "sourceSystem":"SAP", 
           "status":"Qualified" 
     }    
],
   "statusType":"Qualification"
}