Skip to main content

Customer Credit Update

The PostUpdateCustomerCredit endpoint is responsible for updating a customer's credit in the MIMS system.


How to update customer credit

HTTP POST Request

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

Input Parameters

ParameterTypeRequiredDescription
CustomerNoString(25)YesExternal code of the customer
CustomerAuxiliaryNoString(25)NoAuxiliary external code of the customer
PaymentTotalFloatYesTotal payment amount (must be different from zero)
PaymentDateDataHoraYesPayment date
PaymentNoString(40)NoPayment number
Note
  • When PaymentTotal is greater than zero, the customer's credit will be released (increased).
  • When PaymentTotal is less than zero, the customer's credit will be used (decreased).

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution

Request Example

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateCustomerCredit"' \
--header 'Content-Type: application/json' \
--data '{
"CustomerNo": "CUST001",
"CustomerAuxiliaryNo": "",
"PaymentTotal": 1000.00,
"PaymentDate": "2024-01-15T10:30:00",
"PaymentNo": "PAG001"
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}

🐞 Possible Errors

CodeMessage
DSO‑005Error message returned by the customer credit adjustment system