POST api/{siteCode}/Accounting/UpdateCustomerCreditHoldStatus
Updates the customer credit hold status.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteCode |
The site code. |
integer |
Required |
Body Parameters
The update customer credit hold statuses.
Collection of UpdateCustomerCreditHoldStatus| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerAccount | string |
None. |
|
| CreditHold | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"CustomerAccount": "sample string 1",
"CreditHold": true
},
{
"CustomerAccount": "sample string 1",
"CreditHold": true
}
]
application/xml, text/xml
Sample:
<ArrayOfUpdateCustomerCreditHoldStatus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UpdateCustomerCreditHoldStatus>
<CustomerAccount>sample string 1</CustomerAccount>
<CreditHold>true</CreditHold>
</UpdateCustomerCreditHoldStatus>
<UpdateCustomerCreditHoldStatus>
<CustomerAccount>sample string 1</CustomerAccount>
<CreditHold>true</CreditHold>
</UpdateCustomerCreditHoldStatus>
</ArrayOfUpdateCustomerCreditHoldStatus>
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>