GET api/CustomerPrice/GetByCustomerAndItemCode?customerCode={customerCode}&itemCode={itemCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerCode | string |
Required |
|
| itemCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CustomerPriceDbModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerCode | string |
None. |
|
| CustomerDesc | string |
None. |
|
| CustomerDiscount | integer |
None. |
|
| PriceListId | integer |
None. |
|
| PriceListDesc | string |
None. |
|
| ItemCatCode | string |
None. |
|
| ItemCatDesc | string |
None. |
|
| ItemCode | string |
None. |
|
| ItemDesc | string |
None. |
|
| PriceExcl | decimal number |
None. |
|
| PriceIncl | decimal number |
None. |
|
| SpecialStartDate | date |
None. |
|
| SpecialEndDate | date |
None. |
|
| SpecialPriceExcl | decimal number |
None. |
|
| SpecialPriceIncl | decimal number |
None. |
|
| ExpDate | date |
None. |
|
| Qty01 | decimal number |
None. |
|
| Qty02 | decimal number |
None. |
|
| Qty03 | decimal number |
None. |
|
| PriceExcl01 | decimal number |
None. |
|
| PriceExcl02 | decimal number |
None. |
|
| PriceExcl03 | decimal number |
None. |
|
| PriceIncl01 | decimal number |
None. |
|
| PriceIncl02 | decimal number |
None. |
|
| PriceIncl03 | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"CustomerCode": "sample string 1",
"CustomerDesc": "sample string 2",
"CustomerDiscount": 3,
"PriceListId": 4,
"PriceListDesc": "sample string 5",
"ItemCatCode": "sample string 6",
"ItemCatDesc": "sample string 7",
"ItemCode": "sample string 8",
"ItemDesc": "sample string 9",
"PriceExcl": 10.0,
"PriceIncl": 11.0,
"SpecialStartDate": "2026-08-26T19:24:18.3540432+02:00",
"SpecialEndDate": "2026-08-26T19:24:18.3540432+02:00",
"SpecialPriceExcl": 14.0,
"SpecialPriceIncl": 15.0,
"ExpDate": "2026-08-26T19:24:18.3540432+02:00",
"Qty01": 17.1,
"Qty02": 18.1,
"Qty03": 19.1,
"PriceExcl01": 20.0,
"PriceExcl02": 21.0,
"PriceExcl03": 22.0,
"PriceIncl01": 23.0,
"PriceIncl02": 24.0,
"PriceIncl03": 25.0
}
application/xml, text/xml
Sample:
<CustomerPriceDbModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PASTEL.Api.Library.Models.PSql"> <CustomerCode>sample string 1</CustomerCode> <CustomerDesc>sample string 2</CustomerDesc> <CustomerDiscount>3</CustomerDiscount> <ExpDate>2026-08-26T19:24:18.3540432+02:00</ExpDate> <ItemCatCode>sample string 6</ItemCatCode> <ItemCatDesc>sample string 7</ItemCatDesc> <ItemCode>sample string 8</ItemCode> <ItemDesc>sample string 9</ItemDesc> <PriceExcl>10</PriceExcl> <PriceExcl01>20</PriceExcl01> <PriceExcl02>21</PriceExcl02> <PriceExcl03>22</PriceExcl03> <PriceIncl>11</PriceIncl> <PriceIncl01>23</PriceIncl01> <PriceIncl02>24</PriceIncl02> <PriceIncl03>25</PriceIncl03> <PriceListDesc>sample string 5</PriceListDesc> <PriceListId>4</PriceListId> <Qty01>17.1</Qty01> <Qty02>18.1</Qty02> <Qty03>19.1</Qty03> <SpecialEndDate>2026-08-26T19:24:18.3540432+02:00</SpecialEndDate> <SpecialPriceExcl>14</SpecialPriceExcl> <SpecialPriceIncl>15</SpecialPriceIncl> <SpecialStartDate>2026-08-26T19:24:18.3540432+02:00</SpecialStartDate> </CustomerPriceDbModel>