PUT api/agreements/customer
Update customer on agreement.
Request Information
URI Parameters
None.
Body Parameters
AgreementCustomerPutRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| AgreementNumber |
Number of the agreement |
integer |
None. |
| CustomerNumber |
Number of the customer |
integer |
None. |
| ContactId |
Customers contact |
globally unique identifier |
None. |
| FixedProductRange |
Fixed product range |
boolean |
None. |
Remarks
Adds customer to agreement if customer can't be found on agreement
Example
None.
Request Formats
application/json, text/json
Sample:
{
"AgreementNumber": 1,
"CustomerNumber": 2,
"ContactId": "0b7f4b00-9025-40fc-9f1e-59d0b75a6c32",
"FixedProductRange": true
}
application/xml, text/xml
Sample:
<AgreementCustomerPutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Agreement"> <AgreementNumber>1</AgreementNumber> <ContactId>0b7f4b00-9025-40fc-9f1e-59d0b75a6c32</ContactId> <CustomerNumber>2</CustomerNumber> <FixedProductRange>true</FixedProductRange> </AgreementCustomerPutRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AgreementCustomerPutResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors |
List of errors when updating a customer on agreement |
Collection of PutAgreementCustomerError |
None. |
| Success |
Returns true if customer is updated on agreement |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Errors": [
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
{
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
],
"Success": true
}
application/xml, text/xml
Sample:
<AgreementCustomerPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Agreement">
<Errors>
<PutAgreementCustomerError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PutAgreementCustomerError>
<PutAgreementCustomerError>
<ErrorCode>InternalServerError</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</PutAgreementCustomerError>
</Errors>
<Success>true</Success>
</AgreementCustomerPutResponse>