{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mono Account Information Direct Debit API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "mono-sec-key",
      "value": "{{mono-sec-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Direct Debit",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List customers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.withmono.com/v2/customers",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Lists customers created on the account."
        },
        {
          "info": {
            "name": "Create a customer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.withmono.com/v2/customers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates an individual or business customer record used for direct-debit mandates."
        },
        {
          "info": {
            "name": "Initiate mandate authorisation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.withmono.com/v2/payments/initiate-mandate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sets up a fixed or variable direct-debit mandate on a customer's bank account and returns a hosted authorisation link. Each mandate setup is a one-time authorization process."
        },
        {
          "info": {
            "name": "Mandate balance inquiry",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.withmono.com/v3/payments/mandates/:id/balance",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The direct-debit mandate id."
              }
            ]
          },
          "docs": "Confirmation-of-funds check against a mandated account before initiating a debit."
        },
        {
          "info": {
            "name": "Debit a mandate",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.withmono.com/v3/payments/mandates/:id/debit",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The direct-debit mandate id."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Debits a bank account that already has an approved direct-debit mandate."
        }
      ]
    }
  ],
  "bundled": true
}