Customer Product Price GET
URI
https://{DATACENTER}.brightpearlconnect.com/api-v3/{ACCOUNT}
/pricing/customer/{CUSTOMER-ID}/product-price/{PRODUCT-ID-SET}
Refer to our documentation on URI syntax for more information on how to construct URIs.
Description
Fetch the pricing for a given customer and a set of products.
The maximum ID set size for products is 200.
For the customer we will return:
- the default price list ID
- the default currency
- discount percentage
- their tax code & rate (optional)
- SKU
- whether the product is taxable (only applicable to Sales Tax accounts)
- the tax code & rate (only applicable to Value Added Tax accounts)
- the price list data for the customer's price list:
- the currency
- price-list SKU (optional)
- the quantity price breaks as a map of quantity to unit-price
Example
Requesting prices for products 1004-1007 for customer (contact) 1001
Request URI
/customer/1001/product-price/1004-1006
Response
{
"response": {
"customer": {
"customerId": 1001,
"financialDetails": {
"priceListId": 1,
"currencyCode": "GBP",
"discountPercentage": 10.00,
"taxCode": {
"code": "T0",
"rate": 0.0000
}
}
},
"products": [
{
"productId": 1004,
"sku": "SKU001",
"financialDetails": {
"taxable": true,
"taxCode": {
"code": "T20",
"rate": 20.0000
}
},
"priceList": {
"priceListId": 1,
"currencyCode": "GBP",
"quantityPrice": {
"1": "10.00",
"10": "9.00"
}
}
},
{
"productId": 1005,
"sku": "SKU002",
"financialDetails": {
"taxable": false,
"taxCode": {
"code": "T9",
"rate": 0.0000
}
},
"priceList": {
"priceListId": 1,
"currencyCode": "GBP",
"sku": "ABC123",
"quantityPrice": {
"1": "5.00"
}
}
},
{
"productId": 1006,
"sku": "SKU003",
"financialDetails": {
"taxable": true,
"taxCode": {
"code": "T20",
"rate": 20.0000
}
},
"priceList": {
"priceListId": 1,
"currencyCode": "GBP",
"sku": "ABC321",
"quantityPrice": {
"1": "6.00",
"5": "5.50",
"10": "5.00"
}
}
}
]
}
}