POST api/{siteCode}/Accounting/UpdateCustomerCreditLimit
Updates the customer credit limit.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteCode |
The site code. |
integer |
Required |
Body Parameters
The update customer credit limits.
Collection of UpdateCustomerCreditLimit| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerAccount | string |
None. |
|
| CreditLimit | decimal number |
None. |
|
| CreditHold | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"CustomerAccount": "sample string 1",
"CreditLimit": 2.0,
"CreditHold": true
},
{
"CustomerAccount": "sample string 1",
"CreditLimit": 2.0,
"CreditHold": true
}
]
application/xml, text/xml
Sample:
<ArrayOfUpdateCustomerCreditLimit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UpdateCustomerCreditLimit>
<CustomerAccount>sample string 1</CustomerAccount>
<CreditLimit>2</CreditLimit>
<CreditHold>true</CreditHold>
</UpdateCustomerCreditLimit>
<UpdateCustomerCreditLimit>
<CustomerAccount>sample string 1</CustomerAccount>
<CreditLimit>2</CreditLimit>
<CreditHold>true</CreditHold>
</UpdateCustomerCreditLimit>
</ArrayOfUpdateCustomerCreditLimit>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BatchProcessResponse.
BatchProcessResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| RecordsProcessed | Collection of RecordProcessed |
None. |
|
| RecordsNotProcessed | Collection of RecordNotProcessed |
None. |
Response Formats
application/json, text/json
Sample:
{
"RecordsProcessed": [
{
"RecordIndentifier": "sample string 1"
},
{
"RecordIndentifier": "sample string 1"
}
],
"RecordsNotProcessed": [
{
"Message": "sample string 1",
"RecordIndentifier": "sample string 2"
},
{
"Message": "sample string 1",
"RecordIndentifier": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<BatchProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RecordsProcessed>
<RecordProcessed>
<RecordIndentifier>sample string 1</RecordIndentifier>
</RecordProcessed>
<RecordProcessed>
<RecordIndentifier>sample string 1</RecordIndentifier>
</RecordProcessed>
</RecordsProcessed>
<RecordsNotProcessed>
<RecordNotProcessed>
<RecordIndentifier>sample string 2</RecordIndentifier>
<Message>sample string 1</Message>
</RecordNotProcessed>
<RecordNotProcessed>
<RecordIndentifier>sample string 2</RecordIndentifier>
<Message>sample string 1</Message>
</RecordNotProcessed>
</RecordsNotProcessed>
</BatchProcessResponse>