A reference IO app to allow B2B sellers to define prices based on the user email, by using the external price source through the Pricing Hub service.
This app is ready to use. You can install it on the master
workspace of the seller account.
If you want to customize the app to use other price parameters, follow the instructions below.
-
Fork this app.
-
In the
manifest.json
file:- Change the
vendor
field to the name of the account you are using. - Change the
name
field to one of your choosing. - Add your service host (e.g.
myhost.com
) in anoutbound-access
policy.
- Change the
-
In the
node/env.ts
file, add your service endpoint as follows:const ENV = { SERVICE_ENDPOINT: 'http://myservice.com', } export default ENV
-
Change the
node/clients/externalPrice.ts
file to parse data received by the external pricing app and return it in a way that Pricing Hub can understand. See more details on the specification of this format in the Pricing Hub documentation.
⛔ Do not change the
"routes"
innode/service.json
nor the files innode/typings/
, since they were created to reflect Pricing Hub behavior.