PUT v1/QuickBooks/TrustAccountLinks

Upserts a list of linked locations and trust accounts for QuickBooks

Request Information

URI Parameters

None.

Body Parameters

Linked accounts

Collection of QBTrustAccountLinkDTO
NameDescriptionTypeAdditional information
AccountId

string

None.

LocationId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "AccountId": "sample string 1",
    "LocationId": 2
  },
  {
    "AccountId": "sample string 1",
    "LocationId": 2
  }
]

application/xml, text/xml

Sample:
<ArrayOfQBTrustAccountLinkDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.QuickBooks">
  <QBTrustAccountLinkDTO>
    <AccountId>sample string 1</AccountId>
    <LocationId>2</LocationId>
  </QBTrustAccountLinkDTO>
  <QBTrustAccountLinkDTO>
    <AccountId>sample string 1</AccountId>
    <LocationId>2</LocationId>
  </QBTrustAccountLinkDTO>
</ArrayOfQBTrustAccountLinkDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ICollection`1'.

Response Information

Resource Description

Collection of upserted linked locations and trust accounts for QuickBooks

Collection of ActionResultDTOOfQBTrustAccountLinkDTO
NameDescriptionTypeAdditional information
Result

QBTrustAccountLinkDTO

None.

CreatedBy

string

None.

EntityID

integer

None.

RowSource

string

None.

PolicyID

integer

None.

IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Result": {
      "AccountId": "sample string 1",
      "LocationId": 2
    },
    "CreatedBy": "sample string 1",
    "EntityID": 2,
    "RowSource": "sample string 3",
    "PolicyID": 4,
    "IsSuccess": true,
    "ErrorCode": "sample string 6",
    "ErrorMessage": "sample string 7",
    "InfoMessage": "sample string 8"
  },
  {
    "Result": {
      "AccountId": "sample string 1",
      "LocationId": 2
    },
    "CreatedBy": "sample string 1",
    "EntityID": 2,
    "RowSource": "sample string 3",
    "PolicyID": 4,
    "IsSuccess": true,
    "ErrorCode": "sample string 6",
    "ErrorMessage": "sample string 7",
    "InfoMessage": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfActionResultOfQBTrustAccountLinkDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ActionResultOfQBTrustAccountLinkDTO>
    <ErrorCode>sample string 6</ErrorCode>
    <ErrorMessage>sample string 7</ErrorMessage>
    <InfoMessage>sample string 8</InfoMessage>
    <IsSuccess>true</IsSuccess>
    <CreatedBy>sample string 1</CreatedBy>
    <EntityID>2</EntityID>
    <PolicyID>4</PolicyID>
    <Result xmlns:d3p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.QuickBooks">
      <d3p1:AccountId>sample string 1</d3p1:AccountId>
      <d3p1:LocationId>2</d3p1:LocationId>
    </Result>
    <RowSource>sample string 3</RowSource>
  </ActionResultOfQBTrustAccountLinkDTO>
  <ActionResultOfQBTrustAccountLinkDTO>
    <ErrorCode>sample string 6</ErrorCode>
    <ErrorMessage>sample string 7</ErrorMessage>
    <InfoMessage>sample string 8</InfoMessage>
    <IsSuccess>true</IsSuccess>
    <CreatedBy>sample string 1</CreatedBy>
    <EntityID>2</EntityID>
    <PolicyID>4</PolicyID>
    <Result xmlns:d3p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.QuickBooks">
      <d3p1:AccountId>sample string 1</d3p1:AccountId>
      <d3p1:LocationId>2</d3p1:LocationId>
    </Result>
    <RowSource>sample string 3</RowSource>
  </ActionResultOfQBTrustAccountLinkDTO>
</ArrayOfActionResultOfQBTrustAccountLinkDTO>