Accounts

An account or collection of accounts can belong to households or people. This resource does not contain the 'delete' method.

Notes ::

  • By passing in the content-type of application/help in the accept header or using the {format} parameter help from https://demo.fellowshiponeapi.com/giving/v1/accounts, the API will return an html representation of the help documents for this resource (authentication not required)

Authentication

This method requires Authentication

Resource Structure

This resource conforms to the following XSD

Methods

Accounts ::

  • search [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search?peopleID=1635014
  • search [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search?householdID=3180561
  • search [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search?peopleID=1635014&householdID=3180561
  • show [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}
  • new [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/new
  • edit [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}/Edit
  • create [POST] https://demo.fellowshiponeapi.com/giving/v1/accounts
  • update [PUT] [POST(Low REST)] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}

Method: search [GET]

The search method will return a list of accounts by passing either peopleID or householdID or both.

Notes ::

  • By passing in the content-type of application/xsd in the accept header or using the {format} parameter xsd the API will return an xsd for a single version of this resource (authentication not required)

Content-types ::

  • application/json
  • application/xml
  • application/xsd
  • application/help

Format ::

  • json
  • xml
  • xsd
  • help

Parameters ::

  • {format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search.{format}?peopleID=1635014
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search?format={format}&peopleID=1635014
    • [Header] Accept : {Content-type}

Sample Response ::

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search?peopleID=1635014

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:18:53 GMT
Content-Length: 2888

<?xml version="1.0" encoding="utf-8"?>
<results count="2" pageNumber="1" totalRecords="2" additionalPages="0">
  <account json:Array="true" id="4414452" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452" oldID="">
    <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
    <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
    <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
      <name>Checking</name>
    </accountType>
    <accountNumber>1234567890</accountNumber>
    <routingNumber>111849311</routingNumber>
    <isSharedAccount>true</isSharedAccount>
    <createdDate>2010-05-03T11:14:10</createdDate>
    <createdByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
    <lastUpdatedDate>2010-05-27T11:41:23</lastUpdatedDate>
    <lastUpdatedByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />  
  </account>
  <account json:Array="true" id="4414453" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/4414453" oldID="">
    <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
    <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
    <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
      <name>Checking</name>
    </accountType>
    <accountNumber>12345678901</accountNumber>
    <routingNumber>111849311</routingNumber>
    <isSharedAccount>true</isSharedAccount>
    <createdDate>2010-05-03T11:14:10</createdDate>
    <createdByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
    <lastUpdatedDate>2010-05-27T11:41:23</lastUpdatedDate>
    <lastUpdatedByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
  </account>
</results>

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/search.json?peopleID=1635014

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:21:19 GMT
Content-Length: 2346

{
"results": {
    "@count": "4",
    "@pageNumber": "1",
    "@totalRecords": "4",
    "@additionalPages": "0",
    "account": [
        {
            "@array": "true",
            "@id": "4414452",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452",
            "@oldID": "",
            "household": {
                "@id": "1551440",
                "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
            },
            "person": {
                "@id": "1635895",
                "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
            },
            "accountType": {
                "@id": "1",
                "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
                "name": "Checking"
            },
            "accountNumber": "1234567890",
            "routingNumber": "111849311",
            "isSharedAccount": "true",
            "createdDate": "2010-05-03T11:13:50",
            "createdByPerson": {
                "@id":"2229409",
                "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
            },
            "lastUpdatedDate":"2010-05-27T11:41:23",
            "lastUpdatedByPerson": {
                "@id":"2229409",
                "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
            }
        },
        {
            "@array": "true",
            "@id": "4414453",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/4414453",
            "@oldID": "",
            "household": {
                "@id": "1551440",
                "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
            },
            "person": {
                "@id": "1635895",
                "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
            },
            "accountType": {
                "@id": "1",
                "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
                "name": "Checking"
            },
            "accountNumber": "12345678901",
            "routingNumber": "111849311",
            "isSharedAccount": "true",
            "createdDate": "2010-05-03T11:13:50",
            "createdByPerson": {
                "@id":"2229409",
                "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
            },
            "lastUpdatedDate":"2010-05-27T11:41:23",
            "lastUpdatedByPerson": {
                "@id":"2229409",
                "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
            }
        },

        ]
    }
}

Method: show [GET]

The show method will return a single account for a given id.

Notes ::

  • By passing in the content-type of application/xsd in the accept header or using the {format} parameter xsd the API will return an xsd for a single version of this resource (authentication not required)

Content-types ::

  • application/json
  • application/xml
  • application/xsd
  • application/help

Format ::

  • json
  • xml
  • xsd
  • help

Parameters ::

  • {format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}.{format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}?format={format}
    • [Header] Accept : {Content-type}
  • {id}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}

Sample Response ::

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:29:03 GMT
Content-Length: 685

<?xml version="1.0" encoding="utf-8"?>
<account id="4414452" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452" oldID="">
  <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
  <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
  <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
    <name>Checking</name>
  </accountType>
  <accountNumber>1234567890</accountNumber>
  <routingNumber>111849311</routingNumber>
  <isSharedAccount>true</isSharedAccount>
  <createdDate>2010-05-03T11:14:10</createdDate>
  <createdByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
  <lastUpdatedDate>2010-05-27T11:41:23</lastUpdatedDate>
  <lastUpdatedByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
</account>

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/733948.json

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452.json
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:29:55 GMT
Content-Length: 550

{
    "account": {
        "@id": "4414452",
        "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452",
        "@oldID": "",
        "household": {
            "@id": "1551440",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
        },
        "person": {
            "@id": "1635895",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
        },
        "accountType": {
            "@id": "1",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
            "name": "Checking"
        },
        "accountNumber": "1234567890",
        "routingNumber": "111849311",
        "isSharedAccount": "true",
        "createdDate": "2010-05-03T11:13:50",
        "createdByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        },
        "lastUpdatedDate":"2010-05-27T11:41:23",
        "lastUpdatedByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        }
    }
}

Method: edit [GET]

The edit method will return a single account for a given id. The purpose of the edit method is to retrieve a resource in its most recent condition with its latest values.

Content-types ::

  • application/json
  • application/xml
  • application/help

Format ::

  • json
  • xml
  • help

Parameters ::

  • {format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}/edit.{format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}/edit?format={format}
    • [Header] Accept : {Content-type}
  • {id}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}/edit

Sample Response ::

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452/edit

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:29:03 GMT
Content-Length: 685

<?xml version="1.0" encoding="utf-8"?>
<account id="4414452" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452" oldID="">
  <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
  <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
  <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
    <name>Checking</name>
  </accountType>
  <accountNumber>1234567890</accountNumber>
  <routingNumber>111849311</routingNumber>
  <isSharedAccount>true</isSharedAccount>
  <createdDate>2010-05-03T11:14:10</createdDate>
  <createdByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
  <lastUpdatedDate>2010-05-27T11:41:23</lastUpdatedDate>
  <lastUpdatedByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
</account>

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/733948/edit.json

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452.json
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:29:55 GMT
Content-Length: 550

{
    "account": {
        "@id": "4414452",
        "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/4414452",
        "@oldID": "",
        "household": {
            "@id": "1551440",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
        },
        "person": {
            "@id": "1635895",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
        },
        "accountType": {
            "@id": "1",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
            "name": "Checking"
        },
        "accountNumber": "1234567890",
        "routingNumber": "111849311",
        "isSharedAccount": "true",
        "createdDate": "2010-05-03T11:13:50",
        "createdByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        },
        "lastUpdatedDate":"2010-05-27T11:41:23",
        "lastUpdatedByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        }
    }
}

Method: new [GET]

The new method will return a single account. The purpose of the new method is to retrieve an empty resource with the proper structure.

Content-types ::

  • application/json
  • application/xml
  • application/help

Format ::

  • json
  • xml
  • help

Parameters ::

  • {format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/new.{format}
    • [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/new?format={format}
    • [Header] Accept : {Content-type}

Sample Response ::

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/new

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:32:03 GMT
Content-Length: 391

<?xml version="1.0" encoding="utf-8"?>
<account id="" uri="" oldID="">
  <household id="" uri="" />
  <person id="" uri="" />
  <accountType id="" uri="">
    <name></name>
  </accountType>
  <accountNumber></accountNumber>
  <routingNumber></routingNumber>
  <isSharedAccount>false</isSharedAccount>
  <createdDate></createdDate>
  <createdByPerson id="" uri="" />
  <lastUpdatedDate></lastUpdatedDate>
  <lastUpdatedByPerson id="" uri="" />
</account>

Given: [GET] https://demo.fellowshiponeapi.com/giving/v1/accounts/new.json

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sun, 06 Jun 2010 04:32:34 GMT
Content-Length: 264

{
    "account": {
        "@id": "",
        "@uri": "",
        "@oldID": "",
        "household": {
            "@id": "",
            "@uri": ""
        },
        "person": {
            "@id": "",
            "@uri": ""
        },
        "accountType": {
            "@id": "",
            "@uri": "",
            "name": null
        },
        "accountNumber": null,
        "routingNumber": null,
        "isSharedAccount": "false",
        "createdDate": null,
        "createdByPerson": {
            "@id":"",
            "@uri":""
        },
        "lastUpdatedDate":null,
        "lastUpdatedByPerson": {
            "@id":"",
            "@uri":null
        }
    }
}

Method: create [POST]

The create method will create a single Account.

Notes ::

  • This method will return a 201 - Created if successfully created

Content-types ::

  • application/json
  • application/xml

Format ::

  • json
  • xml

Parameters ::

  • {format}
    • [POST] https://demo.fellowshiponeapi.com/giving/v1/accounts.{format}
    • [POST] https://demo.fellowshiponeapi.com/giving/v1/accounts?format={format}
    • [Header] Accept : {Content-type}

Required Fields ::

  • accountNumber

Sample Response ::

Given: [POST] https://demo.fellowshiponeapi.com/giving/v1/accounts

Request body:

<?xml version="1.0" encoding="utf-8"?>
<account id="" uri="" oldID="">
  <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
  <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
  <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
    <name>Checking</name>
  </accountType>
  <accountNumber>2103975642</accountNumber>
  <routingNumber>111849311</routingNumber>
  <isSharedAccount>false</isSharedAccount>
  <createdDate></createdDate>
  <createdByPerson id="" uri="" />
  <lastUpdatedDate></lastUpdatedDate>
  <lastUpdatedByPerson id="" uri="" />
</account>

Response:

HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/4414336
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 14 Apr 2010 18:13:39 GMT
Content-Length: 590

<?xml version="1.0" encoding="utf-8"?>
<account id="4414336" uri="https://demo.fellowshiponeapi.com/giving/v1/Giving/v1/accounts/4414336" oldID="">
  <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
  <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
  <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
    <name>Checking</name>
  </accountType>
  <accountNumber>2103975642</accountNumber>
  <routingNumber>111849311</routingNumber>
  <isSharedAccount>false</isSharedAccount>
  <createdDate>2010-05-03T11:14:10</createdDate>
  <createdByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
  <lastUpdatedDate></lastUpdatedDate>
  <lastUpdatedByPerson id="" uri="" />
</account>

Given: [POST] https://demo.fellowshiponeapi.com/giving/v1/accounts.json

Request body:

{
    "account": {
        "@id": "",
        "@uri": "",
        "@oldID": "",
        "household": {
            "@id": "1551440",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
        },
        "person": {
            "@id": "1635895",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
        },
        "accountType": {
            "@id": "1",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
            "name": "Checking"
        },
        "accountNumber": "2103975642",
        "routingNumber": "111849311",
        "isSharedAccount": "false",
        "createdDate": null,
        "createdByPerson": {
            "@id":"",
            "@uri":""
        },
        "lastUpdatedDate":null,
        "lastUpdatedByPerson": {
            "@id":"",
            "@uri":null
        }
    }
}

Response:

HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/json; charset=utf-8
Location: https://demo.fellowshiponeapi.com/giving/v1/accounts.json/4414337
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Wed, 14 Apr 2010 18:23:23 GMT
Content-Length: 458

{
    "account": {
        @id":"4414337",
        "@uri":"https://demo.fellowshiponeapi.com/giving/v1/Giving/v1/accounts/4414337",
        "@oldID": "",
        "household": {
            "@id": "1551440",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
        },
        "person": {
            "@id": "1635895",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
        },
        "accountType": {
            "@id": "1",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
            "name": "Checking"
        },
        "accountNumber": "2103975642",
        "routingNumber": "111849311",
        "isSharedAccount": "false",
        "createdDate": "2010-05-03T11:13:50",
        "createdByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        },
        "lastUpdatedDate":null,
        "lastUpdatedByPerson": {
            "@id":"",
            "@uri":""
        }
    }
}

Method: update [PUT] [POST (Low REST)]

The update method will update a single account.

Content-types ::

  • application/json
  • application/xml

Format ::

  • json
  • xml

Parameters ::

  • {format}
    • [PUT] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}.{format}
    • [PUT] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}?format={format}
    • [Header] Accept : {Content-type}
  • {id}
    • [PUT] https://demo.fellowshiponeapi.com/giving/v1/accounts/{id}

Required Fields ::

  • account id

Sample Response ::

Given: [PUT] https://demo.fellowshiponeapi.com/giving/v1/accounts/116276

Request body:

<?xml version="1.0" encoding="utf-8"?>
<account id="116276" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/116276" oldID="68593">
  <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
  <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
  <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
    <name>Checking</name>
  </accountType>
  <accountNumber>2103975642</accountNumber>
  <routingNumber>111849311</routingNumber>
  <isSharedAccount>false</isSharedAccount>
  <createdDate></createdDate>
  <createdByPerson id="" uri="" />
  <lastUpdatedDate></lastUpdatedDate>
  <lastUpdatedByPerson id="" uri="" />
</account>

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Content-Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/116276
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sat, 22 Apr 2010 18:27:55 GMT
Content-Length: 609

<?xml version="1.0" encoding="utf-8"?>
<account id="116276" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/116276" oldID="68593">
  <household id="1551440" uri="{{CONSUMER_ROOT_DOMAIN}}/household/1551440" />
  <person id="1635895" uri="{{CONSUMER_ROOT_DOMAIN}}/people/1635895" />
  <accountType id="1" uri="https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1">
    <name>Checking</name>
  </accountType>
  <accountNumber>2103975642</accountNumber>
  <routingNumber>111849311</routingNumber>
  <isSharedAccount>false</isSharedAccount>
  <createdDate>2010-05-03T11:14:10</createdDate>
  <createdByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
  <lastUpdatedDate>2010-05-27T11:41:23</lastUpdatedDate>
  <lastUpdatedByPerson id="2229409" uri="{{CONSUMER_ROOT_DOMAIN}}/people/2229409" />
</account>

Given: [PUT] https://demo.fellowshiponeapi.com/giving/v1/accounts/116276.json

Request body:

{
    "account": {
        "@id": "116276",
        "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/116276",
        "@oldID": "68593",
        "household": {
            "@id": "1551440",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
        },
        "person": {
            "@id": "1635895",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
        },
        "accountType": {
            "@id": "1",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
            "name": "Checking"
        },
        "accountNumber": "2103975642",
        "routingNumber": "111849311",
        "isSharedAccount": "false",
        "createdDate": null,
        "createdByPerson": {
            "@id":"",
            "@uri":""
        },
        "lastUpdatedDate":null,
        "lastUpdatedByPerson": {
            "@id":"",
            "@uri":null
        }
    }
}

Response:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Location: https://demo.fellowshiponeapi.com/giving/v1/accounts/116276.json
Server: Microsoft-IIS/7.0
X-AspNetMvc-Version: 1.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sat, 22 Apr 2010 18:30:07 GMT
Content-Length: 473

{
    "account": {
        "@id": "116276",
        "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/116276",
        "@oldID": "68593",
        "household": {
            "@id": "1551440",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/household/1551440"
        },
        "person": {
            "@id": "1635895",
            "@uri": "{{CONSUMER_ROOT_DOMAIN}}/people/1635895"
        },
        "accountType": {
            "@id": "1",
            "@uri": "https://demo.fellowshiponeapi.com/giving/v1/accounts/accounttypes/1",
            "name": "Checking"
        },
        "accountNumber": "2103975642",
        "routingNumber": "111849311",
        "isSharedAccount": "false",
        "createdDate": "2010-05-03T11:13:50",
        "createdByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        },
        "lastUpdatedDate":"2010-05-27T11:41:23",
        "lastUpdatedByPerson": {
            "@id":"2229409",
            "@uri":"{{CONSUMER_ROOT_DOMAIN}}/people/2229409"
        }
    }
}