SOAP API - GetCreditRating
GetCreditRating( username ) : CreditRating
Since: EngageIP v25.2
Retrieves the credit rating for the specified user.
This method returns a CreditRating object. A credit rating object consists of the following properties:
ID (Integer) - The unique ID for the credit rating
Name (String) - The name of the credit rating
OwnerID (Integer) - The ID of the owner user of the credit rating
SortOrder (Integer) - The optional sort order of where this credit rating exists within the list of other credit ratings
Terms (String) - Sets the due date on invoices . A term of +30 will set the due date 30 days from invoice date. A term of 10 will set the due date on the 10th day of the month after the current date. For example, if the invoice close date is on Jan 1st, the Due Date will be Jan 10th. If the Invoice is closed on Jan 11th, the Due Date will be Feb 10th. +0 = Due On Receipt
Parameters:
username (String) - The user for whom to retrieve the credit rating. An exception will be thrown if the user name does not exist.
Returns:
A credit rating object for the specified user
Possible Exceptions:
INVALID USERNAME
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /adminportal/webservice.asmx HTTP/1.1
Host: demo.logisense.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<AuthHeader xmlns="Logisense_EngageIP">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap12:Header>
<soap12:Body>
<GetCreditRating xmlns="Logisense_EngageIP">
<username>string</username>
</GetCreditRating>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<DeleteUserAttributeTaxExemptLevelsResponse xmlns="Logisense_EngageIP" />
</soap12:Body>
</soap12:Envelope>
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /adminportal/webservice.asmx HTTP/1.1
Host: demo.logisense.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Logisense_EngageIP/GetCreditRating"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthHeader xmlns="Logisense_EngageIP">
<Username>string</Username>
<Password>string</Password>
</AuthHeader>
</soap:Header>
<soap:Body>
<GetCreditRating xmlns="Logisense_EngageIP">
<username>string</username>
</GetCreditRating>
</soap:Body>
</soap:Envelope>