{
  "opencollection": "1.0.0",
  "info": {
    "name": "Business Accounting File Payment API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "File Payment",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve a file payment consent",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://b2b.revolut.com/api/1.0/file-payment-consents/:ConsentId",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ConsentId",
                "value": "",
                "type": "path",
                "description": "The ID of the account access consent."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get the details of a file payment consent.\n\nSee also [Tutorials: Create a file payment](https://developer.revolut.com/docs/guides/build-banking-apps/tutorials/create-a-file-payment)."
        },
        {
          "info": {
            "name": "Create a file payment consent",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://b2b.revolut.com/api/1.0/file-payment-consents",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "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": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a file payment consent described in the [Open Banking API documentation: Account and Transaction API Specification](https://openbanking.atlassian.net/wiki/spaces/DZ/pages/999622968/Account+and+Transaction+API+Specification+-+v3.1.1).\n\n:::note\nFile Payments are available only for Revolut Business users.\nCurrently only the `text/csv` file type is supported for File Payments.\n:::\n\nWhen you make the API call, ensure that you pass the corresponding JSON Web Signature (JWS) in the `x-jws-signat"
        },
        {
          "info": {
            "name": "Retrieve an uploaded payment file",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://b2b.revolut.com/api/1.0/file-payment-consents/:ConsentId/file",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ConsentId",
                "value": "",
                "type": "path",
                "description": "The ID of the account access consent."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get the payment file that was uploaded with the given consent.\n\nSee also [Tutorials: Create a file payment](https://developer.revolut.com/docs/guides/build-banking-apps/tutorials/create-a-file-payment)."
        },
        {
          "info": {
            "name": "Upload a payment file",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://b2b.revolut.com/api/1.0/file-payment-consents/:ConsentId/file",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "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": ""
              }
            ],
            "params": [
              {
                "name": "ConsentId",
                "value": "",
                "type": "path",
                "description": "The ID of the account access consent."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Use this endpoint to upload a file for the given file payment consent.\n\nFor the format of the CSV file, check the request body details.\n\n:::note\nDownload an [example CSV file](https://assets.revolut.com/api-docs/oba-api/file-payment-file.csv).\n:::\n\nFor more information, see [Tutorials: Create a file payment](https://developer.revolut.com/docs/guides/build-banking-apps/tutorials/create-a-file-payment#5-upload-the-csv-file)."
        },
        {
          "info": {
            "name": "Create a file payment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://b2b.revolut.com/api/1.0/file-payments",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "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": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a file payment.\n\n:::note\nAs is defined in the Open Banking Specifications, the `/Data/Initiation` and the `/Data/Risk` sections of the request must be an exact match for the related consent passed in `ConsentId`.\n:::\n\nFor more information, see [Tutorials: Create a file payment](https://developer.revolut.com/docs/guides/build-banking-apps/tutorials/create-a-file-payment)."
        },
        {
          "info": {
            "name": "Retrieve a file payment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://b2b.revolut.com/api/1.0/file-payments/:FilePaymentId",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "FilePaymentId",
                "value": "",
                "type": "path",
                "description": "The ID of the file payment."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get the state of a file payment.\n\nFor more information, see [Tutorials: Create a file payment](https://developer.revolut.com/docs/guides/build-banking-apps/tutorials/create-a-file-payment#10-check-the-file-payment-status)."
        },
        {
          "info": {
            "name": "Retrieve all payments of a file payment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://b2b.revolut.com/api/1.0/file-payments/:FilePaymentId/report-file",
            "headers": [
              {
                "name": "x-fapi-financial-id",
                "value": ""
              },
              {
                "name": "x-fapi-customer-last-logged-time",
                "value": ""
              },
              {
                "name": "x-fapi-customer-ip-address",
                "value": ""
              },
              {
                "name": "x-fapi-interaction-id",
                "value": ""
              },
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "x-customer-user-agent",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "FilePaymentId",
                "value": "",
                "type": "path",
                "description": "The ID of the file payment."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get the state of all individual payments for the given file payment.\n\n:::note\nCurrently only the `JSON` format is supported.\n:::\n\nFor more information, see [Tutorials: Create a file payment](https://developer.revolut.com/docs/guides/build-banking-apps/tutorials/create-a-file-payment#11-check-the-status-of-all-payments).\n"
        }
      ]
    }
  ],
  "bundled": true
}