Basware Subscribe to notifications API

The Subscribe to notifications API from Basware — 1 operation(s) for subscribe to notifications.

Operations 3

POST /v1/subscriptions Subscribes to receive push notifications #
GET /v1/subscriptions List existing subscriptions #
DELETE /v1/subscriptions Deletes existing subscriptions #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/basware-subscribe-to-notifications-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

basware-subscribe-to-notifications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Basware push notification Subscribe to notifications API
  description: 'Steps to use:

    1.'
  version: 1.0.0
  x-logo:
    url: https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png
tags:
- name: Subscribe to notifications
paths:
  /v1/subscriptions:
    post:
      tags:
      - Subscribe to notifications
      summary: Subscribes to receive push notifications
      description: 'Use this API to subscribe to task notifications. See for notification format which needs to be supported by the receiving endpoint.


        Note: Basware API validates the receiving endpoint by sending a notification with taskType ''ConnectionTest'', to which a 200 OK HTTP response needs to be returned.'
      operationId: create_item_v1_subscriptions_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/Subscription-Input'
              title: Items
      callbacks:
        notification:
          '{$notificationWebhookURL}':
            post:
              summary: Notification
              operationId: notification__notificationWebhookURL__post
              requestBody:
                required: true
                content:
                  application/json:
                    schema:
                      $ref: '#/components/schemas/NotificationPayload'
              responses:
                '200':
                  description: Successful Response
                  content:
                    application/json:
                      schema:
                        $ref: '#/components/schemas/NotificationPayload'
                '422':
                  content:
                    application/json:
                      schema:
                        $ref: '#/components/schemas/UnprocessableEntityErrorResponse'
                  description: Unprocessable Entity
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription-Output'
                title: Response Create Item V1 Subscriptions Post
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableEntityErrorResponse'
          description: Unprocessable Entity
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
          description: Internal Server Error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizeErrorResponse'
          description: Unauthorized
    get:
      tags:
      - Subscribe to notifications
      summary: List existing subscriptions
      operationId: read_items_v1_subscriptions_get
      parameters:
      - name: taskType
        in: query
        required: false
        schema:
          type: string
          description: The task type of the subscription(s) to be returned.
          title: Tasktype
        description: The task type of the subscription(s) to be returned.
      - name: taskSubType
        in: query
        required: false
        schema:
          type: string
          description: Task sub type of the subscriptions(s) to be returned.
          title: Tasksubtype
        description: Task sub type of the subscriptions(s) to be returned.
      - name: lastUpdated
        in: query
        required: false
        schema:
          type: string
          description: Date Filter. Returns items that have been updated after specified date.
          title: Lastupdated
        description: Date Filter. Returns items that have been updated after specified date.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionsResponse'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
          description: Internal Server Error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizeErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordNotFoundResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableEntityErrorResponse'
          description: Unprocessable Entity
    delete:
      tags:
      - Subscribe to notifications
      summary: Deletes existing subscriptions
      operationId: delete_item_v1_subscriptions_delete
      parameters:
      - name: lastUpdated
        in: query
        required: true
        schema:
          type: string
          description: Deletes subscriptions where lastUpdated is after specified datetime.
          title: Lastupdated
        description: Deletes subscriptions where lastUpdated is after specified datetime.
      - name: taskType
        in: query
        required: true
        schema:
          type: string
          description: TaskType of subscription(s) to delete. ‘All’ can be used to specify any taskType.
          title: Tasktype
        description: TaskType of subscription(s) to delete. ‘All’ can be used to specify any taskType.
      - name: taskSubType
        in: query
        required: true
        schema:
          type: string
          description: TaskSubType of subscription(s) to delete. ‘All’ can be used to speciy any taskSubType.
          title: Tasksubtype
        description: TaskSubType of subscription(s) to delete. ‘All’ can be used to speciy any taskSubType.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSubscriptionResponse'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
          description: Internal Server Error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizeErrorResponse'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableEntityErrorResponse'
          description: Unprocessable Entity
