Contract Compliance API Overview
The Contract Compliance API enables you to create and manage contract requests and contracts in your procurement solution.
Using the Contract Compliance API, you can create and change contract requests in the procurement solution with data imported from an external system. Contract requests are created in the procurement solution based on the imported details and are set to the composing status. Contracts are created after the associated contract requests have been validated and fully approved in the procurement solution's user interface.
The Contract Compliance API also allows you to search for and get information about contract requests and contracts created in your procurement solution, and update the contract accumulators with data from imported documents.
- GET /contractRequests
- Retrives header details of all contract requests that match the search criteria.
- GET /contractRequests/{contractRequestId}
-
Retrieves header details of the specified contract request.
- GET /contractRequests/{contractRequestId}/lineItems
-
Retrives the line items of the specified contract request.
- GET /contracts
-
Retrives header details of all contracts that match the search criteria.
- GET /contracts/{contractId}
-
Retrieves header details of the specified contract.
- GET /contracts/{contractId}/lineItems
-
Retrives the line items of the specified contract.
- PUT /accumulationRequests
-
Updates and validates contract accumulators based on the imported documents.
- POST /contractRequests
- Creates a contract request in the SAP Ariba solution with header details imported from the client application.
- PATCH /contractRequests/{contractRequestId}
- Updates the specified contract request in the SAP Ariba solution with header details imported from the client application.
- POST /contractRequests/{contractRequestId}/lineitems
-
Adds line items to the specified contract request in the SAP Ariba solution with line item details imported from the client application.
- PATCH /contractRequests/{contractRequestId}/lineitems
- Updates the specified line items in the SAP Ariba solution with line item details imported from the client application.
- DELETE /contractRequests/{contractRequestId}/lineitems
- Deletes specified contract request line items from the relevant contract request in the SAP Ariba solution.
- POST /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/discountedPricing
- Imports discounted pricing details of specified contract request line items and adds them to the relevant contract request line items in the SAP Ariba solution.
- PUT /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/discountedPricing
- Imports discounted pricing details of specified contract request line items and updates them in the SAP Ariba solution.
- POST /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/tieredPricing
- Imports tiered pricing details of specified contract request line items and adds them to the relevant contract request line items in the SAP Ariba solution.
- PUT /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/tieredPricing
- Imports tiered pricing details of specified contract request line items and updates them in the SAP Ariba solution.
- POST /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/termBasedPricing
- Imports term-based pricing details of specified contract request line items and adds them to the relevant contract request line items in the SAP Ariba solution.
- PUT /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/termBasedPricing
- Imports term-based pricing details of specified contract request line items and updates them in the SAP Ariba solution.
- POST /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/formulaPricing
- Imports formula pricing details of specified contract request line items and adds them to the relevant contract request line items in the SAP Ariba solution.
- PUT /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/formulaPricing
- Imports formula pricing details of specified contract request line items and updates them in the SAP Ariba solution.
- POST /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/rangePricing
-
Imports range pricing details of specified contract request line items and adds them to the relevant contract request line items in the SAP Ariba solution.
- PUT /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/rangePricing
- Imports range pricing details of specified contract request line items and updates them in the SAP Ariba solution
- POST /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/advancedPricing
- Imports advanced pricing details item details of a specified contract request from the client application and deletes them from the relevant contract request in the SAP Ariba solution.
- PUT /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/advancedPricing
- Imports advanced pricing details of specified contract request line items and updates them in the SAP Ariba solution.
- DELETE /contractRequests/{contractRequestId}/lineitems/{numberInCollection}/pricingTerms
- Deletes all the pricing terms of specified contract request line items from the relevant contract request in the SAP Ariba solution.
- PUT /accumulationRequests
-
Updates and validates contract accumulators based on the imported documents.
Prerequisites
-
To create an application and request access to use this API, 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.
-
Configure your site to display the External Transaction Documents tab in the contract page in your procurement solution's user interface.
SAP Ariba sets this option for you.
Restrictions
-
Creation of global contracts in multi-ERP configurations is not supported.
-
Attachments are not supported.
-
Custom fields for split accounting are not supported.
-
Submitting contract requests for approval or publishing contract terms in suite-integrated sites cannot be done using the API.
These actions are to be performed manually in the procurement solution's user interface.
-
The Contract Compliance API does not support updating line item details of auto-release contracts in the SAP Ariba solution using the PATCH /contractRequests/{contractRequestId}/lineitems endpoint.