accounts element

Type: accounts
Namespace: http://api.crunch.co.uk/rest
XML Schema: api.xsd

A wrapper for a collection of bank account, credit card or payment processing accounts

Example XML

<?xml version="1.0" encoding="UTF-8"?> <accounts xmlns="http://api.crunch.co.uk/rest" count="..."> <bankAccount accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</bankAccount> <bankAccount accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</bankAccount> <!--...more "bankAccount" elements...--> <creditCard accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</creditCard> <creditCard accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</creditCard> <!--...more "creditCard" elements...--> <paymentProcessingAccount accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</paymentProcessingAccount> <paymentProcessingAccount accountId="..." lastFourDigits="..." sortCode="..." accountNumber="...">...</paymentProcessingAccount> <!--...more "paymentProcessingAccount" elements...--> </accounts>

Example JSON

{ "count" : ..., "bankAccount" : [ { "accountId" : ..., "lastFourDigits" : ..., "sortCode" : "...", "accountNumber" : "...", "value" : "..." }, ... ], "creditCard" : [ { "accountId" : ..., "lastFourDigits" : ..., "sortCode" : "...", "accountNumber" : "...", "value" : "..." }, ... ], "paymentProcessingAccount" : [ { "accountId" : ..., "lastFourDigits" : ..., "sortCode" : "...", "accountNumber" : "...", "value" : "..." }, ... ] }