POST api/UpdateCustomer

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
ABN

string

None.

Addresses

Collection of Address

None.

Agent

integer

None.

BankInfos

Collection of BankInfo

None.

Documents

Collection of Document

None.

Birthday

date

None.

CKey

string

None.

Communications

Collection of Communication

None.

Directors

Collection of Customer

None.

FirstName

string

None.

Identities

Collection of Identity

None.

Notes

Collection of Note

None.

IsPerson

boolean

None.

LastName

string

None.

MiddleName

string

None.

Name

string

None.

Occupation

string

None.

RiskRate

string

None.

Transactions

Collection of CustomerAccount

None.

CustomerId

string

None.

SystemId

string

None.

CommunicationString

string

None.

IdentifyString

string

None.

IsUser

boolean

None.

Password

string

None.

Sex

string

None.

Risk

string

None.

ParentId

integer

None.

Created

date

None.

CreatedBy

integer

None.

CreatedComboId

string

None.

Guid

globally unique identifier

None.

Id

integer

None.

IsDirty

boolean

None.

Modified

date

None.

ModifiedBy

integer

None.

ModifiedComboId

string

None.

TenantId

integer

None.

Deleted

boolean

None.

Action

EntityAction

None.

Message

string

None.

Error

ServiceError

None.

Request Formats

application/json, text/json

