{
  "opencollection": "1.0.0",
  "info": {
    "name": "Core accepted countries Account Documents API",
    "version": "3.0.39"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Account Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v3/accounts/:account_token/documents",
            "params": [
              {
                "name": "account_token",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the credit account for which you want to get documents.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing credit account tokens."
              }
            ]
          },
          "docs": "Retrieve an array of documents on a credit account."
        },
        {
          "info": {
            "name": "Retrieve document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v3/accounts/:account_token/documents/:document_type",
            "params": [
              {
                "name": "account_token",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the credit account for which to retrieve a specific type of document.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing credit account tokens."
              },
              {
                "name": "document_type",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a specific type of document on a credit account."
        },
        {
          "info": {
            "name": "Retrieve document history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "/v3/accounts/:account_token/documents/:document_type/history",
            "params": [
              {
                "name": "account_token",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the credit account for which to get document history.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing credit account tokens."
              },
              {
                "name": "document_type",
                "value": "",
                "type": "path"
              },
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Number of account document resources to retrieve."
              },
              {
                "name": "start_index",
                "value": "",
                "type": "query",
                "description": "Sort order index of the first resource in the returned array."
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "Field on which to sort.\nPrefix the field name with a hyphen (`-`) to sort in descending order.\nOmit the hyphen to sort in ascending order.\n\n*NOTE:*\nYou must sort using system field names such as `effectiveDate`, and not by the field names appearing in response bodies such as `effective_date`."
              }
            ]
          },
          "docs": "Retrieve the history of a specific type of document on a credit account."
        }
      ]
    }
  ],
  "bundled": true
}