Getting the Customer Pricing

KB Tags associated with this article:
Use all tags
KB Tags
Body

Description

Gets the generic Customer Pricing or a particular Customer's Cost Price if the Customer ID is provided.

​​​​​​Tip

It is recommended you cache all pricing information to ensure you do not have to send API queries to the platform. As there are a huge number of products, the accompanying data may cause longer wait time than usual.

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/products/customer-price.json?auth-userid=0&api-key=key

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
customer-id Integer Optional Customer ID of the Customer whose Cost Price has to be retrieved. By default, generic Customer Pricing will be retrieved.

Response

Returns a hash map with the generic Customer Pricing or the specified Customer's Cost Price. The response structure will be: