{
  "opencollection": "1.0.0",
  "info": {
    "name": "Account and Transaction API Specification Account Access Consents File Payment Consents API",
    "version": "4.0.1"
  },
  "items": [
    {
      "info": {
        "name": "File Payment Consents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a File Payment Consent",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "/open-banking/v4.0/aisp/file-payment-consents",
            "headers": [
              {
                "name": "x-fapi-auth-date",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-idempotency-key",
                "value": ""
              },
              {
                "name": "x-jws-signature",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              },
              {
                "name": "x-client-id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://authserver.example/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Enables a PISP to register an intent to initiate a File Payment."
        },
        {
          "info": {
            "name": "Get a File Payment Consent",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/open-banking/v4.0/aisp/file-payment-consents/:ConsentId",
            "headers": [
              {
                "name": "x-fapi-auth-date",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              },
              {
                "name": "x-client-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ConsentId",
                "value": "",
                "type": "path",
                "description": "ConsentId"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://authserver.example/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Enables a PISP to retrieve the status of an intent to initiate a File Payment."
        },
        {
          "info": {
            "name": "Get a File Payment Consent's Uploaded File",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/open-banking/v4.0/aisp/file-payment-consents/:ConsentId/file",
            "headers": [
              {
                "name": "x-fapi-auth-date",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              },
              {
                "name": "x-client-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ConsentId",
                "value": "",
                "type": "path",
                "description": "ConsentId"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://authserver.example/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Enables a PISP to download a file that has been previously uploaded."
        },
        {
          "info": {
            "name": "Upload a File for a ConsentId",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "/open-banking/v4.0/aisp/file-payment-consents/:ConsentId/file",
            "headers": [
              {
                "name": "x-fapi-auth-date",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-idempotency-key",
                "value": ""
              },
              {
                "name": "x-jws-signature",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              },
              {
                "name": "x-client-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ConsentId",
                "value": "",
                "type": "path",
                "description": "ConsentId"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://authserver.example/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Enables a PISP to upload a file of payments to the ASPSP for PSU to authenticate."
        }
      ]
    }
  ],
  "bundled": true
}