{
  "opencollection": "1.0.0",
  "info": {
    "name": "Defacto Accounting Testing API",
    "version": "v1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Testing",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "/hello",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getdefacto.com/hello",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Make a first call to this endpoint to test your connection to Defacto API with your API Key"
        },
        {
          "info": {
            "name": "/sandbox/business-generator",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getdefacto.com/sandbox/business-generator",
            "params": [
              {
                "name": "country",
                "value": "",
                "type": "query"
              },
              {
                "name": "is_borrower",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "\nGenerate a fake business for you to use in your test.\nImportant, this endpoint does not create the business but simply return the payload.\nCall `/borrowers` to register this business and generate loan for it\nWarning: these invoices and their IBANs will not work in production.\n"
        },
        {
          "info": {
            "name": "/sandbox/iban-generator",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getdefacto.com/sandbox/iban-generator",
            "params": [
              {
                "name": "country",
                "value": "",
                "type": "query"
              },
              {
                "name": "scenario",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "\nGenerate a new IBAN that will produce a given scenario on the sandbox, for example a rejected loan.\nEach IBAN can be used as the account of a single counterparty or borrower (a buyer or seller of yours).\nSo, if you want to test the API for several of your counterparties, you will have to generate several of them.\nThe BIC associated to these IBANs is FK2FACTO.\nAlso, if you want to test another scenario on a given business, create a new IBAN and use it in the <code>to_account</code> field of the "
        },
        {
          "info": {
            "name": "/sandbox/business-eligible",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getdefacto.com/sandbox/business-eligible",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "\nThis endpoint enables you to configure the eligibility of a business.\nPass NOT_ELIGIBLE to make a business non-eligible.\nThen, you'll be able to test how the Defacto API behaves when requesting a loan for a non-eligible business.\nYou can test multiple scenarios:\n(1) when the business is the borrower or\n(2) when the business is on the invoice to finance but is not the borrower.\n"
        },
        {
          "info": {
            "name": "/sandbox/invoice-generator",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getdefacto.com/sandbox/invoice-generator",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "\n!!! The documentation website is not able to display the full response of this endpoint. The use of the curl command is recommended. !!!\n\nGenerate a fake invoice that will produce a given scenario on the sandbox, for example a rejected loan.\nThe generation will not add the invoice to the list of your invoices. You must do this via API.\nTo achieve this, you can copy the invoice_creation_payload into the payload of the invoice creation API.\nIf you want to test another scenario on a given business"
        }
      ]
    }
  ],
  "bundled": true
}