Workflow for Extracting Contracts and Contract Requests Using the Contract Compliance API

Workflow for extracting contracts and contract requests from your procurement solution involves the following high-level steps:
  1. User identifies the search criteria for the desired contracts or contract requests.

  2. The client application retrieves the header details of all documents that match the search criteria.

  3. For each document ID, the client application can retrive the header details and line items using the relevant end points.

Extracting Contract Data Using the Contract Compliance API

Use this procedure to extract contract data using the Contract Compliance API.

Context

Procedure

  1. A user identifies the search criteria for the desired contracts.
  2. The client application requests header details of contracts that match the search criteria using the GET /contracts endpoint as follows:
    GET {{runtime_URL}}/contracts?$filter={searchcriteria}

    {searchcriteria} contains the search query.

    The response includes the header details of all contracts that match the search criteria.

  3. To request for header details of a specific contract, the client application passes its ID into the GET /contracts/{contractId} end point as follows:
    GET {{runtime_URL}}/contracts/{contractId}

    {contractId} contains the ID of the contract.

    The response includes the header details of the specified contract.

  4. To request for line item details of a specific contract, the client application passes its ID into the GET /contracts/{contractId}/lineitems end point as follows:
    GET {{runtime_URL}}/contracts/{contractId}/lineitems

    {contractId} contains the ID of the contract.

    The response includes the line item details of the specified contract.

Extracting Contract Request Data Using the Contract Compliance API

Use this procedure to extract contract request data using the Contract Compliance API.

Context

Procedure

  1. A user identifies the search criteria for the desired contract requests.
  2. The client application requests header details of contract requests that match the search criteria using the GET /contractRequests endpoint as follows:
    GET {{runtime_URL}}/contractRequests?$filter={searchcriteria}

    {searchcriteria} contains the search query.

    The response includes the header details of all contract requests that match the search criteria.

  3. To request for header details of a specific contract request, the client application passes its ID into the GET /contractRequests/{contractRequestId} end point as follows:
    GET {{runtime_URL}}/contractRequests/{contractRequestId}

    {contractRequestId} contains the ID of the contract request.

    The response includes the header details of the specified contract request.

  4. To request for line item details of a specific contract request, the client application passes its ID into the GET /contractRequests/{contractRequestId}/lineitems end point as follows:
    GET {{runtime_URL}}/contractRequests/{contractRequestId}/lineitems

    {contractRequestId} contains the ID of the contract.

    The response includes the line item details of the specified contract request.