{
  "opencollection": "1.0.0",
  "info": {
    "name": "Ariba Sourcing - External Approval Approval Tasks Documents API",
    "version": "v2 - 2026-02"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.ariba.com/v2/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Ariba Sourcing Get Approvable Document Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://openapi.ariba.com/api/sourcing-approval/v2/prod/:entity_type/:entity_id",
            "params": [
              {
                "name": "entity_type",
                "value": "Workspace",
                "type": "path",
                "description": "Type of item to be approved. Examples: Workspace, RFXDocument, ContractWorkspace, Folder."
              },
              {
                "name": "entity_id",
                "value": "WS500123",
                "type": "path",
                "description": "The ID of the item to be approved."
              },
              {
                "name": "realm",
                "value": "mycompany-T",
                "type": "query",
                "description": "The SAP Ariba realm name."
              },
              {
                "name": "$select",
                "value": "lineItems,suppliers",
                "type": "query",
                "description": "For sourcing events, specifies which parts of the event to retrieve (e.g., line items, invited suppliers)."
              }
            ]
          },
          "docs": "Retrieves details about the specified approvable document, sourcing event, or project. Use $select parameter for sourcing events to get details about specific parts such as line items or invited suppliers."
        },
        {
          "info": {
            "name": "Ariba Sourcing Download Approval Document Attachment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://openapi.ariba.com/api/sourcing-approval/v2/prod/Document/:documentId/attachments/:docAttachmentId",
            "params": [
              {
                "name": "documentId",
                "value": "DOC-001234",
                "type": "path",
                "description": "The document ID from which to download the attachment."
              },
              {
                "name": "docAttachmentId",
                "value": "ATTACH-001",
                "type": "path",
                "description": "The attachment ID."
              },
              {
                "name": "realm",
                "value": "mycompany-T",
                "type": "query",
                "description": "The SAP Ariba realm name."
              }
            ]
          },
          "docs": "Downloads an attachment associated with an approvable document. The documentId is from the GET /{entity_type}/{entity_id} response and docAttachmentId is from the GET /document/{documentId} response."
        }
      ]
    }
  ],
  "bundled": true
}