Porta Plus 2 Web Services

<back to all web services

GetCustomer

The following routes are available for this service:
GET/CheckCustomerExist/{License}/{PhoneNumber}/{CheckCustomerExist}
GET/GetResellers/{License}
GET/GetCustomer/{License}/{ICustomer}
GET/GetCustomer/{License}/{Login}/{Password}
GET/GetReseller/{License}/{IParent}/{getReseller}
GET/GetCustomerByName/{License}/{Name}
GET/GetCustomerByAccountID/{License}/{AccountID}

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/GetCustomer HTTP/1.1 
Host: 7el.co 
Content-Type: application/json
Content-Length: length

{"Login":"String","Password":"String","ICustomer":0,"Name":"String","AccountID":"String","PhoneNumber":"String","CheckCustomerExist":false,"IParent":0,"getReseller":false,"License":"String","ContentId":0,"FeatureName":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ICustomer":0,"Customer":{"CustomerAddress":{"Address1":"String","Address2":"String","Address3":"String","Address4":"String","City":"String","Region":"String","Postcode":"String","Country":"String","Town":"String"},"CustomerContact":{"Email":"String","BCC":"String","EmailFrom":"String","Phone1":"String","Phone2":"String","Contact1":"String","Contact2":"String","Fax":"String"},"CustomerStatus":{"OpeningBalance":0,"Balance":0,"CreditLimit":0,"DiscountRate":0,"ServiceFeatures":[{"Name":"String","FlagValue":"String","ServiceAttributes":{"String":["String"]}}],"BillStatus":"String","BilledTo":"String","CreditLimitWarning":"String","ISO4217":"String"},"Preferences":{"SendStatistics":"String","MaxAbbreviatedLength":0,"OutDateFormat":"String","OutDateTimeFormat":"String","OutTimeFormat":"String","InDateFormat":"String","InTimeFormat":"String","DiallingRule":{"CC":"String","AC":"String","IA":0,"OP":"String","DP":"String","IP":"String","EM":"String","EX":"String","NL":0,"CT":0,"CS":0,"CSDR":0,"CSS":0,"CSP":"String","CSPS":"String","CSL":"String","NEX":"String"},"IMoh":0,"SendInvoices":"String","ITimeZone":0,"IUITimeZone":0,"CustomerType":0,"IVDPlan":0,"CldTranslationRule":"String","MapSendInvoices":"String","MapSendStatistics":"String"},"PersonalInformation":{"FirstName":"String","MiddleInitials":"String","LastName":"String","Salutation":"String","Company":"String","Login":"String","Password":"String","Name":"String","TaxId":"String","IMoh":0},"ICustomer":0,"IParent":0,"Notes":"String"},"lstCustomers":[{"CustomerAddress":{"Address1":"String","Address2":"String","Address3":"String","Address4":"String","City":"String","Region":"String","Postcode":"String","Country":"String","Town":"String"},"CustomerContact":{"Email":"String","BCC":"String","EmailFrom":"String","Phone1":"String","Phone2":"String","Contact1":"String","Contact2":"String","Fax":"String"},"CustomerStatus":{"OpeningBalance":0,"Balance":0,"CreditLimit":0,"DiscountRate":0,"ServiceFeatures":[{"Name":"String","FlagValue":"String","ServiceAttributes":{"String":["String"]}}],"BillStatus":"String","BilledTo":"String","CreditLimitWarning":"String","ISO4217":"String"},"Preferences":{"SendStatistics":"String","MaxAbbreviatedLength":0,"OutDateFormat":"String","OutDateTimeFormat":"String","OutTimeFormat":"String","InDateFormat":"String","InTimeFormat":"String","DiallingRule":{"CC":"String","AC":"String","IA":0,"OP":"String","DP":"String","IP":"String","EM":"String","EX":"String","NL":0,"CT":0,"CS":0,"CSDR":0,"CSS":0,"CSP":"String","CSPS":"String","CSL":"String","NEX":"String"},"IMoh":0,"SendInvoices":"String","ITimeZone":0,"IUITimeZone":0,"CustomerType":0,"IVDPlan":0,"CldTranslationRule":"String","MapSendInvoices":"String","MapSendStatistics":"String"},"PersonalInformation":{"FirstName":"String","MiddleInitials":"String","LastName":"String","Salutation":"String","Company":"String","Login":"String","Password":"String","Name":"String","TaxId":"String","IMoh":0},"ICustomer":0,"IParent":0,"Notes":"String"}],"ResellerName":"String","License":"String","ContentId":0,"FeatureName":"String"}