Pricing Hub Prices

Configure external price source

Changed on

❗ This functionality is deprecated and cannot be used. If you need to associate prices with customers, we recommend using the Audience API.

This route facilitates setting up an external price source in Pricing Hub. It also allows you to activate or deactivate that source in a given account.

put/api/pricing-hub/prices/config

Request

  • Base URL
    https://prchub.vtexcommercestable.com.br
  • URL
    https://prchub.vtexcommercestable.com.br/api/pricing-hub/prices/config
  • Auth
    • API key in header X-VTEX-API-AppKey and API key in header X-VTEX-API-AppToken
    • or API key in header VtexIdclientAutCookie

Query parameters

anstring
Example:apiexamples

Name of the VTEX account.

Headers

Acceptstring required

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Content-Typestring required

Describes the type of the content being sent.

Request body

activeboolean

Defines if the external price source is active (true) or not (false). If not set, the default value will be false.

appNamestring required

Name of the app that communicates with the external pricing source.

Example request

{
  "appName": "apiexamples_app_name"
}

Response

OK

Changes