Skip to main content

Customer Financial Information

The GetCustomerFinancialInfo endpoint returns customer financial summary information in the MIMS system.


How to get customer financial summary information

HTTP GET Request

Request TypeExample URL
POST{{url_base}}/GetCustomerFinancialInfo
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetCustomerFinancialInfo"

Input Parameters

ParameterTypeRequiredDescription
CustomerNoString(25)YesExternal code of the customer
CustomerAuxiliaryNoString(25)NoAuxiliary external code of the customer

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
CustomerFinancialInfoDataGetCustomerFinancialInfoDataYesObject containing customer financial information

📝 GetCustomerFinancialInfoData Object

The GetCustomerFinancialInfoData object represents customer financial summary information.

Return Parameters

ParameterTypeRequiredDescription
CreditTotalFloatYesTotal credit value
CreditUsageFloatYesUsed credit value
CreditEspecialFloatYesSpecial credit value
CreditEspecialUsageFloatYesUsed special credit value
CreditDisponibleFloatYesAvailable credit value
OpenDocumentsQtyIntegerYesQuantity of open documents
OverdueDocumentsQtyIntegerYesQuantity of overdue documents
LastDocumentPaymentDateDataHoraYesLast paid document date
LastDocumentPaymentNoString(25)YesLast paid document number
NextDocumentPaymentDateDataHoraYesNext document payment date
NextDocumentPaymentNoString(25)YesNext document payment number
IsBlockedBooleanYesFlag indicating that the customer is blocked

Request Example

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetCustomerFinancialInfo"' \
--header 'Content-Type: application/json' \
--data '
{
"CustomerNo": "118771"
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"CustomerFinancialInfoData": {
"CreditTotal": 0.0,
"CreditUsage": 0.0,
"CreditEspecial": 0.0,
"CreditEspecialUsage": 0.0,
"CreditDisponible": 0.0,
"OpenDocumentsQty": 0,
"OverdueDocumentsQty": 0,
"LastDocumentPaymentDate": null,
"LastDocumentPaymentNo": "",
"NextDocumentPaymentDate": null,
"NextDocumentPaymentNo": "",
"IsBlocked": false
}
}

🐞 Possible Errors

CodeMessage
CFR‑001Customer financial records not found!