Audit

This page identifies and defines the resources and operations available to manage audit log-data generated by the PSD2 services.

/audit

POST

Add or cancel a subscription for audit log-data. For active subscriptions, when audit log-data is generated it will be sent to the subscriber using the provided callback URL.

Request

{
  // The subscription action; one of the permitted values ("cancel", "subscribe")
  "action": {
    required: yes,
    type: string
  },

  // The callback URL. This URL must be accessible to the PSD2 services.
  "callbackUrl": {
    required: yes,
    type: string
  }
}

Response When Data Accepted And Continuing Subscription

202

Response When Data Accepted And Cancelling Subscription

204

callback {request.body.callbackUrl}

POST

Request

{
  // The type of event that cause log data to be generated.
  "eventType": {
    presence: always,
    type: string
  },

  // The partner identifier.
  "partnerId": {
    presence: always,
    type: string
  },

  // The date and time of when the log data was generated.
  "timestamp": {
    presence: always,
    type: timestamp
  },

  // The log data.
  "logData": {
    presence: always,
    type: string
  }
}

Response When Invalid input

400

Response When Not Authorised

401

Response When The Requested Operation Failed

499

{
  // A code to identify the requested authorisation.
  "authCode": {
    presence: always,
    type: string
  },

  // An identifier for the failed request.
  "code": {
    presence: always,
    type: guid
  }

  // A message describing the failure.
  "message": {
    presence: always,
    type: string
  }
}