Endpoints Included in the External Approval API for Sourcing and Supplier Management

Query the endpoints in the External Approval API to retrieve information about external approval tasks.

The External Approval API for Sourcing and Supplier Management includes the following endpoints:

Endpoint

Description

GET /changes

Returns a list of external approval tasks that have changed state. Activities that change the state of a task include submitting the task or completing the approval flow. See Events That Activate a Change to an Approval Task for more information.

GET /pendingApprovables

Returns a list of of external approval tasks that are active and pending approval.

GET /task/{entity_id}

Retrieves details about the specified external approval task. entity_id is the task ID, as returned in the response from the GET /changes or GET /pendingApprovables request.

GET /{entity_type}/{entity_id}

Retrieves details about the specified approvable document. {entity_type} specifies the type of item to be approved; if supplier-inviter mapping is available, retrieves that information, too.

POST /action

Posts the action to be taken for the approval task on behalf of the user in the approval flow. Options are to approve, deny, and include comments.

GET /Document/{documentId}/attachments/{docAttachmentId}

Downloads an attachment.

{documentId} is the document ID from which you want to download the attachment, as returned in the response from the GET /Workspace/{workspaceId} request.

{docAttachmentId} is the attachment ID, as returned in the response from the GET /document/{documentId} request.