Sample:
{
  "ABN": "sample string 1",
  "Addresses": [
    {
      "$id": "2",
      "Name": "Address",
      "Building": "sample string 1",
      "Street": "sample string 2",
      "City": "sample string 3",
      "Region": "sample string 4",
      "PostCode": "sample string 5",
      "Country": "sample string 6",
      "FullAddress": "sample string 7",
      "CustormerId": 9,
      "Created": "2020-11-24T21:12:24.9786248+00:00",
      "CreatedBy": 11,
      "CreatedComboId": "sample string 12",
      "Guid": "7197edda-de15-4458-8826-1551c27d0cf3",
      "Id": 14,
      "IsDirty": true,
      "Loaded": true,
      "Modified": "2020-11-24T21:12:24.9786248+00:00",
      "ModifiedBy": 18,
      "ModifiedComboId": "sample string 19",
      "TenantId": 20,
      "Deleted": true,
      "Action": 0,
      "Message": "sample string 22",
      "Error": {
        "$id": "3",
        "Message": "sample string 1",
        "ECode": 2,
        "Source": "sample string 3",
        "DateTime": "2020-11-24T21:12:24.9786248+00:00",
        "Operator": 5,
        "TenantId": 6
      }
    },
    {
      "$ref": "2"
    }
  ],
  "Agent": 2,
  "BankInfos": [
    {
      "$id": "4",
      "TenantId": 1,
      "Name": "BankInfo",
      "BSB": "sample string 2",
      "BankName": "sample string 3",
      "AccountName": "sample string 4",
      "AccountNumber": "sample string 5",
      "Branch": "sample string 6",
      "Currency": "sample string 7",
      "Note": "sample string 8",
      "DailyLimit": 9.1,
      "Active": true,
      "Balance": 11.1,
      "ErrorMessage": "sample string 12",
      "LimitLeft": 13.1,
      "CustormerId": 14,
      "BeneficiaryAddress": {
        "$ref": "2"
      },
      "AddressString": "sample string 15",
      "Created": "2020-11-24T21:12:24.9786248+00:00",
      "CreatedBy": 17,
      "CreatedComboId": "sample string 18",
      "Guid": "e0b0266c-c7e1-440b-a4b0-3d687e39ac98",
      "Id": 20,
      "IsDirty": true,
      "Loaded": true,
      "Modified": "2020-11-24T21:12:24.9786248+00:00",
      "ModifiedBy": 24,
      "ModifiedComboId": "sample string 25",
      "Deleted": true,
      "Action": 0,
      "Message": "sample string 27",
      "Error": {
        "$ref": "3"
      }
    },
    {
      "$ref": "4"
    }
  ],
  "Documents": [
    {
      "$id": "5",
      "Id": 1,
      "FileName": "sample string 2",
      "CreatedBy": 3,
      "Created": "sample string 4",
      "Extension": "sample string 5",
      "FullPath": "sample string 6",
      "CustomerId": 7,
      "TenantId": 8,
      "Size": "sample string 9"
    },
    {
      "$ref": "5"
    }
  ],
  "Birthday": "2020-11-24T21:12:24.9786248+00:00",
  "CKey": "sample string 4",
  "Communications": [
    {
      "$id": "6",
      "Name": "Communication",
      "Content": "sample string 2",
      "Description": "sample string 3",
      "Type": "FixPhone",
      "CustormerId": 6,
      "Created": "2020-11-24T21:12:24.9786248+00:00",
      "CreatedBy": 8,
      "CreatedComboId": "sample string 9",
      "Guid": "b36a9e26-39d0-4967-9e3e-b68b1e40766f",
      "Id": 11,
      "IsDirty": true,
      "Loaded": true,
      "Modified": "2020-11-24T21:12:24.9786248+00:00",
      "ModifiedBy": 15,
      "ModifiedComboId": "sample string 16",
      "TenantId": 17,
      "Deleted": true,
      "Action": 0,
      "Message": "sample string 19",
      "Error": {
        "$ref": "3"
      }
    },
    {
      "$ref": "6"
    }
  ],
  "Directors": [
    {
      "$ref": "1"
    },
    {
      "$ref": "1"
    }
  ],
  "FirstName": "sample string 5",
  "Identities": [
    {
      "$id": "7",
      "Name": "Identity",
      "Type": "Passport",
      "Number": "sample string 2",
      "HolderName": "sample string 3",
      "IssuedDate": "2020-11-24T21:12:24.9786248+00:00",
      "Expired": "2020-11-24T21:12:24.9786248+00:00",
      "IssuedBy": "sample string 4",
      "CustormerId": 6,
      "Created": "2020-11-24T21:12:24.9786248+00:00",
      "CreatedBy": 8,
      "CreatedComboId": "sample string 9",
      "Guid": "91e360a6-69fa-4675-81c5-44c29f8d0d89",
      "Id": 11,
      "IsDirty": true,
      "Loaded": true,
      "Modified": "2020-11-24T21:12:24.9786248+00:00",
      "ModifiedBy": 15,
      "ModifiedComboId": "sample string 16",
      "TenantId": 17,
      "Deleted": true,
      "Action": 0,
      "Message": "sample string 19",
      "Error": {
        "$ref": "3"
      }
    },
    {
      "$ref": "7"
    }
  ],
  "Notes": [
    {
      "$id": "8",
      "Name": "Note",
      "TextComment": "sample string 1",
      "CustormerId": 2,
      "Created": "2020-11-24T21:12:24.9786248+00:00",
      "CreatedBy": 4,
      "CreatedComboId": "sample string 5",
      "Guid": "a5d79d1f-1922-48d6-bf77-dd4d861bd8d2",
      "Id": 7,
      "IsDirty": true,
      "Loaded": true,
      "Modified": "2020-11-24T21:12:24.9786248+00:00",
      "ModifiedBy": 11,
      "ModifiedComboId": "sample string 12",
      "TenantId": 13,
      "Deleted": true,
      "Action": 0,
      "Message": "sample string 15",
      "Error": {
        "$ref": "3"
      }
    },
    {
      "$ref": "8"
    }
  ],
  "IsPerson": true,
  "LastName": "sample string 7",
  "MiddleName": "sample string 8",
  "Name": "Customer",
  "Occupation": "sample string 9",
  "RiskRate": "sample string 10",
  "Transactions": [
    {
      "$id": "9",
      "Name": "CustomerAccount",
      "PaymentType": "sample string 3",
      "Currency": "sample string 4",
      "Balance": 5.1,
      "Amount": 6.1,
      "Created": "2020-11-24T21:12:24.9786248+00:00",
      "CreatedBy": 8,
      "CreatedComboId": "sample string 9",
      "Guid": "33ee87d8-cfd2-4a96-ad93-5299f3264494",
      "Id": 11,
      "IsDirty": true,
      "Loaded": true,
      "Modified": "2020-11-24T21:12:24.9786248+00:00",
      "ModifiedBy": 15,
      "ModifiedComboId": "sample string 16",
      "TenantId": 17,
      "Deleted": true,
      "Action": 0,
      "Message": "sample string 19",
      "Error": {
        "$ref": "3"
      }
    },
    {
      "$ref": "9"
    }
  ],
  "CustomerId": "sample string 11",
  "SystemId": "sample string 12",
  "CommunicationString": "sample string 13",
  "IdentifyString": "sample string 14",
  "IsUser": true,
  "Password": "sample string 16",
  "Sex": "sample string 17",
  "Risk": "sample string 18",
  "ParentId": 19,
  "Created": "2020-11-24T21:12:24.9786248+00:00",
  "CreatedBy": 21,
  "CreatedComboId": "sample string 22",
  "Guid": "9db08515-e7d9-4766-9c93-a23221e237c1",
  "Id": 24,
  "IsDirty": true,
  "Loaded": true,
  "Modified": "2020-11-24T21:12:24.9786248+00:00",
  "ModifiedBy": 28,
  "ModifiedComboId": "sample string 29",
  "TenantId": 30,
  "Deleted": true,
  "Action": 0,
  "Message": "sample string 32",
  "Error": {
    "$ref": "3"
  }
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://IMBK/query/2.0">
  <Action>None</Action>
  <Created>2020-11-24T21:12:24.9786248+00:00</Created>
  <CreatedBy>21</CreatedBy>
  <CreatedComboId>sample string 22</CreatedComboId>
  <Deleted>true</Deleted>
  <Error z:Id="i2">
    <DateTime>2020-11-24T21:12:24.9786248+00:00</DateTime>
    <ECode>2</ECode>
    <Message>sample string 1</Message>
    <Operator>5</Operator>
    <Source>sample string 3</Source>
    <TenantId>6</TenantId>
  </Error>
  <Guid>9db08515-e7d9-4766-9c93-a23221e237c1</Guid>
  <Id>24</Id>
  <IsDirty>true</IsDirty>
  <Message>sample string 32</Message>
  <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
  <ModifiedBy>28</ModifiedBy>
  <ModifiedComboId>sample string 29</ModifiedComboId>
  <Name>Customer</Name>
  <TenantId>30</TenantId>
  <ABN>sample string 1</ABN>
  <Addresses>
    <Address z:Id="i3">
      <Action>None</Action>
      <Created>2020-11-24T21:12:24.9786248+00:00</Created>
      <CreatedBy>11</CreatedBy>
      <CreatedComboId>sample string 12</CreatedComboId>
      <Deleted>true</Deleted>
      <Error z:Ref="i2" />
      <Guid>7197edda-de15-4458-8826-1551c27d0cf3</Guid>
      <Id>14</Id>
      <IsDirty>true</IsDirty>
      <Message>sample string 22</Message>
      <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
      <ModifiedBy>18</ModifiedBy>
      <ModifiedComboId>sample string 19</ModifiedComboId>
      <Name>Address</Name>
      <TenantId>20</TenantId>
      <Building>sample string 1</Building>
      <City>sample string 3</City>
      <Country>sample string 6</Country>
      <CustormerId>9</CustormerId>
      <FullAddress>sample string 7</FullAddress>
      <PostCode>sample string 5</PostCode>
      <Region>sample string 4</Region>
      <Street>sample string 2</Street>
    </Address>
    <Address z:Ref="i3" />
  </Addresses>
  <Agent>2</Agent>
  <BankInfos xmlns:d2p1="http://schemas.datacontract.org/2004/07/IMBK.Common.Data">
    <d2p1:BankInfo z:Id="i4">
      <Action>None</Action>
      <Created>2020-11-24T21:12:24.9786248+00:00</Created>
      <CreatedBy>17</CreatedBy>
      <CreatedComboId>sample string 18</CreatedComboId>
      <Deleted>true</Deleted>
      <Error z:Ref="i2" />
      <Guid>e0b0266c-c7e1-440b-a4b0-3d687e39ac98</Guid>
      <Id>20</Id>
      <IsDirty>true</IsDirty>
      <Message>sample string 27</Message>
      <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
      <ModifiedBy>24</ModifiedBy>
      <ModifiedComboId>sample string 25</ModifiedComboId>
      <Name>BankInfo</Name>
      <TenantId>1</TenantId>
      <d2p1:AccountName>sample string 4</d2p1:AccountName>
      <d2p1:AccountNumber>sample string 5</d2p1:AccountNumber>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:BSB>sample string 2</d2p1:BSB>
      <d2p1:Balance>11.1</d2p1:Balance>
      <d2p1:BankName>sample string 3</d2p1:BankName>
      <d2p1:BeneficiaryAddress z:Ref="i3" />
      <d2p1:Branch>sample string 6</d2p1:Branch>
      <d2p1:Currency>sample string 7</d2p1:Currency>
      <d2p1:CustormerId>14</d2p1:CustormerId>
      <d2p1:DailyLimit>9.1</d2p1:DailyLimit>
      <d2p1:ErrorMessage>sample string 12</d2p1:ErrorMessage>
      <d2p1:LimitLeft>13.1</d2p1:LimitLeft>
      <d2p1:Note>sample string 8</d2p1:Note>
    </d2p1:BankInfo>
    <d2p1:BankInfo z:Ref="i4" />
  </BankInfos>
  <Birthday>2020-11-24T21:12:24.9786248+00:00</Birthday>
  <CKey>sample string 4</CKey>
  <CommunicationString>sample string 13</CommunicationString>
  <Communications>
    <Communication z:Id="i5">
      <Action>None</Action>
      <Created>2020-11-24T21:12:24.9786248+00:00</Created>
      <CreatedBy>8</CreatedBy>
      <CreatedComboId>sample string 9</CreatedComboId>
      <Deleted>true</Deleted>
      <Error z:Ref="i2" />
      <Guid>b36a9e26-39d0-4967-9e3e-b68b1e40766f</Guid>
      <Id>11</Id>
      <IsDirty>true</IsDirty>
      <Message>sample string 19</Message>
      <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
      <ModifiedBy>15</ModifiedBy>
      <ModifiedComboId>sample string 16</ModifiedComboId>
      <Name>Communication</Name>
      <TenantId>17</TenantId>
      <Content>sample string 2</Content>
      <CustormerId>6</CustormerId>
      <Description>sample string 3</Description>
      <Type>FixPhone</Type>
    </Communication>
    <Communication z:Ref="i5" />
  </Communications>
  <CustomerId>sample string 11</CustomerId>
  <Directors>
    <Customer z:Ref="i1" />
    <Customer z:Ref="i1" />
  </Directors>
  <Documents>
    <Document z:Id="i6">
      <Created>sample string 4</Created>
      <CreatedBy>3</CreatedBy>
      <CustomerId>7</CustomerId>
      <Extension>sample string 5</Extension>
      <FileName>sample string 2</FileName>
      <FullPath>sample string 6</FullPath>
      <Id>1</Id>
      <Size>sample string 9</Size>
      <TenantId>8</TenantId>
    </Document>
    <Document z:Ref="i6" />
  </Documents>
  <FirstName>sample string 5</FirstName>
  <IdentifyString>sample string 14</IdentifyString>
  <Identities>
    <Identity z:Id="i7">
      <Action>None</Action>
      <Created>2020-11-24T21:12:24.9786248+00:00</Created>
      <CreatedBy>8</CreatedBy>
      <CreatedComboId>sample string 9</CreatedComboId>
      <Deleted>true</Deleted>
      <Error z:Ref="i2" />
      <Guid>91e360a6-69fa-4675-81c5-44c29f8d0d89</Guid>
      <Id>11</Id>
      <IsDirty>true</IsDirty>
      <Message>sample string 19</Message>
      <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
      <ModifiedBy>15</ModifiedBy>
      <ModifiedComboId>sample string 16</ModifiedComboId>
      <Name>Identity</Name>
      <TenantId>17</TenantId>
      <CustormerId>6</CustormerId>
      <Expired>2020-11-24T21:12:24.9786248+00:00</Expired>
      <HolderName>sample string 3</HolderName>
      <IssuedBy>sample string 4</IssuedBy>
      <IssuedDate>2020-11-24T21:12:24.9786248+00:00</IssuedDate>
      <Number>sample string 2</Number>
      <Type>Passport</Type>
    </Identity>
    <Identity z:Ref="i7" />
  </Identities>
  <IsPerson>true</IsPerson>
  <IsUser>true</IsUser>
  <LastName>sample string 7</LastName>
  <MiddleName>sample string 8</MiddleName>
  <Notes>
    <Note z:Id="i8">
      <Action>None</Action>
      <Created>2020-11-24T21:12:24.9786248+00:00</Created>
      <CreatedBy>4</CreatedBy>
      <CreatedComboId>sample string 5</CreatedComboId>
      <Deleted>true</Deleted>
      <Error z:Ref="i2" />
      <Guid>a5d79d1f-1922-48d6-bf77-dd4d861bd8d2</Guid>
      <Id>7</Id>
      <IsDirty>true</IsDirty>
      <Message>sample string 15</Message>
      <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
      <ModifiedBy>11</ModifiedBy>
      <ModifiedComboId>sample string 12</ModifiedComboId>
      <Name>Note</Name>
      <TenantId>13</TenantId>
      <CustormerId>2</CustormerId>
      <TextComment>sample string 1</TextComment>
    </Note>
    <Note z:Ref="i8" />
  </Notes>
  <Occupation>sample string 9</Occupation>
  <ParentId>19</ParentId>
  <Password>sample string 16</Password>
  <Risk>sample string 18</Risk>
  <RiskRate>sample string 10</RiskRate>
  <Sex>sample string 17</Sex>
  <SystemId>sample string 12</SystemId>
  <Transactions>
    <CustomerAccount z:Id="i9">
      <Action>None</Action>
      <Created>2020-11-24T21:12:24.9786248+00:00</Created>
      <CreatedBy>8</CreatedBy>
      <CreatedComboId>sample string 9</CreatedComboId>
      <Deleted>true</Deleted>
      <Error z:Ref="i2" />
      <Guid>33ee87d8-cfd2-4a96-ad93-5299f3264494</Guid>
      <Id>11</Id>
      <IsDirty>true</IsDirty>
      <Message>sample string 19</Message>
      <Modified>2020-11-24T21:12:24.9786248+00:00</Modified>
      <ModifiedBy>15</ModifiedBy>
      <ModifiedComboId>sample string 16</ModifiedComboId>
      <Name>CustomerAccount</Name>
      <TenantId>17</TenantId>
      <Amount>6.1</Amount>
      <Balance>5.1</Balance>
      <Currency>sample string 4</Currency>
      <PaymentType>sample string 3</PaymentType>
    </CustomerAccount>
    <CustomerAccount z:Ref="i9" />
  </Transactions>
</Customer>

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 'Customer'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>