VRPlatformVRPlatform
Accounts

/accounts/{id}/banking-init

Init an account for banking

POST
/accounts/{id}/banking-init
X-API-Key<token>

API key provided in dashboard

In: header

Path Parameters

id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

startingBalanceDate?string|null
startingBalanceAmount?number|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.vrplatform.app/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/banking-init" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "archivedRecords": 0,
  "unArchivedRecords": 0,
  "transaction": {
    "description": "string",
    "status": "active",
    "uniqueRef": "string",
    "isOpeningBalance": true,
    "type": "deposit",
    "date": "string",
    "lines": [
      {
        "uniqueRef": "string",
        "description": "string",
        "assignment": "accountsPayable",
        "amount": -9007199254740991,
        "ownerStatementId": "eccddabd-554b-48ab-a66d-28a57ff66fa9",
        "matchReservationConfirmationCode": "string",
        "matchReservationStripeGuestRef": "string",
        "matchLineTypeClassification": "string",
        "id": "string",
        "issues": [
          {
            "code": "unassignedAccount",
            "severity": "error",
            "context": {
              "lineType": "string"
            }
          }
        ],
        "recurringTemplate": {
          "id": "string"
        },
        "total": 0,
        "listing": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "uniqueRef": "string",
          "shortRef": "string"
        },
        "reservation": {
          "id": "string",
          "shortRef": "string",
          "confirmationCode": "string",
          "uniqueRef": "string",
          "status": "booked",
          "checkIn": "string",
          "checkOut": "string"
        },
        "account": {
          "id": "string",
          "name": "string",
          "uniqueRef": "string",
          "status": "active"
        },
        "party": "owners",
        "contact": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "firstName": "string",
          "uniqueRef": "string",
          "shortRef": "string"
        },
        "matchStatus": "string",
        "appliedAmount": {
          "taxBehavior": "excluded",
          "taxRate": {
            "id": "string",
            "name": "string",
            "basisPoints": 100000
          }
        },
        "markup": {
          "amount": -9007199254740991,
          "taxBehavior": "excluded",
          "taxRate": {
            "id": "string",
            "name": "string",
            "basisPoints": 100000
          }
        },
        "lock": {
          "status": "locked",
          "booksClosed": {
            "date": "string"
          },
          "ownerStatement": {
            "ids": [
              "497f6eca-6276-4993-bfeb-53cbbbba6f08"
            ]
          },
          "reconciled": {
            "bankRecordIds": [
              "497f6eca-6276-4993-bfeb-53cbbbba6f08"
            ]
          },
          "statementPeriod": {
            "hits": [
              {
                "listingId": "8c73d933-f7ed-437e-9da1-caac95adc1ae",
                "txnAt": "string",
                "openFrom": "string"
              }
            ]
          }
        }
      }
    ],
    "attachmentIds": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "recurringTemplateId": "d73afa31-bf14-4baf-aede-be5f4b4ff489",
    "matchBankAccountLast4": "string",
    "id": "string",
    "shortRef": "string",
    "lock": {
      "status": "locked",
      "booksClosed": {
        "date": "string"
      },
      "ownerStatement": {
        "ids": [
          "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ]
      },
      "reconciled": {
        "bankRecordIds": [
          "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ]
      },
      "statementPeriod": {
        "hits": [
          {
            "listingId": "8c73d933-f7ed-437e-9da1-caac95adc1ae",
            "txnAt": "string",
            "openFrom": "string"
          }
        ]
      }
    },
    "issues": [
      {
        "code": "line_unassignedAccount",
        "severity": "error",
        "context": {}
      }
    ],
    "currency": "string",
    "amount": -9007199254740991,
    "recurringTemplate": {
      "id": "string"
    },
    "attachments": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
        "createdAt": "string",
        "filename": "string",
        "extension": "string",
        "contentType": "string",
        "byteSize": -9007199254740991,
        "isOwnerAccessible": true
      }
    ],
    "account": {
      "id": "string",
      "name": "string",
      "uniqueRef": "string",
      "status": "active"
    },
    "payment": {
      "bankRecordIds": [
        "string"
      ],
      "status": "unpaid",
      "lock": {
        "status": "locked",
        "booksClosed": {
          "date": "string"
        },
        "ownerStatement": {
          "ids": [
            "497f6eca-6276-4993-bfeb-53cbbbba6f08"
          ]
        },
        "reconciled": {
          "bankRecordIds": [
            "497f6eca-6276-4993-bfeb-53cbbbba6f08"
          ]
        },
        "statementPeriod": {
          "hits": [
            {
              "listingId": "8c73d933-f7ed-437e-9da1-caac95adc1ae",
              "txnAt": "string",
              "openFrom": "string"
            }
          ]
        }
      },
      "date": "string"
    },
    "connection": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "status": "active",
      "uniqueRef": "string",
      "appId": "string"
    },
    "contact": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "firstName": "string",
      "uniqueRef": "string",
      "shortRef": "string"
    },
    "source": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "type": "string",
      "status": "active",
      "appId": "string",
      "appIcon": "string"
    },
    "matchStatus": "string",
    "matchedByBankRule": true
  },
  "bankRecord": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "uniqueRef": "string",
    "date": "string",
    "status": "active",
    "description": "string",
    "bankAccountId": "string",
    "accountId": "string",
    "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d",
    "source": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "type": "string",
      "status": "active",
      "appId": "string",
      "appIcon": "string"
    },
    "type": "transaction",
    "amount": 0,
    "balance": {
      "current": 0,
      "correction": 0
    },
    "reconciliation": {
      "status": "unpaid",
      "transactions": [
        {
          "id": "string",
          "date": "string",
          "description": "string",
          "type": "string",
          "amount": 0
        }
      ]
    }
  }
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}
{
  "code": "string",
  "message": "string",
  "issues": [
    {
      "message": "string"
    }
  ],
  "context": null
}