WebAPI

<back to all web services

GetPaymentMethods

Retrieves all active payment methods for the account given the account id.

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

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/GetPaymentMethods 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

{"CreditCards":[{"ExpirationMonth":0,"ExpirationYear":0,"CardTypeDesc":"String","CardId":0,"Bankname":"String","Name":"String","DisplayCardNumber":"String","PostalCode":"String","IsPrimaryCard":false,"CardType":0}],"DirectDebits":[{"AccountId":0,"AchId":0,"AccountHolder":"String","AccountNumber":"String","SortCode":"String","BankId":"String","BankName":"String","DisplayACHInfo":"String","IsPrimaryDirectDebit":false,"Priority":0}],"IsAutoPay":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]}}