WebAPI

<back to all web services

GetAccount

Retrieves account settings and preferred methods of communication.

The following routes are available for this service:
GET/GetAccount/{AccountId}RESTFUL call with Account ID and Page Size in the URI
Parameters:
NameParameterData TypeRequiredDescription
AccountIdpathintYes

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetAccount HTTP/1.1 
Host: api-preprod.merseyflow.co.uk 
Content-Type: application/json
Content-Length: length

{"AccountId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Account":{"AccountId":0,"AccountNumber":"String","PrimaryContactId":0,"AccountStatementDeliveryID":0,"AccountStatementDelivery":"String","AccountType":"String","AccountTypeId":0,"AccountBalance":0,"AccountStatusID":0,"AccountStatus":"String","FinancialStatusId":0,"FinancialStatus":"String","IsInGracePeriod":false,"MobilePhone":"String","AddressInfos":[{"AddressType":"String","CountryCode":"String","IsPrimaryAddress":false,"AddressTypeId":0,"AddressLine1":"STRING","AddressLine2":"STRING","City":"STRING","CountyCode":"STRING","PostalCode":"STRING","PtcAbsCode":"STRING","ContactId":0,"AddressId":0}],"RebillAmount":0,"LBTAmount":0,"IsPostpaidAccount":false,"PlanCode":"String","RebillMethodId":0,"RebillMethod":"String","IsMonthlyPassAutoRenewal":false},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]}}