JiwaAPI

<back to all web services

RESTAPICustomRoutesPlugin.DebtorContactGETRequest

Requires Authentication
The following routes are available for this service:
GET/Debtors/{DebtorID}/Contacts/{ContactID}Retrieve a debtor contact.
DebtorContact Parameters:
NameParameterData TypeRequiredDescription
ContactIDformstringNo
DebtorIDformstringNo
AccountNoformstringNo
TitleformstringNo
FNameformstringNo
SNameformstringNo
PrimaryIDformstringNo
PrimaryPositionNameformstringNo
SecondaryIDformstringNo
TertiaryIDformstringNo
PhoneformstringNo
MobileformstringNo
FaxformstringNo
EmailAddressformstringNo
ProspectIDformstringNo
DefaultContactformbool?No
CreditorContactformbool?No
LastSavedDateTimeformDateTime?No
ItemNoformintNo

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

HTTP + CSV

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

GET /Debtors/{DebtorID}/Contacts/{ContactID} HTTP/1.1 
Host: localhost 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ContactID":"String","DebtorID":"String","AccountNo":"String","Title":"String","FName":"String","SName":"String","PrimaryID":"String","PrimaryPositionName":"String","SecondaryID":"String","TertiaryID":"String","Phone":"String","Mobile":"String","Fax":"String","EmailAddress":"String","ProspectID":"String","DefaultContact":false,"CreditorContact":false,"LastSavedDateTime":"0001-01-01T00:00:00.0000000"}