components:
  schemas:
    FieldUpdateArray:
      properties:
        fieldId:
          type: string
          title: Fieldid
          description: Specifies the field to update. Use JSONpath to identify the value on response schema to update.
          example: codingRows[2]/accountCode
        updateToValue:
          type: string
          title: Updatetovalue
          description: Specifies value to which field contents are set by the autoresponder.
          example: '02600'
      type: object
      title: FieldUpdateArray
    NotificationPayload:
      properties:
        taskId:
          type: string
          title: Taskid
          description: Defines id of task
          example: eb9ea3fa-69de-4a5a-8a1a-f4347cd18626
        taskStatus:
          type: string
          title: Taskstatus
          description: Defines status of task
          example: New
        taskType:
          type: string
          title: Tasktype
          description: Defines task type
          example: AccoutingDocuments
        taskSubType:
          type: string
          title: Tasksubtype
          description: Defines sub task type
          example: WaitingForTransfer
        documentId:
          type: string
          title: Documentid
          description: Defines document id
          example: 63255782d0a04d8d8defcc6a0062101d
        expirationTime:
          type: string
          title: Expirationtime
          description: Defines notification's expiration time
          example: '2021-12-11T08:53:31Z'
      type: object
      required:
      - taskId
      - taskStatus
      - taskType
      - documentId
      title: NotificationPayload
    RecordNotFoundResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Detail of error
          default: Not Found
          example: Not Found
      type: object
      title: RecordNotFoundResponse
    InternalServerErrorResponse:
      properties:
        message:
          type: string
          title: Message
          description: Detail of error
          default: Internal server error
          example: Internal server error
      type: object
      title: InternalServerErrorResponse
    UnauthorizeErrorResponse:
      properties:
        message:
          type: string
          title: Message
          description: Detail of error
          default: Unauthorized
          example: Unauthorized
      type: object
      title: UnauthorizeErrorResponse
    SubscriptionsResponse:
      properties:
        subscriptions:
          items:
            $ref: '#/components/schemas/Subscription-Output'
          type: array
          title: Subscriptions
      type: object
      required:
      - subscriptions
      title: SubscriptionsResponse
    Subscription-Output:
      properties:
        taskType:
          type: string
          minLength: 1
          title: Tasktype
          description: 'Task type for which notifications are sent. Supported values: ''AccountingDocuments'', ''ExportedPurchaseRequisitions'', ''ExportedPurchaseOrders'', ''RequestStatus'', ''ExportedContracts'' , ''ExportedContractSpends''.'
          example: AccountingDocuments
        taskSubType:
          type: string
          title: Tasksubtype
          description: 'Task subtype for which webhook notifications are sent. Supported values: ''WaitingForPrebook'', ''WaitingForTransfer'', ''WaitingForPrebookCancelation'', ''WaitingToBeRemoved'', ''WaitingToBeReturned'', ''WaitingToBeCompleted'', ''WaitingForExport'', ''Error'', ''Success'', ''All''. Available values depend on taskType. If null, defaults to ''Error'' for RequestStatus taskType and ''All'' for other taskTypes.'
          example: All
        subscriptionType:
          allOf:
          - $ref: '#/components/schemas/SubscriptionType'
          description: 'Subscription type. Supported values: ''Webhook''. ''Polling'' subscription type is reserved for later use.'
          example: Webhook
        notificationWebhookURL:
          type: string
          maxLength: 2083
          minLength: 1
          format: uri
          title: Notificationwebhookurl
          description: URL where API posts push notifications when subscriptionType = 'Webhook' (then field is mandatory). This URL needs to implement the Basware's notification receival API specification.
          example: https://bwnotificationapi.customer.com/accountingdocumentnotifications
        webhookAuthenticationToken:
          type: string
          minLength: 1
          title: Webhookauthenticationtoken
          description: Secret key used by API to sign sent push notifications so authenticity can be verified by customer. Mandatory when subscription type is 'Webhook'.
          example: ad65rujltr9093ijhdkutiyua09döijhsa76d8799w8pqugdfafjdhfkjhadls
        lastUpdated:
          type: string
          format: date-time
          title: Lastupdated
          description: Timestamp when this subscription has been last updated (set automatically by Basware API).
          example: '2021-08-04T08:39:13Z'
        autoResponder:
          anyOf:
          - $ref: '#/components/schemas/AutoResponder'
          - type: 'null'
          description: Reserved for later use.
      additionalProperties: false
      type: object
      required:
      - taskType
      - subscriptionType
      - notificationWebhookURL
      - webhookAuthenticationToken
      title: Subscription
    SchemaValidationError:
      properties:
        type:
          type: string
          title: Type
          description: Type of error
          example: VALIDATION
        code:
          type: string
          title: Code
          description: Code of error
          example: SCHEMA_VALIDATION_ERROR
        message:
          type: string
          title: Message
          description: Detail of error
          example: taskType field required
      type: object
      title: SchemaValidationError
    Subscription-Input:
      properties:
        taskType:
          type: string
          minLength: 1
          title: Tasktype
          description: 'Task type for which notifications are sent. Supported values: ''AccountingDocuments'', ''ExportedPurchaseRequisitions'', ''ExportedPurchaseOrders'', ''RequestStatus'', ''ExportedContracts'' , ''ExportedContractSpends''.'
          example: AccountingDocuments
        taskSubType:
          type: string
          title: Tasksubtype
          description: 'Task subtype for which webhook notifications are sent. Supported values: ''WaitingForPrebook'', ''WaitingForTransfer'', ''WaitingForPrebookCancelation'', ''WaitingToBeRemoved'', ''WaitingToBeReturned'', ''WaitingToBeCompleted'', ''WaitingForExport'', ''Error'', ''Success'', ''All''. Available values depend on taskType. If null, defaults to ''Error'' for RequestStatus taskType and ''All'' for other taskTypes.'
          example: All
        subscriptionType:
          allOf:
          - $ref: '#/components/schemas/SubscriptionType'
          description: 'Subscription type. Supported values: ''Webhook''. ''Polling'' subscription type is reserved for later use.'
          example: Webhook
        notificationWebhookURL:
          type: string
          maxLength: 2083
          minLength: 1
          format: uri
          title: Notificationwebhookurl
          description: URL where API posts push notifications when subscriptionType = 'Webhook' (then field is mandatory). This URL needs to implement the Basware's notification receival API specification.
          example: https://bwnotificationapi.customer.com/accountingdocumentnotifications
        webhookAuthenticationToken:
          type: string
          minLength: 1
          title: Webhookauthenticationtoken
          description: Secret key used by API to sign sent push notifications so authenticity can be verified by customer. Mandatory when subscription type is 'Webhook'.
          example: ad65rujltr9093ijhdkutiyua09döijhsa76d8799w8pqugdfafjdhfkjhadls
        lastUpdated:
          type: string
          format: date-time
          title: Lastupdated
          description: Timestamp when this subscription has been last updated (set automatically by Basware API).
          example: '2021-08-04T08:39:13Z'
        autoResponder:
          anyOf:
          - $ref: '#/components/schemas/AutoResponder'
          - type: 'null'
          description: Reserved for later use.
      additionalProperties: false
      type: object
      required:
      - taskType
      - subscriptionType
      - notificationWebhookURL
      - webhookAuthenticationToken
      title: Subscription
    DeleteSubscriptionResponse:
      properties:
        status:
          type: string
          title: Status
          description: Success message
          default: Deleted successfully
          example: Deleted successfully
        numberOfRecordsDeleted:
          type: integer
          title: Numberofrecordsdeleted
          description: Number of records deleted
          example: '1'
      type: object
      title: DeleteSubscriptionResponse
    SubscriptionType:
      type: string
      enum:
      - Webhook
      - Polling
      title: SubscriptionType
    ValidationErrorResponse:
      properties:
        requestId:
          type: string
          title: Requestid
          description: RequestId of request
          example: KLF5BiZ9DoEEMlQ=
        hasError:
          type: boolean
          title: Haserror
          description: Tells that request has error
          example: true
        errorMessages:
          items:
            $ref: '#/components/schemas/SchemaValidationError'
          type: array
          title: Errormessages
      type: object
      title: ValidationErrorResponse
    AutoResponseModeEnum:
      type: string
      enum:
      - Disabled
      - Success
      - Failed
      title: AutoResponseModeEnum
    UnprocessableEntityErrorResponse:
      properties:
        message:
          type: string
          title: Message
          description: Detail of error
          default: UnprocessableEntity
          example: UnprocessableEntity
      type: object
      title: UnprocessableEntityErrorResponse
    AutoResponder:
      properties:
        autoResponseMode:
          allOf:
          - $ref: '#/components/schemas/AutoResponseModeEnum'
          description: Determines whether task autoresponder is enabled and whether it returns task responses with status 'Success' or 'Failed'. The entire autoresponder functionality is reserved for later use.
          example: Disabled
        autoResponseMessage:
          type: string
          title: Autoresponsemessage
          description: Determines message returned by task autoresponser to P2P.
          example: Updated coding details.
        fieldUpdateArray:
          anyOf:
          - items:
              $ref: '#/components/schemas/FieldUpdateArray'
            type: array
          - type: 'null'
          title: Fieldupdatearray
          description: Reserved for later use. Array of field values to automatically update when autoresponder is enabled.
      type: object
      title: AutoResponder