SAP Fieldglass Audit Trail API

The Audit Trail API from SAP Fieldglass — 1 operation(s) for audit trail.

OpenAPI Specification

sap-fieldglass-audit-trail-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Approval Audit Trail API
  description: "This is a generated connector for [SAP Fieldglass Approval API API v1.0.0](https://api.sap.com/api/approvals/resource) OpenAPI specification. \nThe SAP Fieldglass Approval API allows clients to approve or reject SAP Fieldglass work items. Clients retrieve the work items pending an approval action from the authenticated user and return the workflow action to be performed (either approve or reject). The list and details provided by the SAP Fieldglass API give clients the ability to present work items for approval to their users with the level of detail needed to make an informed approval decision and the mechanism to return the approval or rejection decision."
  termsOfService: https://www.fieldglass.net/TermsOfUse.en_US.pdf
  x-ballerina-init-description: 'The connector initialization requires setting the API credentials.

    Create and configure an OAuth2 client credentials by following [this guide](https://help.sap.com/viewer/b865ed651e414196b39f8922db2122c7/LATEST/en-US/7aefa21a65f94b25b7e639c3931b6f83.html).

    '
  x-ballerina-display:
    label: SAP Fieldglass Approval
    iconPath: icon.png
  contact:
    name: SAP Fieldglass Approval API
    url: http://www.fieldglass.com
    email: Fieldglass_API@sap.com
  license:
    name: SAP Fieldglass
    url: https://www.fieldglass.net/TermsOfUse.en_US.pdf
  version: 1.0.0
security:
- OAuth2:
  - user
tags:
- name: Audit Trail
paths:
  /auditTrail:
    get:
      summary: Get audit trail details
      description: Returns audit trail details. When using this with query parameter pairs for start and stop times, you can limit the results to a particular timeframe.
      tags:
      - Audit Trail
      produces:
      - application/json
      consumes:
      - application/x-www-form-urlencoded
      parameters:
      - name: Authorization
        in: header
        required: false
        type: string
        description: Only required for production access when using SAP Fieldglass.
      - name: X-ApplicationKey
        in: header
        required: false
        type: string
        description: The company-specific key provided by SAP Fieldglass for API access. This is required for production access.
      - name: Content-Type
        in: header
        required: false
        type: string
        description: This value is required in production and must be application/x-www-form-urlencoded.
      - name: TransactionId
        in: query
        required: false
        type: string
        description: Transaction ID for transmission.
      - name: PriorStartTime
        in: query
        required: false
        type: string
        description: Start time of the integration. Pair this with PriorStopTime.
      - name: CurrentStartTime
        in: query
        required: false
        type: string
        description: Start time of the integration. Pair this with CurrentStopTime.
      - name: PriorStopTime
        in: query
        required: false
        type: string
        description: Stop time of the integration. Pair this with PriorStartTime.
      - name: CurrentStopTime
        in: query
        required: false
        type: string
        description: Stop time of the integration. Pair this with CurrentStartTime.
      - name: Status
        in: query
        required: false
        type: string
        description: Error / OK status tied to the integration process to be filtered on.
      responses:
        '200':
          description: OK. The request was received successfully.
          schema:
            $ref: '#/definitions/auditTrail'
        default:
          description: No Result
          schema:
            $ref: '#/definitions/Error'
components:
  securitySchemes:
    OAuth2:
      type: oauth2
      description: To use this REST API, you need to get OAuth client credentials (user credentials and client-specific application key) from an SAP Fieldglass account representative. After that, you need to pass the obtained client credentials to the SAP Fieldglass token endpoint to obtain an access token.
      flows:
        clientCredentials:
          tokenUrl: ' '
          scopes:
            user: approve work items
definitions:
  Error:
    type: object
    properties:
      code:
        type: integer
        format: int32
      message:
        type: string
      fields:
        type: string
  auditTrail:
    type: object
    properties:
      HEADER:
        type: object
        properties:
          appVersion:
            type: string
            description: App Version
          OSUAStr:
            type: string
            description: App Version
          numRecs:
            type: integer
            description: Number of records
          status:
            type: string
            description: Status
          details:
            type: string
            description: Details
      PAYLOAD:
        type: array
        items:
          type: object
          properties:
            type:
              type: string
              description: '>- Reflects the type of subscription/delivery method or the type of integration connector being processed.'
            company:
              type: string
              description: Client buyer code associated to the subscription/integration.
            startTime:
              type: string
              description: '>- Time and date associated to the start time of the subscription process or individual file transfer. Only applicable to integration file errors.'
            stopTime:
              type: string
              description: Time and date associated to the stop time of the subscription process or individual file transfer
            user:
              type: string
              description: Integration User associated to client integration process (systematic/manual).
            category:
              type: string
              description: Description of source audit trail where the error/exception occurred from (the subscription/delivery audit trail or the integration audit trail of the delivered and processed file).
            ID:
              type: string
              description: Unique ID associated to the specific integration file being processed within SAP Fieldglass.
            Attributes:
              type: object
              properties:
                version:
                  type: string
                  description: Reflects the current version and type of the integration connector.
                activity:
                  type: string
                  description: Upload
                company:
                  type: string
                  description: Name of object as defined by user.
                documentStatus:
                  type: string
                  description: Status of the delivery of the integration between SAP Fieldglass and external platform.
                deliveryTime:
                  type: integer
                  description: Time associated to the subscription delivery of the integration (not the individually processed integration file).
                deliveryStatus:
                  type: string
                  description: Reflected status of the subscription / delivery for the integration.
                message:
                  type: boolean
                  description: Detailed message associated to the delivery or document associated to the subscription and delivery of the integration.
                duration:
                  type: string
                  description: Amount of time associated to the processing of an integration file within SAP F Fieldglass.
                serverStatus:
                  type: string
                  description: Reflects the standard error message associated to the integration file processing.
                serverMessage:
                  type: string
                  description: Associated to errors on the subscription and individual integration files processing.
                recordsProcessed:
                  type: string
                  description: '>- Number of records processed within a file transfer. Not displayed for a subscription error.'
                recordsFailed:
                  type: string
                  description: ' Number of records failed within a file transfer. Not displayed for a subscription error.'
                clientReturnCode:
                  type: string
                  description: ''
                clientMessage:
                  type: string
                  description: ''
                crc32Checksum:
                  type: string
                  description: ''
                uploadFile:
                  type: string
                  description: Name of the file associated to the integration.
            details:
              type: string
              description: All ok if response is OK.
            status:
              type: string
              description: Ok if response is OK.
externalDocs:
  description: SAP Fieldglass Approval API Guide
  url: https://help.sap.com/viewer/695f67ff045b402bad469e7340b3108c/Latest/en-US
x-servers:
- url: https://{hostname}/api/{suffix}
  description: REST API
  templates:
    hostname:
      enum:
      - www.fieldglass.net
      default: www.fieldglass.net
      description: The SAP Fieldglass region where the SAP Fieldglass APIs are used.
    suffix:
      enum:
      - v1
      - vc
      default: vc
      description: The suffix for the URL.
x-sap-shortText: Enables you to approve or reject SAP Fieldglass work items.