{
  "opencollection": "1.0.0",
  "info": {
    "name": "Puzzle Api Accounts API",
    "version": "0"
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Financial Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/accounts",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ]
          },
          "docs": "Retrieves a list of all of the company's financial accounts.\n\nRequired scope: read:company"
        },
        {
          "info": {
            "name": "Create Financial Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/accounts",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a financial account for the specified Puzzle company.\n\nThe created account will have a status of Syncing until data is added to it, then it will be Ready. Please allow a couple of minutes for this status to update after the data has been added to the account.\n\nThe type of data that can be added to an account depends on the account type.\n\nRequired scope: write:account"
        },
        {
          "info": {
            "name": "Get Financial Account Balances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/accounts/balances",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "dates",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns the balances on a company's financial accounts on the provided dates. A balance is the balance on the account at the start of the day provided.\n\nIf we have an official institution account balance for that date, we will use the institution's provided account balance. If the institution has not provided an account balance for the requested date, we will calculate the balance by summing transactions in the account that have occurred between the target data and the closest balance we have av"
        },
        {
          "info": {
            "name": "Create Account Balance",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/accounts/balances",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a balance for a financial account.\n\nNote that Puzzle stores all account balances trending towards positive, regardless of account type. Additional details can be found here.\n\nRequired scope: write:account_balance"
        },
        {
          "info": {
            "name": "Get Ledger Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/ledgerAccounts/:ledgerAccountId",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "ledgerAccountId",
                "value": "",
                "type": "path",
                "description": "The ledger account ID"
              },
              {
                "name": "basis",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieves a specific account in the company's chart of accounts.\n\nBy default, the balances on the account are calculated using cash basis.\n\nRequired scope: read:company"
        }
      ]
    }
  ],
  "bundled": true
}