POST api/Customer/addbillofsale
Request Information
URI Parameters
None.
Body Parameters
BillOfSaleRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| BillOfSaleMaster | BillOfSaleMaster |
None. |
|
| Payment | Collection of CustomerPayment |
None. |
Request Formats
application/json, text/json
Sample:
{
"BillOfSaleMaster": {
"BillId": 1,
"CustomerId": 1,
"DiscountPrice": 1.0,
"DealPrice": 1.0,
"PayPrice": 1.0,
"PayMethod": "sample string 2",
"DealPricewithouttax": 1.0,
"DealPricewithtax": 1.0,
"Tax": 1.0
},
"Payment": [
{
"PaymentTranId": 1,
"CustomerId": 1,
"Type": "sample string 2",
"Amount": 1.0,
"PaymentMethod": "sample string 3"
},
{
"PaymentTranId": 1,
"CustomerId": 1,
"Type": "sample string 2",
"Amount": 1.0,
"PaymentMethod": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<BillOfSaleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pwacrmapi.Models">
<BillOfSaleMaster xmlns:d2p1="http://schemas.datacontract.org/2004/07/pwacrmapi">
<d2p1:BillId>1</d2p1:BillId>
<d2p1:CustomerId>1</d2p1:CustomerId>
<d2p1:DealPrice>1</d2p1:DealPrice>
<d2p1:DealPricewithouttax>1</d2p1:DealPricewithouttax>
<d2p1:DealPricewithtax>1</d2p1:DealPricewithtax>
<d2p1:DiscountPrice>1</d2p1:DiscountPrice>
<d2p1:PayMethod>sample string 2</d2p1:PayMethod>
<d2p1:PayPrice>1</d2p1:PayPrice>
<d2p1:Tax>1</d2p1:Tax>
</BillOfSaleMaster>
<Payment xmlns:d2p1="http://schemas.datacontract.org/2004/07/pwacrmapi">
<d2p1:CustomerPayment>
<d2p1:Amount>1</d2p1:Amount>
<d2p1:CustomerId>1</d2p1:CustomerId>
<d2p1:PaymentMethod>sample string 3</d2p1:PaymentMethod>
<d2p1:PaymentTranId>1</d2p1:PaymentTranId>
<d2p1:Type>sample string 2</d2p1:Type>
</d2p1:CustomerPayment>
<d2p1:CustomerPayment>
<d2p1:Amount>1</d2p1:Amount>
<d2p1:CustomerId>1</d2p1:CustomerId>
<d2p1:PaymentMethod>sample string 3</d2p1:PaymentMethod>
<d2p1:PaymentTranId>1</d2p1:PaymentTranId>
<d2p1:Type>sample string 2</d2p1:Type>
</d2p1:CustomerPayment>
</Payment>
</BillOfSaleRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Dictionary of string [key] and Object [value]Response Formats
application/json, text/json
Sample:
{
"sample string 1": {},
"sample string 3": {}
}
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfstringanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<KeyValueOfstringanyType>
<Key>sample string 1</Key>
<Value />
</KeyValueOfstringanyType>
<KeyValueOfstringanyType>
<Key>sample string 3</Key>
<Value />
</KeyValueOfstringanyType>
</ArrayOfKeyValueOfstringanyType>